Advisory

GHSA-f5cv-xrv9-r8w7

Also known as: None

Summary

NoSQL injection in express-cart

Details

Versions of express-cart before 1.1.8 are vulnerable to NoSQL injection.

The vulnerability is caused by the lack of user input sanitization in the login handlers. In both cases, the customer login and the admin login, parameters from the JSON body are sent directly into the MongoDB query which allows to insert operators.

These operators can be used to extract the value of the field blindly in the same manner of a blind SQL injection. In this case, the $regex operator is used to guess each character of the token from the start.

Recommendation

Update to version 1.1.8 or later.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-01 21:17 UTC
Modified
2021-09-24 20:58 UTC

Affected packages and fixes

express-cart

npm · All systems

Affected

  • introduced 0, fixed 1.1.8 (semver)

Fixed versions

1.1.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences