Skip to content
SQL injection Write-up Beginner

Bug Bounty Sql Injection And Bypass Sql Login

The login form on a university site was vulnerable to SQL injection, shown by an error when a single quote was entered. The author also bypassed the login by entering a SQL condition in the username and password fields, gaining access to the admin dashboard without valid credentials.

RyuuKhagetsu Follow

Published on systemweakness.com

Hi Semuanya bagaimana kabarnya ?, semoga dalam keadaan baik baik saja. Kali ini saya ingin membagikan tulisan saya mengenai bug bounty dan semoga tulisan saya bisa menjadi referensi bagi kalian.

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 code inserted user input directly into SQL queries without parameterisation or escaping.

Impact

An attacker could log in as an administrator without valid credentials and could extract database contents.

What the attacker needed

Access to the login page; none

How it was found

  1. Enter a single quote into the login form and observe a database error.
  2. Inspect the login request in the browser's network tools.
  3. Run an automated SQL injection tool against the login endpoint to retrieve the database name.
  4. Enter a SQL condition into the username and password fields.
  5. Get redirected to the admin page.

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 when a website puts what you type into a database command without cleaning it first. Here, typing a special character caused a database error, and typing a fake condition into the login form tricked the site into letting the person in without a real account.

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.