The Town Nerd

Cleaning Up After a SQL Injection Attack

In October 2010, a customer’s website was being actively exploited. It was a custom-built PHP site, and 6 other developers had worked on its code over the previous 5 years. The attacker had found a handful of SQL injection points, and one Execution After Redirect flaw on an admin page: the page sent visitors who weren’t logged in to the login page, but kept running the code below the redirect, so anyone who ignored the redirect could use the page anyway.

The cleanup took 5 days.

What I Did

I’ve answered more than a dozen calls like this, each one different and each on a codebase new to me.