Skip to content
SQL injection Write-up Beginner

APPLICATION SECURED ? LET’S CHECK IT WITH SQL INJECTIONS **😈**

The admin login page was vulnerable to SQL injection, allowing an attacker to bypass authentication and log in as an administrator. Once logged in, the attacker could view user data such as phone numbers, user IDs, and email addresses.

Shreya Talukdar Follow

Published on infosecwriteups.com

So basically , there is a sql query (request for data or information from a database table or combination of tables) on the web application which is sent to the database and this query is executed on the database and relevant information is returned back to the Web Application …

Shreya Talukdar, on infosecwriteups.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 its database query by directly concatenating user input, so a crafted username and password altered the query logic to always authenticate.

Impact

An attacker could bypass admin authentication and access sensitive user data including phone numbers, user IDs, and email addresses.

What the attacker needed

Access to the admin login page; no valid credentials needed

How it was found

  1. Find subdomains and identify the admin login page.
  2. Capture the login request in Burp Suite and send it to Intruder.
  3. Load payloads and start the attack, observing a 302 response for a bypass payload.
  4. Use the same payload in both username and password fields to log in.
  5. Access the admin panel and view user data.

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 user input directly into a database command without cleaning it. An attacker can type special characters that change the command's meaning, for example making the login check always succeed. Here, that let the attacker log in as an admin without knowing the password.

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 Shreya Talukdar

View all

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