1343
Example 1:
The following OpenSSL code ensures that the host has a certificate.
Example Language: C (Bad)
if (cert = SSL_get_peer_certificate(ssl)) {
// got certificate, host can be trusted
//foo=SSL_get_verify_result(ssl);
//if (X509_V_OK==foo) ...
}
Note that the code does not call SSL_get_verify_result(ssl), which effectively disables the validation
step that checks the certificate.
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 948 SFP Secondary Cluster: Digital Certificate 888 2395
MemberOf 1396 Comprehensive Categorization: Access Control 1400 2519
Notes
Relationship
CWE-295 and CWE-599 are very similar, although CWE-599 has a more narrow scope that is
only applied to OpenSSL certificates. As a result, other children of CWE-295 can be regarded
as children of CWE-599 as well. CWE's use of one-dimensional hierarchical relationships is not
well-suited to handle different kinds of abstraction relationships based on concepts like types
of resources ("OpenSSL certificate" as a child of "any certificate") and types of behaviors ("not
validating expiration" as a child of "improper validation").
CWE-600: Uncaught Exception in Servlet
Weakness ID : 600
Structure : Simple
Abstraction : Variant
Description
The Servlet does not catch all exceptions, which may reveal sensitive debugging information.
Extended Description
When a Servlet throws an exception, the default error response the Servlet container sends back to
the user typically includes debugging information. This information is of great value to an attacker.
For example, a stack trace might show the attacker a malformed SQL query string, the type of
database being used, and the version of the application container. This information enables the
attacker to target known vulnerabilities in these components.
Relationships
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)
CWE Version 4.14
CWE-600: Uncaught Exception in Servlet
CWE-600: Uncaught Exception in Servlet