Skip to content
SQL injection Write-up Beginner

SQLI via stopping the redirection to a login page

The /admin page redirected to a login page, but stopping the redirect revealed sensitive data. A parameter on a game link was vulnerable to SQL injection, confirmed by a 500 error on a quote and a successful ORDER BY test.

Abde Ouabala Follow

Published on medium.com

in this simple small write up, I’ll describe how I was able to exploit a SQL injection vulnerability Via stopping redirection to a login Amin page!

Abde Ouabala, on medium.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

Impact

An attacker could access sensitive data such as game keys, emails, and user credentials, and could perform SQL injection to extract database information.

What the attacker needed

Access to the target subdomain; ability to stop redirects (browser extension or proxy)

How it was found

  1. Access the /admin page, which returns 200 but redirects to login.
  2. Stop the redirection using a browser extension to view the admin page content.
  3. Find a game link with a source_data_id parameter.
  4. Inject a single quote after the id, causing a 500 error.
  5. Inject 'order by 1--' and observe a 200 response, confirming SQL injection.
  6. Use sqlmap with redirection stopped to automate injection.

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 website sometimes sends you to a login page instead of showing the real page. The author used a browser tool to stop that redirect and saw private information. Then they found a link with a number in it and added a quote mark, which caused an error, showing the site was not handling input safely.

What is SQL injection?

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

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.