nxcd/paradox:package.json

Snyk’s security scan found the following vulnerabilities.
Ready to fix your vulnerabilities? Automatically find, fix, and monitor vulnerabilities for free with Snyk.

Vulnerabilities

1 via 1 paths

Dependencies

11

Source

GitHub

Commit

d823ecd7

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 1
  • 1
Severity
  • 1
  • 1
Status
  • 2
  • 0
  • 0

high severity
new

GPL-3.0 license

  • Module: @irontitan/tardis
  • Introduced through: @irontitan/tardis@2.0.3

Detailed paths

  • Introduced through: @irontitan/paradox@nxcd/paradox#d823ecd7aa93a0e37f066a8f0e2f5b3e684dea34 @irontitan/tardis@2.0.3

GPL-3.0 license

low severity

Insufficient Input Validation

  • Vulnerable module: bson-objectid
  • Introduced through: @irontitan/tardis@2.0.3

Detailed paths

  • Introduced through: @irontitan/paradox@nxcd/paradox#d823ecd7aa93a0e37f066a8f0e2f5b3e684dea34 @irontitan/tardis@2.0.3 bson-objectid@1.3.1

Overview

bson-objectid is a library that allows you to construct ObjectIDs without the mongodb driver or bson module.

Affected versions of this package are vulnerable to Insufficient Input Validation. The ObjectID() function allows an attacker to generate a malformed objectid by inserting an additional property to the user-input, because bson-objectid will return early if it detects _bsontype==ObjectID in the user-input object. As a result, objects in arbitrary forms can bypass formatting if they have a valid bsontype.

PoC by Feng Xiao (xiaofen9)

var ObjectID = require("bson-objectid");

var json = {
    "mal_formkey": {
        "payload": "xxxx"
    },
    "_bsontype" : "ObjectID"
};

console.log(ObjectID(json));
console.log(ObjectID.isValid(ObjectID(json)));

Remediation

There is no fixed version for bson-objectid.

References