Cyber Risks · PortSwigger Research

Lab: SQL injection attack, listing the database contents on non-Oracle databases

Summary: PortSwigger's lab contains a SQL injection vulnerability in the product category filter, and the query results are returned in the application's response, allowing a UNION attack to pull data from other tables. The database holds a table of usernames and passwords, and solving the lab requires determining that table's name and columns, retrieving all users' credentials, and logging in as the administrator.

Key Takeaway: A single injectable filter parameter exposes every user's username and password in the database, including the administrator's - the same pattern that turns one unvalidated input into a full credential dump.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related