A few weeks ago, I blogged about an adaptive firewall on my
NetSec blog.
While casually checking through the access logs, I noticed that
someone had tried to get admin passwords of my wiki site using
SQL injection.
Here is the actual hacking attempt:
41.250.10.3 - - [28/Jun/2006:04:42:14 -0700] "GET /tiki-usermenu.php?find=&offset=[SELECT%20uid%20FROM%20admins%20WHERE%20login=''%20OR%20'a'='a'%20AND%20password=''%20OR%20'a'='a'] HTTP/1.1" 200 123 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4"
Someone from Africa (looking at the IP number), trying to get the
list of admin accounts without passwords.
So, it occurred to me, that you could easily add a few more
regexp triggers to an adaptive firewall, to catch SQL injection
attacks, and thus either block …