How one site dealt with SQL injection attack

SQL injection attacks claim a victim

The massive wave of SQL injection attacks that started striking Microsoft-based Web sites around the world more than a week ago claimed as one of its victims Autoweb, a UK-based advertising and marketing site.

The ongoing attack, which hit Autoweb on a late Friday, exploited a vulnerability in a single line of code in the Web application to pierce through to the company's Microsoft SQL database, inject 30 characters to overwrite content, defaced Web pages, and ultimately knocked the site offline. The attack left Web pages that would attempt to inject malicious code into browsers of Web visitors.

It is estimated that at least a half-million Web pages had been infected in a similar style since it was flagged by security experts April 24. How Autoweb had to fight to recover its site over the long weekend that followed shows how devastating SQL injection attacks can be.

CIO Richard McCombe said nothing like this ever happened before to its Web site, which is hosted by a provider in Leeds, England. "We were struggling at that point to get the site back up."

But Autoweb's IT staff, who worked through the weekend, soon realized that database tables storing content provided by car dealers about their vehicles had been overwritten with a 30-character script.

A look at log files showed the attacks, which continued to surge through the weekend, were originating from IP addresses in China. So Autoweb blocked them. "That gave us a window of opportunity," says McCombe.

About a day's worth of new Web content from car dealers had been corrupted in the SQL injection attacks, but Autoweb did a daily backup, so it turned to that for clean content, and began backing up each hour through the weekend.

McCombe reached out for advice to UK-based firm Secerno, which builds a database-security appliance.

Steve Moyle, chief technology officer at Oxford, England-based Secerno, informed Autoweb that the most likely point of attack was through Web pages. McCombe then contacted the Web software developer, a contractor that worked for Autoweb, on a Sunday. But the developer said the problem was simply "over his head," said McCombe. The contractor had no idea how to find and fix the Web page vulnerability that allowed the SQL injection attack code to execute successfully.

Secerno, an appliance vendor, couldn't help with Web application remediation since its expertise was in database protection, and its appliance couldn't be used in Autoweb's case since Autoweb had the Web application and the database on a single server.

But McCombe managed to find a Web development company to fix the Web application hole.

"It was a simple piece of code in the Web application," says McCombe. As Autoweb began to put the nightmare of the massive SQL injection attack behind it last week, it's apparent there's been an impact.

"We were at 25,000 visits a day, now we're at 20,000," says McCombe, saying the site's ranking in a Google search has dropped somewhat but it will do what it can to bring that back up.

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Ellen Messmer

Network World
Show Comments

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?