SQL INJECTION in https://████/██████████
A SQL injection exists in the Referer header, letting an attacker manipulate SQL statements sent to the MySQL database and change their logic.
- Triaged in 3 days
- Fixed in 14 days
- Disclosed after 2.5 years
Bug is : Sql injection in https://██████████/████████ via Referer I've confirmed the vulnerability using sleep SQL queries with various arithmetic operations. The sleep command combined with the arithmetic operations will cause the server to sleep for various amounts of time depending on the result of the arithmetic operation.
##Proof of concept : 1- go to https://██████████/████████ and capture Request 2- put this payload in Referer '+(selectfrom(select(sleep(66)))a
Impact
##Impact : An attacker can manipulate the SQL statements that are sent to the MySQL database and inject malicious SQL statements. The attacker is able to change the logic of SQL statements executed against the database.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application fails to sanitise user input from the Referer header before using it in SQL queries.
Impact
An attacker could manipulate SQL statements to change the logic of queries.
What the attacker needed
Ability to send requests with custom Referer header
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 report has not been written yet. The Original tab links to the source.
SQL injection lets a malicious user insert database commands into a header. Here the Referer header is used in SQL, so the attacker can make the database wait to confirm the injection.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.