Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Insufficient Input Validation vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for bson-objectid
.
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.
var ObjectID = require("bson-objectid");
var json = { "mal_formkey": { "payload": "xxxx" }, "_bsontype" : "ObjectID" };
console.log(ObjectID(json)); console.log(ObjectID.isValid(ObjectID(json)));