NoSQL Injection
Origional Author for most of content: https://book.hacktricks.xyz/pentesting-web/nosql-injection
In PHP you can send an Array changing the sent parameter from parameter=foo to parameter[arrName]=foo.
The exploits are based in adding an Operator:
Basic authentication bypass
Using not equal ($ne) or greater ($gt)
SQL - Mongo
NOSQL Through Burp
Burp will convert payload into json format to make our lives easier.
Make sure to change the Content Type
Note the
Content Type
is nowapplication/json
This has to be manually edited
If it is not changed the payload will not work even if it would have been successful otherwise.
Last updated