CVE-2019-10790 TaffyDB can allow access to any data items in the DB

High 7.5 Published Updated

Attackers can forge internal indices to bypass query conditions and access any data items in the taffydb database.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-10790?

CVE-2019-10790 is a high-severity missing authorization vulnerability in taffy npm module, published on 17 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

taffydb npm module, vulnerable in all versions up to and including 2.7.3, 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.

Weakness: CWE-668

Which versions are affected by CVE-2019-10790?

4 open source packages ship an affected version, including taffy and taffydb. It affects 1 product.

PackageAffectedFixed in
taffy npmAll versions to 2.6.2None
taffy npmAll versions to 2.6.2None
taffydb npmAll versions to 2.7.3None
taffydb npmAll versions to 2.7.3None

Products include Taffydb Taffy.

How do I fix CVE-2019-10790?

Upgrade to a fixed version.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2019-10790 being exploited?

There is no known exploitation of CVE-2019-10790 in the wild and no public exploit code.

Sources

Also known as GHSA-mxhp-79qh-mcx6, MINI-6939-89v5-32h2.

Is CVE-2019-10790 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free