CWE-20: Improper Input Validation
8 real-world CVEs classified as CWE-20: Improper Input Validation. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2024-4577critical 9.82024
PHP-CGI Windows Best-Fit argument injection
PHP-CGI checked one byte representation for an option prefix, while Windows later converted a soft hyphen into an ASCII hyphen before option parsing.
- CVE-2024-21413critical 9.82024
MonikerLink: Outlook composite moniker security bypass
Outlook blocked ordinary file hyperlinks but a composite suffix caused the same attacker-controlled display name to reach OLE moniker resolution, enabling outbound SMB authentication and bypassing document protections.
- CVE-2022-27255critical 9.82022
Realtek eCos SIP ALG SDP stack overflow
The router's SIP ALG rewrites attacker-supplied SIP and SDP text by copying an overlong argument with strcpy into a fixed stack buffer.
- CVE-2021-42278high 7.52021
noPac: sAMAccountName spoofing to domain controller impersonation
A standard user can rename a machine account to a domain controller's name without the trailing $, because the directory never enforces the machine-account suffix, which a Kerberos S4U2self lookup then resolves back to the real DC.
- CVE-2020-12351high 8.82020
BleedingTooth BadKarma L2CAP type confusion
Linux passed an A2MP manager pointer to a socket-filter API that expected struct sock, causing an adjacent unauthenticated Bluetooth packet to drive kernel type confusion.
- CVE-2020-1350critical 10.02020
SIGRed: Windows DNS signature record heap overflow
A 32-bit DNS signature-record size is truncated at a 16-bit allocation boundary, while the parser later copies the full attacker-declared signature into the undersized heap object.
- CVE-2019-0604critical 9.82019
SharePoint ItemPicker attacker-controlled XmlSerializer type
An ItemPicker postback could carry an encoded entity ID containing both a .NET type name and XML data; EntityInstanceIdEncoder constructed XmlSerializer with that attacker-chosen type and deserialized the paired data.
- CVE-2018-7600critical 9.82018
Drupalgeddon2: render-array callback injection (CVE-2018-7600)
Untrusted request input is merged into a renderable element tree, so an attacker-supplied property beginning with '#' names a callable the renderer then invokes, turning a form submission into unauthenticated remote code execution.