Closed mehov closed 5 years ago
mod_security: https://www.youtube.com/watch?v=nVrwJEWjtSY&t=6m18s
poor man's waf:
most of the above advice analyzes the query string, but the payload may be in the headers (e.g. referer)
read also:
scanning:
poor man's waf
map "$request_uri $http_referer $http_cookie" $suspicious {
default 0;
"~127\.0\.0\.1" 1;
"~*%27" 1;
"~*(un)?hex\(" 1;
"~*base64_(en|de)code\(" 1;
"~*char\(" 1;
"~*(union(.*))?select(.*)from" 1;
"~*union(.*)select((.*)from)?" 1;
"~*\\\(x(5c|22))+" 1;
}