← All hands-on practice
Web security · 10 min
Read the log: SQL injection
Kettleby Tea's shop threw errors overnight, then someone logged in to the admin area. Read the web server log and work out what happened.
Start it: free, in your browser, no account
What you will do
- Which IP address is testing the shop for SQL injection?
- 198.51.100.23 searched for o%27brien (O'Brien), which also contains a quote. Is that an attack?
- Adding AND 1=1 returns 5123 bytes, but AND 1=2 returns only 1840. What does that tell the attacker?
- Look at the UNION request at 02:16:40. Did the attacker get data out?
- At 02:31 someone logs in to /admin from a different IP and downloads the orders export. How should you treat it?
- What actually fixes the hole in products.php?
Exam objectives it practises
- CompTIA A+ Core 2 2.5 Social engineering, threats and vulnerabilities
- CompTIA Security+ 2.3 Types of vulnerabilities
- CompTIA Security+ 2.4 Indicators of malicious activity
- CompTIA Security+ 4.9 Data sources for investigations
- CompTIA PenTest+ 4.5 Web application attacks