Skip to content
SQL injection Write-up Beginner

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.

RyuuKhagetsu Follow

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.

RyuuKhagetsu, on systemweakness.com

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

  1. Enter a single quote in the username field on the login form.
  2. Observe the database error message.
  3. Capture the login request with a proxy tool.
  4. Save the request to a file and run an automated SQL injection tool against it.
  5. 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.

More by RyuuKhagetsu

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.