GitHub Advisoryadvisory · npm

GHSA-mxhp-79qh-mcx6 TaffyDB can allow access to any data items in the DB

HIGH Published 2020-02-19 Modified 2023-01-30 Official page ↗
Aliases
CVE-2019-10790
Ecosystem
npm
Packages
taffy, taffydb
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-20, CWE-668
Reviewed
2020-02-18

Affected packages

• npm taffy: <= 2.6.2 (no fix yet) • npm taffydb: <= 2.7.3 (no fix yet)

Description

TaffyDB allows attackers to forge adding additional properties into user-input processed by taffy which can allow access to any data items in the DB. Taffy sets an internal index for each data item in its DB. However, it is found that the internal index can be forged by adding additional properties into user-input. If index is found in the query, TaffyDB will ignore other query conditions and directly return the indexed data item. Moreover, the internal index is in an easily-guessable format (e.g., T000002R000001). As such, attackers can use this vulnerability to access any data items in the DB. Note: `taffy` and its successor package `taffydb` are not maintained.

Related

Alias · CVE (1)

  • CVE-2019-10790 taffydb npm module, vulnerable in all versions up to and including 2.7.3, allows attackers to forge adding additional properties into… vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-668 Exposure of Resource to Wrong Sphere weakness

References