UNION-based SQL injection INTO OUTFILE
Vulnerability: UNION-based SQL injection in the storefront's product `id` parameter where backend errors leak the application path, allowing `SELECT ... INTO OUTFILE` to drop a PHP webshell into the webroot for remote code execution. Objective: Exploit the SQL injection to write a PHP webshell via INTO OUTFILE, gain remote command execution, upgrade to a reverse shell, and read the flag from local.txt on the server.
# 1. Extract the archive you just downloaded — on your own box, not a server.
you@host:~$ unzip union-based-sql-injection-into-outfile.zip && cd union-based-sql-injection-into-outfile
# 2. Boot the vulnerable machine. It prints the IP it was assigned.
you@host:~$ sudo bash deploy.sh union-based-sql-injection-into-outfile.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.