SQL Injection via Category Parameter
The category parameter was vulnerable to SQL injection, allowing an attacker to alter the SQL query and bypass filtering. This could let an attacker retrieve hidden or unauthorised data from the database.
medium.com
Published on medium.com
Professional bug bounty style write-up demonstrating SQL Injection exploitation through the category parameter using the payload ‘ OR 1=1 — . This educational report includes vulnerability analysis, proof of concept, impact, root cause, remediation, and references based on a PortSwigger Web Security Academy lab.
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
What the attacker needed
Access to the category parameter
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 when user input is inserted into a database query without proper handling, so an attacker can change the query's meaning. Here, the category parameter was not sanitised, so a crafted value could make the database return more data than intended.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.