PortSwigger

Lab Description
This lab contains a blind OS command injection vulnerability in the feedback function. The application executes a shell command containing the user-supplied details, but the output from the command is not returned in the response.
Objective: Exploit the blind OS command injection vulnerability to cause a 10-second delay.
Step 1: Capture the Feedback Request
- In Burp’s browser, access the lab
- Use the feedback feature
- Fill in the form and submit it
- In Burp Proxy, find the
POST /feedback/submitrequest - Send it to Repeater
Example request:
POST /feedback/submit HTTP/1.1
Host: YOUR-LAB-ID.web-security-academy.net
Content-Type: application/x-www-form-urlencoded
csrf=TOKEN&name=test&email=test%40test.com&subject=test&message=test

Step 2: Inject the Time-Delay Command
Modify the email parameter:
Original:
email=test%40test.com
Modified:
email=x||ping+-c+10+127.0.0.1||

What this does:
x⇒ A dummy value (may fail, but that’s fine)||⇒ OR operator (executes if the previous command fails)ping -c 10 127.0.0.1⇒ Pings localhost 10 times (~10 seconds delay)||⇒ Ends the command injection
Step 3: Send the Request
- Click Send in Repeater
- Observe the response time
Expected behavior:
- The response takes ~10 seconds to return
- This confirms the command injection vulnerability
Step 4: Lab Solved
The lab is solved when the time delay is detected.
