$1500 Blind Sql injection via json body
A parameter in a JSON request body to a payment gateway endpoint was vulnerable to blind SQL injection, shown by a server error when a quote character was added. The reporter used time-based SQL injection to dump database tables, including other users' password hashes.
medium.com
Published on medium.com
While doing some research on some payment gateway in my target. I almost check everything including every parameter. what i did was every parameter i gather scan it on sqlmap since theres no rate limit on some api endpoint.
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 the filterOrders value into a SQL query without parameterisation, letting input alter the query.
Impact
An attacker could read arbitrary data from the database, including other users' password hashes, which could lead to account compromise.
What the attacker needed
Access to the payment gateway endpoint; no rate limiting on the API
The fix
The bug was fixed; the text says the team patched it within the day.
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.
The website built database queries by pasting user input straight into them, so a special character broke the query and caused an error. By measuring how long the server took to reply, the tester could ask the database yes/no questions and slowly read its contents, including other people's password hashes.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.