...
The benefit of white listing is that a programmer can be certain that a string contains only characters that are considered safe by the programmer. White listing is recommended over black listing, which traps all unacceptable characters, as the programmer only needs to ensure that acceptable characters are identified. As a result, the programmer can be less concerned about which characters an attacker may try in an attempt to bypass security checks.
...
Risk Assessment
Failure to sanitize data passed to a complex subsystem can lead to an injection attack, data integrity issues, and a loss of sensitive data.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level | |
---|---|---|---|---|---|---|
STR02-A | ||||||
Component | Value | |||||
Severity | 2 (medium) | Likelihood | 3 (likely) Remediation cost | 2 (medium) | P12 | L1 |
References
- Viega 03
- ISO/IEC 9899-1999 Section 7.20.4.6 The system function