Files
CVEs-PoC/2021/CVE-2021-21908.md
T
2025-09-29 21:09:30 +02:00

18 lines
1.0 KiB
Markdown

### [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=Garrett%20Metal%20Detectors%20iC%20Module%20CMA%20Version%205.0%20&color=brightgreen)
![](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=brightgreen)
### 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.