Summary

Acunetix 360 detected that the application is vulnerable to a boolean based MongoDB injection. MongoDB injections occur when applications don't check or sanitize user input, which is then interpreted by a MongoDB database.

Acunetix 360 confirmed the vulnerability by executing a test query on the backend database. In these tests, MongoDB injection was not obvious, but the different responses from the page based on our tests allowed us to identify and confirm the MongoDB injection.

Impact

Depending on the backend database version and the query, an attacker can perform one of the following types of attacks successfully:

  • Reading, updating and deleting arbitrary data from the database
  • Collect sensitive information about the backend server configuration

Remediation

To avoid this vulnerability;

  • Sanitize and stritly check the type of user-supplied input
  • Avoid using where, mapReduce and group operators with user input
  • If possible set javascriptEnabled to false in mongod.conf
  • Use the most recent version of MongoDB.

Severity

High

Classification

PCI v3.2-6.5.1 CWE-943 OWASP 2013-A1 OWASP 2017-A1 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L