...
Failure to sanitize user input before processing or storing it can result in injection attacks.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
IDS17-J | Medium | Probable | No | MediumNo | P8P4 | L2L3 |
Automated Detection
| Tool | Version | Checker | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| The Checker Framework |
| Tainting Checker | Trust and security errors (see Chapter 8) | ||||||||||||||||
| Fortify | 1.0 | Missing_XML_Validation | Implemented | ||||||||||||||||
| Parasoft JtestKlocwork |
| SECURITY.IBA.VPPD | SV.XXE.DBF | ||||||||||||||||
| SonarQube | SonarQube Java Plugin
| Java Plugin
| Java Plugin
| - | S4435 - | Implemented |
Related Vulnerabilities
CVE-2008-2370 describes a vulnerability in Apache Tomcat 4.1.0 through 4.1.37, 5.5.0 through 5.5.26, and 6.0.0 through 6.0.16. When a RequestDispatcher is used, Tomcat performs path normalization before removing the query string from the URI, which allows remote attackers to conduct directory traversal attacks and read arbitrary files via a .. (dot dot) in a request parameter.
Related Guidelines
...
...
STR02-C. Sanitize data passed to complex subsystems
...
...
VOID STR02-CPP. Sanitize data passed to complex subsystems
...
...
Injection [RST]
...
...
CWE-116, Improper Encoding or Escaping of Output
Android Implementation Details
...
Bibliography
A Guide to Building Secure Web Applications and Web Services | |
IDS17-J. Prevent XML External Entity Attacks LiveLesson | |
| [W3C 2008] | Section 4.4.3, "Included If Validating" |
...