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

18 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### [CVE-2021-21814](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21814)
![](https://img.shields.io/static/v1?label=Product&message=AT%26T&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=AT%26T%20Labs%20Xmill%200.7%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=stack-based%20buffer%20overflow&color=brightgreen)
### Description
Within the function HandleFileArg the argument filepattern is under control of the user who passes it in from the command line. filepattern is passed directly to strlen to determine the ending location of the char* passed in by the user, no checks are done to see if the passed in char* is longer than the staticly sized buffer data is memcpyd into, but after the memcpy a null byte is written to what is assumed to be the end of the buffer to terminate the char*, but without length checks, this null write occurs at an arbitrary offset from the buffer. An attacker can provide malicious input to trigger this vulnerability.
### POC
#### Reference
- https://talosintelligence.com/vulnerability_reports/TALOS-2021-1280
#### Github
No PoCs found on GitHub currently.