Other articles |
Analysis of a web attackThe last major web attack to date hit dozen of thousands major websites. Trusted names like the U.N, MSNBC.com and several UK government sites have been compromised and were infecting their users with malware. We take a closer look at this attack.
As most of the IT press already reported, hundreds of thousands web pages, across dozen of thousands websites, have recently been hacked in what appears to be one of the largest on-going attack lately. But as with any major IT security incident, reports were initially quite conflicting about what went on exactly and who's to blame. Armed with a bit more information, we now can take a closer look at the events and we attempt a round-up of what is known so far, including the latest developments from Microsoft (who was originally blamed for an unknown vulnerability). This type of attack is two-stages : hackers first try to compromise a high number of high-profile, trusted, websites in order to booby-trap their pages. Then, when those sites serve the booby-trapped pages, users not only see the regular content, but they also (and silently) get served a malware of some sort through their browser, in order to compromise their system. Thus hackers are not after the webservers per se : they really want to own their visitors PCs in order to make them part of some botnet, and use them to send spam, host fake banking sites and conduct other illegal activities. All the infected websites in this attack were running Microsoft IIS as their websever and MS SQL Server as their database. This caused quite a confusion when the attack was first publicized, prompting questions about a potential unknown vulnerability in either IIS or SQL Server. Microsoft, while initially admitting to be investigating an IIS flaw, came out later on with a clear statement denying the presence of any unknown vulnerability at work here within both IIS ou SQL Server, and blaming instead a regular SQL Injection attack. This has been confirmed since then by most experts, including antivirus vendor F-Secure, saying that "what makes this attack possible is poorly written ASP and ASPX (.net) code". A dev mistakeThe initial attack to compromise the websites was successful because of bad programming practices, and errors within the scripts or content management systems used to update the websites. As such, this is not one specific vulnerability, but instead many bad programmer habits found in many unrelated scripts. It all boils down to one thing, though : improper user input validation.In this attack, just like any other SQL Injection attack, hackers started out by submitting an input to a script found on the victim website (such an input is usually coming from a webform, but here it was most likely sent directly to the script through an URL). The offending input, let's say it's a text to search the database, is made of a legitimate part plus an extra, illegitimate, portion containing instructions for the database to execute. If the website does not validate properly this input, the database will execute the request : it will look for and send back the search results, but also execute the others, illegitimate, instructions. In this specific attack, the illegitimate instructions told MS SQL Server to look for all its text field and append a specific line of HTML to them. "The injected content consisted of an html iframe tag with a src of malicious server based in China. When an arbitrary user would view that content, he would be automatically redirected to that malicious webserver, which in turn attempted to exploit the user's browser with multiple vulnerabilities", explains Dominique Loiselet, Regional Manager for Websense. According to Websense, the eight vulnerabilities attempted here are already patched, so a fully up-to-date browser should be safe in the particular attack. Google used to track victimsThe attack seems to be on the downfall now, but many websites are still infected. "The number of infected sites has started to decrease. We attribute this to widespread awareness of the attack. Yet the precise magnitude of this attack is difficult to quantify due to the constant relocation of the hub sites that are serving the malicious exploits", says Loiselet. AV vendor Panda Antivirus estimated the number of infected webpages to 282,000, while F-Secure goes for a good 500,000. The hackers behind this attacks seem to have used Google to identify their victims. According to Italian expert Giorgio Maone they relied on an automatic tool submitting the search pattern inurl:".asp" inurl:"a=" to Google. This leads to pages and scripts coded in ASP that accept an argument. At the time of writing, the same pattern in Google gives over seven millions hits. While all are not exploitable or even just related, it shows how this kind of attack will not be in shortage of potential victims anytime soon. How to get protected ?Protection against this kind of attack involves different techniques depending on whether one is a user or a website administrator. For users :
For website administrators :
Our members have posted 0 comments about this article. Only members can view and submit new comments.
Related contents
|
Advertising
Related Questions & Answers
Did Conficker serve as a wake-up call? (1 Answers)
What do you think about SecurityVibes ? (5 Answers)
Related companies
Search
Our RSS Feeds
Social Web
|
|||||||||||||||||||||||||||||
Article



