Microsoft denies a link between IIS and SQL injection attacks

By Scott M. Fulton, III | Published April 28, 2008, 12:06 PM

An apparent rash of SQL injection attacks on Web sites was reported by a Finnish security firm late last week, though a case of "guilt by implication" led to speculation that a privilege escalation vulnerability was the cause.

Last Friday, the Web site of security engineering firm F-Secure noted what appears to be another outbreak of successful SQL injection attacks on database-driven Web sites that use Active Server Pages to generate results. In what appears to the firm to be a twist on a classic attack scheme, an uncleansed SQL query into a database reformulates the contents of every record in its tables so that certain text fields contain hidden, malicious JavaScript code.

That code may then be executed by some unprotected browsers, and the result could be, F-Secure warns, the downloading of a Trojan package with an unspecified payload.

An update at the end of F-Secure's Friday report identified only SQL Server and IIS-related sites as being vulnerable. But a BetaNews check this morning of infected sites whose injected code is visible via Google query (where, ironically, the hidden script code becomes un-hidden) revealed at least one site -- that of publisher Harcourt Brace, a frequent Oracle partner -- where the injected code was also present.

While Active Server Pages are the products of Microsoft Internet Information Server, the technology is not exclusively linked to Microsoft SQL Server.

At any rate, the update apparently sparked speculation that the privilege escalation vulnerability acknowledged by Microsoft ten days ago, was somehow related since IIS was also involved. That prompted Microsoft to respond in a now familiar fashion: publicly sorting out one type of problem from another.

"This wave is not a result of a vulnerability in Internet Information Services or Microsoft SQL Server," wrote the security team's Bill Fisk last Friday. "We have also determined that these attacks are in no way related to Microsoft Security Advisory 951306. The attacks are facilitated by SQL injection exploits and are not issues related to IIS 6.0, ASP, ASP.Net or Microsoft SQL technologies."

In a separate blog post, Microsoft SQL engineer Bill Staples repeated the two problems were not related, and added, "Instead, attackers have crafted an automated attack that can take advantage of SQL injection vulnerabilities in Web pages that do not follow security best practices for web application development. While these particular attacks are targeting sites hosted on IIS web servers, SQL injection vulnerabilities may exist on sites hosted on any platform."

Taking the meaning of "exploit" to new levels, apparently some of the code used in the exploit has been registered as a keyword on Google's AdWords platform. This morning, BetaNews found a search for some of the hidden code turned up a sponsored link for a site that offers a fix for what it calls the "aspder.com virus." It promises to cleanse the injected fields in your database, all for a mere $29.95.

"We assume no risk," the proprietors warn. "We just hope it helps."

Comments

Microsoft is right on this one. SQL Injection has nothing to do with IIS at all. It targets poor development practices, and has happened on basically every platform.

People who try to pin this on Microsoft are probably going to spend next week blaming Ford for potholes.

Score: 0

|

I am interested in network safety. Open network sites concern me and will continue to be a problem without proper regulation of the networks. Security best practices are a key, but not enough. Thank you for this great article.

Score: 0

|

Crackers pray for ubiquitous homogeneity.

Score: 0

|

Like standards like smtp! ;)

Score: 0

|

Sendmail, qmail, exim, fetchmail, and many others implement SMTP. Even Microsoft does SMTP. And none of them have the same vulnerabilities.

Good standards encourage diverse implementations. Not that SMTP is a great standard but it does allow my mail server to shrug off an attack that would crack a Microsoft mail server.

Diversity is the enemy a cracker.

Score: 0

|

Diversity is the enemy a cracker.

Funny how you can say that while railing against OXML in previous threads.

Guess it only applies when that diversity isn't a MSFT product?

Score: 0

|

You missed my point. SMTP is a terrible protocol because it has built-in broken authentication, it's ripe for abuse, and yet it's a standard that everyone uses, and keep uses despite its obvious flaws...

Score: 0

|

My point is that with many different implementations each with many different configurations there isn't an attack that will crack every SMTP server.

Sure you can make Qmail bounce an error to a forged return address, but that trick doesn't work with Exim. I don't think there is a program with worse security record than Sendmail, but those cracks will not let you run arbitrary code from Qmail.

True diversity is the enemy "of" a cracker.

False diversity, when a standard is only implemented on one OS and every program uses the same vendor provided libraries, makes a prime target. Like some standards that would be off topic to mention.

Score: 0

|

Microsoft needs an UAC for bad development techniques.

Score: 0

|

Wow, an comment that is actually using your brain, instead of the usual M$ sucks.

SQL Injection is a real problem that can be solved by using simple coding rules.

NEVER Build dynamic queries with input from a form without using parameters. This goes for any language and database.

Score: 0

|

I agree, but people tend to complicate everything.

Score: 0

|

Before it can tackle Windows, Chrome must leave Safari in the dust

It's a little browser with dreams of becoming a bigger operating system some day. But while it's chasing Microsoft's dreams, Chrome's tail is being chased by Apple.

Silverlight 3 goes live on Microsoft's servers

Microsoft's answer to Adobe's Flash is (unofficially) here, with prospects of higher-speed, higher-resolution video and for the first time, 3D.

Best Buy-brand TVs to get TiVo

A new alliance will place the retailer's own brand alongide the manufacturers, and could also lead to future partnerships on services.

Three Android phones on the way from T-Mobile in 2009

T-Mobile's myTouch 3G, launched Wednesday, will be followed by two more Android phones later this year, but neither of them will be HTC's Hero.

LTE still lacks a voice

The 4G Wireless standard that Verizon hopes to show off before this year is out is still at a loss for (spoken) words.

T-Mobile's strategy to combat Apple's iPhone with Android

With a trio of Android phones now in the pipeline for 2009, T-Mobile hopes to break the iPhone's emerging stranglehold.

EC's Reding: Government should act as broker for media downloads

If Internet media services don't step up and build an attractive way for users to start paying for downloads, a commissioner says, government may do the job instead.

Sony TVs get Netflix, still no PS3

Though it's coming in behind LG, Samsung, and Microsoft, Sony will begin to offer Netflix streaming, too.

Google Chrome OS: Too little, too early

Carmi Levy: Wide Angle Zoom Don't start the revolution just yet, says Carmi, who isn't so certain Chrome OS will be the "Windows Killer."

GAO pen test brings the hammer down on federal rent-a-cops

But are the computers to blame for the contract-guard fiasco at FPS?

What's Next: Chrome OS will have at least some friends in high places

Also: South Korea takes another round of DDoS abuse, and Neelie Kroes and Steve Ballmer may shake hands before she exits stage left.

Data sharing among online advertisers: Is sanity in sight?

Lockdown with Angela Gunn In the middle of a 15-page plea not to get regulated, a spark of smart thinking.