Solved

Strange php file on my windows server

Posted on 2010-09-01
13
728 Views
Last Modified: 2013-12-13
I discovered a file on my web server called wso.php in the root of the web directory. I didn't put it there and the contents contain references to milw0rm.com
Can anyone shed some light on what this is and what any hackers might have been trying to do with it? Do I need to change every password on the machine? Which would be a pain since all my scripts would then need to be edited as well.
0
Comment
Question by:TuscolaCounty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
  • 3
13 Comments
 
LVL 8

Accepted Solution

by:
nahime earned 300 total points
ID: 33576430
It's a web shell, with that the hacker have full access to your machine trought the user that run the apache daemon,
Maybe you have to investigate on how that file come up to your server and yes, you have to clean your system and if you can change every password.
P.S.
Upgrade your system.
0
 
LVL 5

Assisted Solution

by:bernardbrink
bernardbrink earned 200 total points
ID: 33576432
Sure looks like it, but i'll need the script to see what 'they' were trying to do.
If it's the same as:
http://de.pastebin.ca/raw/1893071
it will find a lot of rights/opendirs etc etc and send it to a server
0
 

Author Comment

by:TuscolaCounty
ID: 33576701
That certainly looks like it. But milw0rm.com no longer exists, so the script still works?
I removed it from the web directory, created a new file by the same name with read only attribute and gave it minimal security rights.
I have seen this happen on a windows 2003 server too, so i am not thinking updating from 2000 server to 2003 will make a difference.
I am currently creating specific rules within the firewall to block absolutely everything that isn't needed.
For example, the rules are set in priority, top rule cancels bottom rule.
allow port 80
allow my IP to VNC
allow my IP to FTP
Block All Ports, all IP's
These rules basically say to allow me in through vnc and ftp, and allow the rest of the world to browse my web sites, and block everything else.
Shouldn't this stop anything bad from happening?
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 

Author Comment

by:TuscolaCounty
ID: 33576730
Oh and FYI: I am not using apache
php, mysql, abyss web server, mailenable mail server
0
 
LVL 5

Expert Comment

by:bernardbrink
ID: 33576869
That looks good yes.
The site is maybe down, but you can never be sure about these things.
the newly created file + no rights is also a good solution.
0
 

Author Comment

by:TuscolaCounty
ID: 33576975
What I am trying to avoid is changing all the passwords on the machine. My master password is VERY secure, and it would break all my apps and scripts if I changed it. Not to mention mysql breaking, etc. uggg
0
 
LVL 5

Assisted Solution

by:bernardbrink
bernardbrink earned 200 total points
ID: 33577217
Normally the AD password are not to be copyed or read. So that's fine. But mysql is more unsecure with password saving. That could be een problem.
0
 

Author Comment

by:TuscolaCounty
ID: 33577322
I have now put in a firewall rule blocking port 3306 from the outside world. So mysql should be safe right?
0
 
LVL 8

Assisted Solution

by:nahime
nahime earned 300 total points
ID: 33577418
With the port under firewall your mysql server "should" be secure.
If the hacker "entered" in your server using that web shell and executed some privilege excalation script maybe have root access with some backdoor. You have to investigate further to know what happened on your machine.
0
 

Author Comment

by:TuscolaCounty
ID: 33577431
Yes I plan to check the web traffic logs for the date the file was placed.
0
 

Author Comment

by:TuscolaCounty
ID: 33577497
Also, I did use apache at one point, switched to abyss. Could remnants of apache be an exploit?
0
 
LVL 8

Assisted Solution

by:nahime
nahime earned 300 total points
ID: 33577843
If apache is running and accessible from the outside world yes otherwise no :)
0
 

Author Comment

by:TuscolaCounty
ID: 33578009
Ok thanks
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question