
how-to block ads
|
|
Uniqs: 4504 |
Share Topic  |
 |
|
|
|
 bengizmoPremium join:2010-02-28 Calgary, AB | Botnet Trend: phpMyAdmin & SSH Attacks This is for everyone, but specifically those running phpMyAdmin. The following is a recent trend that I've compiled through multiple outlets of data, please share your thoughts!
There are one or multiple large botnets around the world that are actively exploiting a vulnerability in phpMyAdmin. This was outlined in a security bulletin in April 2010 (»www.debian.org/security/2010/dsa-2034). This exploit in older versions (below 3.2.4) of the package allows remote code execution on the server. These botnets have been using this exploit to upload a nasty bot named "dd_ssh" which can be executed at root level. This bot then conducts brute force SSH attacks on random IP addresses specified by the bot herder. Ive found that many people who have been attacked have logs showing a flood of http requests from IPs in Asia and Eastern Europe that query the version of phpMyAdmin. These attacks may resemble a DDoS attack server side, but have an ulterior motive.Once discovered the version to be vulnerable, they inject the code.
Upon execution the attacker drops the malicious files in /tmp/vm.c and /tmp/dd_ssh, and then start the dd_ssh service. If you execute the ps command, you shall see "dd_ssh" running in the process list. The first thing one must do is kill this process. After you stop the bot, delete the tmp directories that were created. Next, change all passwords and either reinstall or upgrade your phpMyAdmin (outlined here: »lists.debian.org/debian-security···074.html). The newest versions are not vulnerable.
Here is an excerpt from one of my friend's logs. The 91.x.x.x ip is the attacking bot which is requesting the version of phpMyAdmin from his server. 91.x.x.x - - [07/Aug/2010:XX:XX:XX -0500] "GET /sqladmin/scripts/setup.php HTTP/1.1" 200 13725 "http://[ip_omitted]/sqladmin/scripts/setup.php" "Opera" 91.x.x.x - - [07/Aug/2010: XX:XX:XX -0500] "POST /sqladmin/scripts/setup.php HTTP/1.1" 200 456170 "http://[ip_omitted]/sqladmin/scripts/setup.php" "Opera"
And here's some info on the file(s) in question: [root@server_name]# ls -l /foo/dd_ssh -rwxr-xr-x 1 apache apache 1280240 Aug 7 XX:XX /foo/dd_ssh
Also, here is some info from a different security advisory that may be related (»support.f5.com/kb/en-us/solution···9.html): Once executed, the attacker drops the files in /tmp/vm.c and /tmp/dd_ssh, and then the "dd_ssh"; service starts, which looks like this when the ps command is executed: root 5535 0.0 0.0 2960 832 ? S 21:24 0:00 \_ /tmp/dd_ssh root 5547 0.0 0.0 2960 828 ? S 21:24 0:00 \_ /tmp/dd_ssh root 5548 0.0 0.0 2960 828 ? S 21:24 0:00 \_ /tmp/dd_ssh root 5549 0.0 0.0 2960 828 ? S 21:24 0:00 \_ /tmp/dd_ssh
Here's some related posts and forum threads: »www.debian.org/security/2010/dsa-2034 And heres 2 forum threads on the issue: »www.directadmin.com/forum/showth···?t=37262 »forums.cpanel.net/f185/attacks-t···302.html »lists.debian.org/debian-security···074.html | |  bengizmoPremium join:2010-02-28 Calgary, AB | UPDATE
SANS has confirmed this trend:
SSH - new brute force tool? Published: 2010-08-10, Last Updated: 2010-08-11 20:29:21 UTC by Daniel Wesemann (Version: 4) 5 comment(s)
We have received some reports about a new SSH brute force script, possibly named dd_ssh, that gets dropped onto web servers, most likely via an older phpmyadmin vulnerability. If you have sample log entries from a successful attack or can share a copy of dd_ssh, please let us know. The current DShield figures do show a recent uptick in the number of sources that participate in SSH scanning.
Update 1735UTC: We have received several samples of dd_ssh, with MD5 24dac6bab595cd9c3718ea16a3804009. If your MD5 differs, please still send us a copy. It also looks like the vulnerability exploited is indeed in phpmyadmin, but seems to be the rather old CVE-2009-1151. Again, if your infromation differs, please let us know. Thanks to all the ISC readers who responded so far!
Update 2005UTC: Several readers have identified 91-193-157-206 as the most likely original source of the scanning for phpmyadmin's setup.exe. If successful, two files named "vmsplice.txt" and "dd.txt" were downloaded from that same IP. How exactly dd_ssh was installed is not yet clear, but most readers found it in /tmp after a POST request to phpmyadmin/scripts/setup.exe. A running dd_ssh was seen to talk to a bunch of IPs over port 54509 and 54510, this is most likely the C&C connection.
Update 2020UTC: We got it reasonably established that the vulnerability exploited to drop the SSH scanner was indeed CVE-2009-1151. C'mon, folks, if you insist to have your phpmyadmin reachable from the Internet (why would you?? Access control isn't hard!) then please at least upgrade to the most current version, which at this time is 2.11.10 or 3.3.5.
»isc.sans.edu/diary.html?storyid=9370&rss | |
|