1193
Common Consequences
Scope Impact Likelihood
Confidentiality Read Files or Directories
Exposing the contents of a directory can lead to an
attacker gaining access to source code or providing useful
information for the attacker to devise exploits, such as
creation times of files or any information that may be
encoded in file names. The directory listing may also
compromise private or confidential data.
Detection Methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST),
can find some instances of this weakness by analyzing source code (or binary/compiled code)
without having to execute it. Typically, this is done by building a model of data flow and control
flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input)
with "sinks" (destinations where the data interacts with external components, a lower layer such
as the OS, etc.)
Effectiveness = High
CWE Version 4.14
CWE-549: Missing Password Field Masking
CWE-549: Missing Password Field Masking