Have You Checked Your WP Installation Files Lately?

I've been working on a theme so thankfully I've been checking it for errors with the W3C Validation service. I noticed I had a file named css.js with no path. It would just be whatever url/css.js. When I clicked the link it showed the HTML output of the page. Later today I was working on another site on a separate server and I noticed the same thing (now I'm starting to worry). I couldn't find the source of the file so after awhile I moved on to another task. I was adding an RSS widget to on of my sites and noticed an RSS junk after link... message. I decided I would find the source of the css.js file and started looking.

If this is something I've simply overlooked, please let me know, if not you might want to check your files since it has happened on 3 separate servers all with different hosts.

What To Look For And Where:

The CSS.JS File:

The first one I noticed was the css.js file I'd been looking for. It was located in the root of my WordPress directory. If anyone is interested I can link to a paste bin to see the code.

The second file:

The next question was how was the css.js file being included? After checking my .htaccess file and a few others I noticed the index.php file in the WordPress root directory was 496 bytes while the one I just downloaded was 397 bytes. So I downloaded the suspect index.php file and opened it up. That's what was calling the css.js file.

Here is the code in the index.php file:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?><script src="css.js" type="text/javascript"></script>
<?php




?>

I'm not sure where it came from yet, but I thought this would be a good place to spread the word or see if anyone else knows what's up.

link|improve this question

Not in scope. WPSE is QA site, not a forum. This would be a fit for our blog... Bu we still don't have a blog. :) – Rarst Nov 14 '11 at 11:02
1  
I can handle my issue, I just thought it would be a good way to let people know about a possible issue. Any suggestions on where I could reach as many WP Users as here? – Jeremy Jared Nov 14 '11 at 12:02
1  
Re-upvoted. Close is enough - Downvote not necessary as it doesn't fit into downvote criteria. – kaiser Nov 14 '11 at 16:22
feedback

closed as off topic by Rarst Nov 14 '11 at 11:02

Questions on WordPress - Stack Exchange are expected to generally relate to WordPress, within the scope defined in the faq.

1 Answer

Have you found that on any other wordpress based website out there? I did random checking of few sites but haven't found the file you have mentioned. I was wondering if what you have experienced could be due to exploitation of your server or/and your local environment.

link|improve this answer
As I said in the question/tip, I had it on 3 different servers all with seperate hosting accounts. One is a clients website, maybe it's a plug-in I use, but the only ones they have in common are TineyMce Advanced. I'd like to know if I'm the only one. Is it just me, if so I need to do some digging. Hopefully it's just me, but I wanted to at least let everyone know it's a possible issue. – Jeremy Jared Nov 14 '11 at 10:29
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.