"\" not in blacklist for web server, allowing path
traversal attacks when the server is run in Windows and other OSes.
Potential Mitigations
Phase: Implementation
Strategy: Input Validation
Combine use of black list with appropriate use of white lists.
Phase: Implementation
Strategy: Input Validation
Do not rely exclusively on blacklist validation to detect malicious
input or to encode output. There are too many variants to encode a
character; you're likely to miss some variants.
Weakness Ordinalities
Ordinality
Description
Primary
(where
the weakness exists independent of other weaknesses)
An incomplete blacklist frequently produces resultant weaknesses.
Some incomplete blacklist issues might arise from multiple interpretation
errors, e.g. a blacklist for dangerous shell metacharacters might not
include a metacharacter that only has meaning in one particular shell, not
all of them; or a blacklist for XSS manipulations might ignore an unusual
construct that's supported by one web browser, but not others.
[REF-7] Mark Dowd, John McDonald
and Justin Schuh. "The Art of Software Security Assessment". Chapter 8, "Eliminating Metacharacters", Page
435.. 1st Edition. Addison Wesley. 2006.