1249
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 200 Exposure of Sensitive Information to an Unauthorized Actor 504
ParentOf 532 Insertion of Sensitive Information into Log File 1241
ParentOf 540 Inclusion of Sensitive Information in Source Code 1251
ParentOf 651 Exposure of WSDL File Containing Sensitive Information 1433
Relevant to the view "Architectural Concepts" (CWE-1008)
Nature Type ID Name Page
MemberOf 1011 Authorize Actors 2425
Relevant to the view "Software Development" (CWE-699)
Nature Type ID Name Page
MemberOf 199 Information Management Errors 2312
Applicable Platforms
Language : Not Language-Specific (Prevalence = Undetermined)
Common Consequences
Scope Impact Likelihood
Confidentiality Read Files or Directories
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
Potential Mitigations
Phase: Architecture and Design
Phase: Operation
Phase: System Configuration
Do not expose file and directory information to the user.
Demonstrative Examples
Example 1:
In the following code snippet, a user's full name and credit card number are written to a log file.
Example Language: Java (Bad)
logger.info("Username: " + usernme + ", CCN: " + ccn);
Observed Examples
CWE Version 4.14
CWE-539: Use of Persistent Cookies Containing Sensitive Information
CWE-539: Use of Persistent Cookies Containing Sensitive Information