NoSQL Injection: WAF and Filters

NoSQL injectionExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Remove pre-condition:

In MongoDB, if a document contains duplicate keys, only the last occurrence of the key will take precedence.

js
{"id":"10", "id":"100"} 

In this case, the final value of "id" will be "100".

Comments

No comments yet.