This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "CWE ESAPI"

From OWASP
Jump to: navigation, search
(Considerations for the Mapping)
(Considerations for the Mapping)
Line 60: Line 60:
  
 
== Considerations for the Mapping ==
 
== Considerations for the Mapping ==
 +
 +
The mapping is notional; it is not complete.
  
 
Just because a feature is mapped to a CWE, does not mean that the feature covers all child nodes of that CWE.
 
Just because a feature is mapped to a CWE, does not mean that the feature covers all child nodes of that CWE.

Revision as of 19:59, 11 December 2008

CWE and ESAPI

This page covers the relationships between ESAPI controls and the CWE entries that are eliminated or reduced by the application of those controls.

  • Validation
    • CWE-20: Insufficient Input Validation
    • CWE-116: Insufficient Output Sanitization
    • CWE-228: Failure to Handle Syntactically Invalid Structure
  • Canonicalization
    • CWE-22: Path Traversal
    • CWE-41: Failure to Resolve Path Equivalence
    • CWE-178: Failure to Resolve Case Sensitivity
  • Encoding
    • CWE-113: Failure to Sanitize CRLF Sequences in HTTP Headers (aka 'HTTP Response Splitting')
    • CWE-79: Failure to Sanitize Directives in a Web Page (aka 'Cross-site scripting' (XSS))
    • CWE-89: Failure to Sanitize Data within SQL Queries (aka 'SQL Injection')
  • Authentication
    • CWE-287: Insufficient Authentication
  • Session Management
    • CWE-488: Data Leak Between Sessions
    • CWE-613: Insufficient Session Expiration
    • CWE-384: Session Fixation
    • CWE-614: Sensitive Cookie in HTTPS Session Without "Secure" Attribute
    • CWE-352: Cross-Site Request Forgery (CSRF)
  • Access Control
    • CWE-639: Access Control Bypass Through User-Controlled Key
    • CWE-285: Missing or Inconsistent Access Control
    • CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions
  • Encryption
    • CWE-311: Failure to Encrypt Sensitive Data
    • CWE-649: Reliance on Obfuscation or Encryption of Security-Relevant Inputs without Integrity Checking
    • CWE-323: Reusing a Nonce, Key Pair in Encryption
    • CWE-327: Use of a Broken or Risky Cryptographic Algorithm
  • Randomizer
    • CWE-330: Use of Insufficiently Random Values
  • Error Handling
    • CWE-209: Error Message Information Leaks
    • CWE-392: Failure to Report Error in Status Code
  • Logging
    • CWE-222: Truncation of Security-relevant Information
    • CWE-117: Incorrect Output Sanitization for Logs
    • CWE-532: Information Leak Through Log Files
  • Intrusion Detection
  • HTTP Protection
  • Utilities
  • Filters

Considerations for the Mapping

The mapping is notional; it is not complete.

Just because a feature is mapped to a CWE, does not mean that the feature covers all child nodes of that CWE.

It would be useful to map individual API names, not just features.

Gap Analysis

The CWE team has a capability for providing a "coverage graph" that highlights the location of a subset of CWEs within the context of an entire CWE hierarchy. This could be used to conduct a gap analysis to see which CWEs are not addressed by ESAPI, which would be useful to ESAPI consumers as well as identifying possible future requirements for ESAPI itself. See the graphical depictions of the | CWE OWASP views for examples.

Method

Only CWE identifiers associated with weaknesses were reviewed. (Some CWE entries are arbitrary groupings that organize weaknesses instead of being weaknesses themselves). Only the most abstract CWE identifiers were mapped, implying that lower-level variants are also covered (based on the hierarchy imposed by CWE-1000, the research view, which has a different hierarchical structure than CWE-699, the developer view).