SQL Injection (UNION-based File Read)
Vulnerability: UNION-based SQL injection in the product-by-id page whose database account holds the FILE privilege, allowing arbitrary file reads via load_file(). Objective: Exploit the UNION-based SQL injection to read files with load_file(), leak an user SSH private key from user directory, log in over SSH and read local.txt.
# 1. Extract the archive you just downloaded — on your own box, not a server.
you@host:~$ unzip sql-injection-union-based-file-read.zip && cd sql-injection-union-based-file-read
# 2. Boot the vulnerable machine. It prints the IP it was assigned.
you@host:~$ sudo bash deploy.sh sql-injection-union-based-file-read.tar
# 3. Point your tools at that IP. Ctrl+C here tears it back down when you're done.
Submit flags
Log in to submit flags and track your progress.