**🔓 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.
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.
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
- Find a banking portal using a Google dork for PHP pages with an id parameter.
- Insert a single apostrophe into the ID parameter and observe the page becomes blank.
- Extract table names from the database.
- Dump user records.
- 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.