ajinabraham.njsscan.generic.error_disclosure.generic_error_disclosure

profile photo of ajinabrahamajinabraham
Author
unknown
Download Count*
License

Error messages with stack traces may expose sensitive information about the application.

Run Locally

Run in CI

Defintion

rules:
  - id: generic_error_disclosure
    patterns:
      - pattern-either:
          - pattern: |
              console.trace(...)
          - pattern: |
              try {
                  ...
              } catch($ERR){
                  console.error(<... $ERR ...>, ...)
              }
    message: Error messages with stack traces may expose sensitive information about
      the application.
    languages:
      - javascript
    severity: WARNING
    metadata:
      owasp-web: a3
      cwe: cwe-209
      license: LGPL-3.0-or-later
      vulnerability_class:
        - Other