Injection ;INSERT INTO employees (id,name,city,salary) VALUES (4,’new’,’employee’,10000)
@xeraa
Slide 15
No Escaping Either ;INSERT INTO employees (id,name,city,salary) VALUES (5,’<script>alert(“hello”)</script>’,’evil’,0)
@xeraa
Slide 16
Slide 17
Slide 18
@xeraa
Slide 19
Slide 20
@xeraa
Slide 21
@xeraa
Slide 22
@xeraa
Slide 23
Slide 24
What’s going on in our app?
@xeraa
Slide 25
Slide 26
DELETE or DROP?
@xeraa
Slide 27
@xeraa
Slide 28
ModSecurity is an open source, cross-platform web application firewall (WAF) module. Known as the “Swiss Army Knife” of WAFs, it enables web application defenders to gain visibility into HTTP(S) traffic and provides a power rules language and API to implement advanced protections.
@xeraa
Slide 29
OWASP ModSecurity Core Rule Set (CRS) Version 3 •
HTTP Protocol Protection
•
Real-time Blacklist Lookups
•
HTTP Denial of Service Protections
•
Generic Web Attack Protection
•
Error Detection and Hiding
@xeraa
Slide 30
Commercial Rules from Trustwave SpiderLabs •
Virtual Patching
•
IP Reputation
•
Web-based Malware Detection
•
Webshell / Backdoor Detection
•
Botnet Attack Detection
•
HTTP Denial of Service (DoS) Attack Detection @xeraa
Slide 31
Run sqlmap again python sqlmap.py —url “https://xeraa.wtf/read.php:8080? id=1” —purge
@xeraa