- What is CAPEC-53?
- If a string is passed through a filter of some kind, then a terminal NULL may not be valid. Using alternate representation of NULL allows an adversary to embed the NULL mid-string while postfixing the proper data so that the filter is avoided. One example is a filter that looks for a trailing slash character. If a string insertion is possible, but the slash must exist, an alternate encoding of NULL in mid-string may be used.
- How does a Postfix, Null Terminate, and Backslash attack work?
- It typically unfolds over 3 phases. It begins with: [Survey the application for user-controllable inputs] Using a browser, an automated tool or by inspecting the application, an adversary records all entry points to the application.
- How do you prevent CAPEC-53?
- Properly handle Null characters. Make sure canonicalization is properly applied. Do not pass Null characters to the underlying APIs.
- What weaknesses does CAPEC-53 target?
- CAPEC-53 exploits 7 CWE weaknesses, including CWE-20 (Improper Input Validation), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')), CWE-158 (Improper Neutralization of Null Byte or NUL Character), CWE-172 (Encoding Error).
- How severe is CAPEC-53?
- MITRE rates CAPEC-53 as High severity with high likelihood of attack.