Author Topic: Possible attack on my Gallery !!!  (Read 3176 times)

0 Members and 1 Guest are viewing this topic.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Possible attack on my Gallery !!!
« on: April 10, 2010, 11:58:26 PM »
Hi,
     I don't know whether someone has just cracked into my gallery or not, but today suddenly found 2 new folders has been created and some php files are out there ..Could anyone please look into this php file and let me know what exactly its trying to do..

Code: [Select]
REMOVED

Also, I found a file called error_log and the content on this is..
Code: [Select]
[04-Apr-2010 06:07:03] PHP Warning:  fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration in /home/xxxxxxx/public_html/ulmml/pkh.php on line 373
[04-Apr-2010 06:07:03] PHP Warning:  fopen(http://safechecker2.net/w.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found in /home/xxxxxx/public_html/ulmml/pkh.php on line 373
[04-Apr-2010 06:07:03] PHP Warning:  feof(): supplied argument is not a valid stream resource in /home/xxxxxxx/public_html/ulmml/pkh.php on line 375
[04-Apr-2010 06:07:03] PHP Warning:  fgets(): supplied argument is not a valid stream resource in /home/xxxxxxx/public_html/ulmml/pkh.php on line 377
[04-Apr-2010 06:07:03] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /home/xxxxxxx/public_html/ulmml/pkh.php on line 381



If anyone can let us know what type of attack is this and how can I stop it in future , then it would be a great help..!!

Thanks,
batu544

edit: replaced the folder name with xxxxxx
« Last Edit: April 11, 2010, 12:12:12 AM by V@no »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Possible attack on my Gallery !!!
« Reply #1 on: April 11, 2010, 12:11:46 AM »
It's a trojan. Can be used to read files on your server, upload and execute additional files.

It is always hard to tell how it got onto a server, it could be through and unpached/unknown hole in 4images or through other hole on server itself or other scripts you are using...

Remove anything suspicious and also check .htaccess files.

P.S.
I've removed code from your post for security reasons.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: Possible attack on my Gallery !!!
« Reply #2 on: April 11, 2010, 08:35:24 AM »
Thanks V@no.. for providing this information..
 
   No idea how it happened and I checked all the files and .htaccess file also.. everything looks okay to me..


Is there anyway to stop execution of php scripts other than 4image related php file ?


Thanks,
batu544