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

20 lines
924 B
Markdown

### [CVE-2020-7668](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7668)
![](https://img.shields.io/static/v1?label=Product&message=github.com%2Funknwon%2Fcae%2Ftz&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=Arbitrary%20File%20Write%20via%20Archive%20Extraction%20(Zip%20Slip)&color=brighgreen)
### Description
In all versions of the package github.com/unknwon/cae/tz, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading "..". This allows an attacker to add or replace files system-wide.
### POC
#### Reference
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384
#### Github
- https://github.com/jpbprakash/vuln
- https://github.com/mile9299/zip-slip-vulnerability
- https://github.com/snyk/zip-slip-vulnerability