Skip to content

Rule: detect information disclosure in crawled responses (stack traces, filesystem paths, debug pages, DB errors) #2334

In progress

Description

@nc9

Many sites leave debug output, absolute filesystem paths, stack traces or database errors on normal pages and error pages. Version numbers in headers are already covered by security/version-disclosure.

Acceptance Criteria

  • A shared info-disclosure classifier lives in the rules package and detects absolute paths (/var/www, /home/*/public_html, C:\inetpub), stack traces (Python, Java, Node, PHP), framework debug pages (Laravel, Symfony, Django, Rails, ASP.NET) and DB errors (SQLSTATE, ORA-, PG::, mysqli)
  • A rule applies it to crawled page and error-page bodies and quotes a snippet of bounded length
  • Version numbers in headers stay with security/version-disclosure and are not reported twice
  • A styled 404 page with no internal details is not flagged
  • Tests and a docs rule page are added

Metadata

Metadata

Assignees

Labels

enhancementin-progressrulessize: M

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions