cve/2021/CVE-2021-21908.md

18 lines
955 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2021-21908](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21908)
![](https://img.shields.io/static/v1?label=Product&message=Garrett%20Metal%20Detectors&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-22%3A%20Improper%20Limitation%20of%20a%20Pathname%20to%20a%20Restricted%20Directory%20('Path%20Traversal')&color=brighgreen)
### Description
Specially-crafted command line arguments can lead to arbitrary file deletion. The handle_delete function does not attempt to sanitize or otherwise validate the contents of the [file] parameter (passed to the function as argv[1]), allowing an authenticated attacker to supply directory traversal primitives and delete semi-arbitrary files.
### POC
#### Reference
- https://talosintelligence.com/vulnerability_reports/TALOS-2021-1359
#### Github
No PoCs found on GitHub currently.