Blog

Defacing -> A Malicious Trifecta

02.12.2007 - 8:01 AM
Recently we have been doing more researching into defaced Websites and we are seeing an increase in the use of sites that have been defaced for other nefarious purposes. We are going to have a more thorough report on the general subject soon on our blog, but until then we though we would show an example of a recent one.

A CRM & customer service site was recently compromised (it has since been cleansed). The site was defaced by a group that goes by the name of "The Black Scorp!on Team". Unlike defaced attacks in the past, which simply replace the main homepage of the site for political, hacktivist, or other reasons, this attack included two other pieces of code along with the defacement scripts.

Defacement Screenshot:

Within the HTML of the site there were two pieces of obfuscated JavaScript code. The first piece of code appeared to be using a Cross-Site-Scripting XSS vulnerability within Microsoft's MSN Arabian site. Although we do not have access to the server-side PHP code its using, it looks like its designed to steal-cookies from MSN users and post them to a third party site.

The XSS is loaded within an obfuscated IFRAME tag and looks like this:

XSS Encoded Screenshot:

XSS Decoded Screenshot:

The other piece of malicious code is a larger piece of hidden javascript which decodes into exploit code for the Microsoft ADODB vulnerability. This vulnerability has been patched by Microsoft. Assuming users are not patched on for this shellcode is run locally on their machine and a file called "X.exe" is download and run from the same site that is hosting the XSS code. X.exe is a Trojan Horse Backdoor which gives the attacker access to the machine remotely.

Exploit Encoded Snippet:

Exploit Decoded Snippet:


Bookmark This Post:

Post a Comment: