Skip to content
SQL injection Write-up Beginner

Critical Union Based Sql Injection Vulnerability

The login form passes user input into SQL queries without proper sanitisation, so an attacker can inject SQL statements to bypass authentication and read database contents. The text claims this could lead to unauthorised access, data leakage or full database compromise.

Aswin KV Follow

Published on systemweakness.com

This vulnerability allows an attacker to run arbitrary SQL queries on the application’s database, which might result in unapproved access, data leaking, or even total system penetration.

Aswin KV, 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 concatenates user input directly into SQL statements instead of using parameterised queries.

Impact

An attacker could bypass authentication and read or alter database contents, potentially leading to unauthorised access, data leakage or database compromise.

What the attacker needed

Access to the login form; none

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.

A login form sends what you type into a database query. If the site builds that query by gluing your text straight in, you can type database commands instead of a username, and the database obeys them. That lets someone skip the login check and read data they should not see.

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 Aswin KV

View all

10 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.