NoSQL Injection

High Web Application Scanning Plugin ID 98116

Synopsis

NoSQL Injection

Description

A NoSQL injection occurs when a value originating from the client's request is used within a NoSQL call without prior sanitisation.
This can allow cyber-criminals to execute arbitrary NoSQL code and thus steal data, or use the additional functionality of the database server to take control of further server components.
Scanner discovered that the affected page and parameter are vulnerable. This injection was detected as scanner was able to discover known error messages within the server's response.

Solution

The most effective remediation against NoSQL injection attacks is to ensure that NoSQL API calls are not constructed via string concatenation that includes unsanitized data.
Sanitization is best achieved using existing escaping libraries.

See Also

https://www.owasp.org/index.php/Testing_for_NoSQL_injection

Plugin Details

Severity: High

ID: 98116

Type: remote

Family: Injection

Published: 2017/03/31

Modified: 2017/10/16

Risk Information

Risk Factor: High

Reference Information

CWE: 89

WASC: SQL Injection

OWASP: 2017-A1, 2013-A1