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
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026