logo

Getting rid of pre- and post-conditions in NoSQL injections

ID: 9c3e5fdc-5566-5cdd-87cf-331bc948d77f

STIX ID: report--9c3e5fdc-5566-5cdd-87cf-331bc948d77f

Feed Name: SensePost Blog

Threat Score
55/100

Date Published: 2025-03-11

Date Updated: 2026-04-30

...
...

This post demonstrates practical MongoDB NoSQL injection techniques — including operator injection, $where JavaScript injection (using constructs like '||1' and null bytes), and JSON syntax injection exploiting duplicate keys and $where — to remove pre-conditions and control query results. The author provides example payloads, explains parser behaviors ("last value wins"), and discusses limitations such as post-condition constraints and the need for specific injection points.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.