NoSQL Injection

high Web Application Scanning Plugin ID 98116

Language:

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: 3/31/2017

Updated: 11/26/2021

Scan Template: pci, api, scan

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: Tenable

CVSS v3

Risk Factor: High

Base Score: 7.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

CVSS Score Source: Tenable

Reference Information

CWE: 89

WASC: SQL Injection

OWASP: 2010-A1, 2013-A1, 2017-A1, 2021-A3

OWASP API: 2019-API8

HIPAA: 164.306(a)(1), 164.306(a)(2)

ISO: 27001-A.14.2.5

CAPEC: 108, 109, 110, 7, 470, 66

PCI-DSS: 3.2-6.5.1

DISA STIG: APSC-DV-002540

OWASP ASVS: 4.0.2-5.3.4

NIST: sp800_53-SI-10