Skip to content
SQL injection Write-up Beginner

**🔓 Breaking Into a Bank’s Database (Ethically!) — My Wild Cybersecurity Ride**

A banking portal's ID parameter was vulnerable to SQL injection, allowing the author to extract table names, dump user records, and find admin credentials. The author could have drained accounts or tampered with transactions but reported the issue to CERT-In instead.

zabit majeed Follow

Published on rootxabit.medium.com

What I’m about to share isn’t just another hacking story. It’s a rollercoaster of frustration, discovery, and a critical life decision that every ethical hacker faces sooner or later.

zabit majeed, on rootxabit.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

Root cause

Likely the web application inserted user input directly into SQL queries without proper sanitisation or parameterisation.

Impact

The author could have drained accounts, tampered with transactions, or owned the entire banking backend, but chose to report the issue instead.

What the attacker needed

No authentication needed; target uses a PHP page with an id parameter

How it was found

  1. Find a banking portal using a Google dork for PHP pages with an id parameter.
  2. Insert a single apostrophe into the ID parameter and observe the page becomes blank.
  3. Extract table names from the database.
  4. Dump user records.
  5. Find admin credentials.

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 trick where a malicious input makes a website's database run unintended commands. Here, typing a special character into a web address caused the page to break, showing the site was not safely handling input. The author could then read private data like user records and admin passwords.

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 zabit majeed

View all

1 more disclosed report, 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.