Getting p1 Bug Only With My Cellphone
The login form was vulnerable to SQL injection, as shown by an error when a single quote was added to the username. An attacker could use this to extract database names, though the author stopped after confirming the issue.
Published on systemweakness.com
Hi everyone how are you?, I hope you guys are well. I’m RyuuKhagetsu, this is my article in English, sorry if there are any mistakes.
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 login form built SQL queries by directly inserting user input without proper escaping or parameterisation.
Impact
An attacker could extract database names, and potentially more data, from the backend database.
What the attacker needed
Access to the login form; no account needed
How it was found
- Enter a single quote in the username field on the login form.
- Observe the database error message.
- Capture the login request with a proxy tool.
- Save the request to a file and run an automated SQL injection tool against it.
- Retrieve the list of database names.
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.
SQL injection is a flaw where user input is treated as part of a database command, letting an attacker change the command. Here, typing a single quote in the username caused a database error, showing the input was not safely handled. The author then used a tool to confirm they could list database names.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.