Archive for the ‘Intruders’ Category

Intruders: Website exploitation

Friday, September 25th, 2009

We decided to take a look at a bunch of different exploitation attemps that are thrown at our site every single day. Aside from the normal SQL-injection attemps we usually see a bigger bunch of various PHP remote file inclusion (RFI) attemps, so lets take a close look at one of them. We’ll omit the actual URL from the blog, suffice to say that the attacker tried to find a vulnerable PHPAdsNew installation.

So, we downloaded the URL that they tried to include:

RFI exploit

RFI exploit

Pretty easy to spot that it’s BASE64 encoded. The decoded contents will be passed to eval() which then executes the code. Let’s take a look at the decoded exploit:

base64decoded

So, there’s still a small portion that is BASE64 encoded, but let’s see what the other parts do. You can see the script building a few string based on data it can get from the PHP environment, like the hostname of the server and whether the safe mode is on. It’ll will then send the data onwards to somewhere. The recipient address is still encoded and after decoding we can see that the recipient is:

fr33sh3ll@gmail.com

So, when ever the automated scripts the attacker is using successfully exploits a RFI vulnerable site the attacker will get an e-mail showing the vulnerable site and URL. That way he/she can later on pick a server from the e-mails and do about anything he/she wants.

There are several ways to make such attacks much harder to perform, like turning on the safe mode or toggling on the allow_url_fopen or allow_url_include (in some versions of php). More good/better tricks can be found for example on these two sites:

http://www.madirish.net/?article=229

http://www.hardened-php.net/

Intruders: Spam cannon follow-up

Sunday, May 10th, 2009

So, about a week ago we first wrote about the data our smtpd honeypot had received. The count for first 3 hours was pretty meager, only around 12 thousand recipients. (more…)

Intruders: Spam cannon

Saturday, May 2nd, 2009

The next entry in the Intruders-series is an example of what will happen if an SMTP (mail) server is configured insecurely. (more…)

Intruders: Weak SSH credentials

Monday, April 6th, 2009

We will start the series with an example on weak SSH credential exploitation. We put up a Linux server that was on purpose set up so that remote root login was allowed. The root password was also set to something that was likely to get hit by SSH scanners most of the time. (more…)

New category added

Sunday, April 5th, 2009

We are starting up a new series of blog entries. The category ‘Intruders’ will contain various attacks that take place in the internet, and we strive to show real-life examples of them.

The number of exploitable machines and services in the internet is really dazzling and easily counted in tens, if not hundreds, of millions. Some of the attacks aim to spread a piece of malware while others might be going for a spam cannon. All the entries in this category aim to expose what happens after the actual compromisation of the machine.

All the data will be gathered from live systems, solely set up for this purpose and constantly monitored. This allows us to pull the plug in time to prevent our systems being used to further compromise other machines.