Files
CVEs-PoC/2020/CVE-2020-7766.md
T
2024-05-25 21:48:12 +02:00

20 lines
963 B
Markdown

### [CVE-2020-7766](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7766)
![](https://img.shields.io/static/v1?label=Product&message=json-ptr&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3E%3D%200%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Prototype%20Pollution&color=brighgreen)
### Description
This affects all versions of package json-ptr. The issue occurs in the set operation (https://flitbit.github.io/json-ptr/classes/_src_pointer_.jsonpointer.htmlset) when the force flag is set to true. The function recursively set the property in the target object, however it does not properly check the key being set, leading to a prototype pollution.
### POC
#### Reference
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396
- https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939
#### Github
- https://github.com/Live-Hack-CVE/CVE-2020-7766
- https://github.com/dellalibera/dellalibera