How I Found a Major Security Flaw in a Popular Platform… And They Ignored It.
A store locator search parameter was vulnerable to SQL injection, allowing an attacker to retrieve database table and column names. The author used SQLMap to enumerate the database and reported the issue, but the company did not respond and the flaw remains unpatched.
Published on medium.com
It started with boredom. I was casually scrolling through the internet when I landed on a well-known website (let’s call it Platform X).
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 application concatenated user input directly into SQL queries without parameterisation or proper sanitisation.
Impact
An attacker could retrieve sensitive data from the entire database, including table and column names, though the text does not claim access to actual user records.
What the attacker needed
None
The fix
The issue should be fixed by using prepared statements and sanitising input, but the text says it remains unpatched.
How it was found
- Open the store locator search bar on the landing page.
- Enter a single apostrophe and submit the search.
- Observe that the site returns a database error, indicating SQL injection.
- Run SQLMap against the search parameter to automate extraction.
- Review the dumped table and column names from the database.
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's search box often sends what you type to a database to look up results. If the site builds that database command by gluing your text directly into it, a special character like an apostrophe can break the command and let you add your own instructions. Here, typing an apostrophe caused an error that revealed the site was not handling input safely, and a tool then extracted the names of database tables and columns.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.