Medium OSCP EJPTV2 ssh id_rsa Web Hacking SQL INJECTION

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.

getting_started.sh

# 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.

Rating —
Downloads 1
Published Nov 17, 2026
Log in to download

Don't have an account? Sign up free

Learn more

Read the theory behind this lab before diving in.

Submit flags

Log in to submit flags and track your progress.

Comments (0)

Log in to join the discussion.

No comments yet. Be the first to ask something.