cve/2022/CVE-2022-32207.md

21 lines
1009 B
Markdown
Raw Permalink Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2022-32207](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32207)
![](https://img.shields.io/static/v1?label=Product&message=https%3A%2F%2Fgithub.com%2Fcurl%2Fcurl&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Business%20Logic%20Errors%20(CWE-840)&color=brighgreen)
### Description
When curl < 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the operation with a rename from a temporary name to the final target file name.In that rename operation, it might accidentally *widen* the permissions for the target file, leaving the updated file accessible to more users than intended.
### POC
#### Reference
- http://seclists.org/fulldisclosure/2022/Oct/41
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/JtMotoX/docker-trivy
- https://github.com/maxim12z/ECommerce
- https://github.com/neo9/fluentd