SQL attacks infect thousands of sites

Thousands of websites have been hit by an SQL attack according to security experts. They added that although some sites had been cleaned, others continued to serve visitors a malicious script that tries to hijack their PCs using multiple exploits.

Share

Thousands of websites have been hit by an SQL attack according to security experts. They added that although some sites had been cleaned, others continued to serve visitors a malicious script that tries to hijack their PCs using multiple exploits.

Roger Thompson, the chief research officer at Grisoft SRO, pointed out that the hacked sites could be found via a simple Google search for the domain that hosted the malicious JavaScript. By Saturday, said Thompson, the number of sites that had fallen victim to the attack numbered more than 70,000. "This was a pretty good mass hack," said Thompson in his blog, Exploit Prevention. "It wasn't just that they got into a server farm, as the victims were quite diverse, with presumably the only common point being whatever vulnerability they all shared."

Symantec cited reports by other researchers - including one identified only as "websmithrob" - that fingered a SQL vulnerability as the common thread. "The sites [were] hacked by hacking robot by means of a SQL injection attack, which executes an iterative SQL loop [that] finds every normal table in the database by looking in the sysobjects table and then appends every text column with the harmful script," said websmithrob in a blog post. "It's possible that only Microsoft SQL Server databases were hacked with this particular version of the robot since the script relies on the sysobjects table that this database contains."

According to websmithrob, the attack appends a JavaScript tag to every piece of text in the SQL database; the tag instructs any browser that reaches the site to execute the script hosted on the malicious server.

Hacked sites included both .edu and .gov domains, the SANS Institute's Internet Storm Center (ISC) reported in a warning posted last Friday. The ISC also reported that several pages of security vendor CA's website had been infected.

Grisoft's Thompson said that his research had identified a 15-month-old vulnerability as one of those exploited by the attack code. The exploit, he said, targeted the MDAC (Microsoft Data Access Components) bug patched in April 2006 with the MS06-014 security update. "They went to the trouble of preparing a good website exploit, and a good mass hack but then used a mouldy old client exploit. It's almost a dichotomy," said Thompson.

Other researchers, including websmithrob and Symantec, said that the JavaScript also launched an exploit targeting a much more recent vulnerability: a RealPlayer bug that first surfaced last October. The flaw was fixed several days later by RealNetworks.

"Recommended For You"

Lizamoon hits 500,000 web pages in SQL injection attack BusinessWeek turned into malware playground