PATCH//NOTES Open it in the app
← 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

  1. Which IP address is testing the shop for SQL injection?
  2. 198.51.100.23 searched for o%27brien (O'Brien), which also contains a quote. Is that an attack?
  3. Adding AND 1=1 returns 5123 bytes, but AND 1=2 returns only 1840. What does that tell the attacker?
  4. Look at the UNION request at 02:16:40. Did the attacker get data out?
  5. At 02:31 someone logs in to /admin from a different IP and downloads the orders export. How should you treat it?
  6. 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