From Input Field to Admin Panel: Real-World Web App Pentest on t
A search parameter was vulnerable to boolean-based blind SQL injection, allowing the tester to dump the entire user table including customer PII and admin password hashes. One admin hash was cracked to a trivial password, and the tester used it to log into the admin panel and a driver tracking panel, gaining full platform control.
Published on samruthsriram.medium.com
In a recent Black-Box Penetration Test, I was assigned to assess the security posture of a Live Food Order & Delivery Web Application— https://target.in (real name redacted for NDA/confidentiality). What started as a simple search parameter quickly escalated into full administrative access, live driver tracking, and…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the search input was concatenated directly into a SQL query without parameterisation or sanitisation.
Impact
An attacker could read thousands of customer records including emails, phone numbers and addresses, take over the admin panel, and track drivers in real time, though the text does not state whether any defence limited the attack.
What the attacker needed
No credentials given (black-box); network access to the target
The fix
The application should use parameterised queries, escape input, enforce strong password policies, and add CAPTCHA, 2FA and rate limiting to admin logins; the text does not say these were implemented.
How it was found
- Enter a single quote in the search parameter and observe a SQL syntax error.
- Run SQLMap against the search parameter to confirm and exploit boolean-based blind SQL injection.
- Enumerate tables and extract user data including admin usernames and password hashes.
- Accept SQLMap's offer to crack the password hashes, recovering a trivial admin password.
- Use Burp Intruder to try the cracked password against the list of usernames on the login form.
- Log in to the admin panel and the driver panel with the recovered admin credentials.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The website's search box passed whatever you typed straight into a database command without cleaning it, so special characters could change the command. The tester used a tool to ask the database yes/no questions and slowly extract all its data, including user details and scrambled passwords. One scrambled password was so simple it was easily unscrambled, letting the tester log in as an administrator.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.