Lab 06: Apache mod_security Lab 2 - squatchulator/Tech-Journal GitHub Wiki
Common Attack Type Protection
XSS Attack:
- Open browser and request a URL with your server IP like:
http://192.168.1.1/??<script>XSS_Attack</script> - Check
/var/log/httpd/modsec_audit.log. mod_security should block this request since it contains the<script>tag.
Directory Traversal Attack:
- Open browser and request a URL with your server IP like:
http://192.168.1.1/?../../boot - Check
/var/log/httpd/modsec_audit.log. mod_security should block this request since it contains directory traversal.
Telnet Web Client:
-
telnet localhost 80GET / HTTP/1.1Host: sitename.com