CWE-706: Use of Incorrectly-Resolved Name or Reference
4 real-world CVEs classified as CWE-706: Use of Incorrectly-Resolved Name or Reference. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2021-40539critical 9.82021
ManageEngine ADSelfService raw-path and normalized-path authentication split
The REST security filter decided whether authentication was required using one representation of the request path, while later routing normalized dot segments and dispatched the same request to a protected REST endpoint. Paths containing /./RestAPI or /../RestAPI therefore evaded the filter and regained their protected meaning afterward.
- CVE-2021-30970medium 5.52021
powerdir: mutable home directory redirects the TCC database
The macOS privacy daemon derives a user's TCC database path from the Directory Services home-directory record, allowing a local attacker to redirect that trusted lookup to a prepared database under an attacker-controlled home.
- CVE-2020-1938critical 9.82020
Ghostcat: AJP request-attribute injection in Apache Tomcat
A trusted binary connector maps any attribute name it receives onto the request, so a client can set the internal include attributes and make the server serve files it should never expose, such as WEB-INF.
- CVE-2018-12020high 7.52018
SigSpoof: an embedded filename forges signature status
An OpenPGP original filename containing line feeds reached verbose diagnostics unsanitized. When a frontend placed machine status and diagnostics on file descriptor 2, the filename could inject a fake GOODSIG or VALIDSIG record.