Cyber Risks · PortSwigger Research

Lab: Detecting NoSQL injection

Summary: PortSwigger's lab presents a product category filter backed by a MongoDB NoSQL database that is vulnerable to NoSQL injection. Submitting a single quote in the category parameter triggers a JavaScript syntax error, and a boolean condition that always evaluates to true causes the response to return unreleased products.

Bottom line: A single quote in a query parameter exposing unreleased products shows how little it takes to reach data the application never intended to return. The same unfiltered input path is what an attacker would probe first against any MongoDB-backed interface.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related