Closed huntr-helper closed 3 years ago
@ready-research @chrean - this addresses https://github.com/Automattic/cli-table/issues/141 - thanks! π°
@chrean - thanks for the merge! π°
If you are interested, you can pop our badge in your README.md
. It tells security researchers to disclose future vulnerabilities to us, and handle them on your behalf. Plus, the researchers get a bounty for securing your repo:
[![huntr](https://cdn.huntr.dev/huntr_security_badge_mono.svg)](https://huntr.dev)
Badge added :)
@ready-research (https://huntr.dev/users/ready-research) has fixed a potential Prototype Pollution vulnerability in your repository π¨. For more information, visit our website (https://huntr.dev/) or click the bounty URL below...
Q | A Version Affected | * Bug Fix | YES Original Pull Request | https://github.com/418sec/cli-table/pull/1
If you are happy with this disclosure, we would love to get a CVE assigned to the vulnerability. Feel free to credit @ready-research, the discloser found in the bounty URL (below) and @huntr-helper.
User Comments:
π Metadata *
cli-table
is vulnerable toPrototype Pollution
. This package allowing for modification of prototype behavior, which may result in Information Disclosure/DoS/RCE.Bounty URL: https://www.huntr.dev/bounties/1-npm-cli-table
βοΈ Description *
Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as proto, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain.
π» Technical Description *
Fixed by avoiding setting magical attributes.
π Proof of Concept (PoC) *
π₯ Proof of Fix (PoF) *
After fix execution will block prototype pollution and polluted will be [undefined.]
π User Acceptance Testing (UAT)
After fix functionality is unaffected.
π Relates to...
https://github.com/418sec/huntr/pull/1976