Skip to content

OWASP gap: no CWE-918 SSRF rule, no OWASP crosswalk, adapters ignore 429 and redirect policy #889

Open

Description

@hyperpolymath

Owner ruling D223 (metadatastician/standards#787, 2026-09-30): estate tools must be OWASP-safe, including their own REST and GraphQL clients. A read-only census of hypatia main at 300fd45 found CWE-tagged gates but no OWASP crosswalk and no SSRF rule.

Measured

  • lib/rules/code_safety.ex covers CWE 78, 94/95, 79, 502, 798, 22, 295, 327, 942 and 20. It has no CWE-918 (SSRF) and no CWE-601 (open redirect).
  • Open redirect (CWE-601) and GraphQL injection (CWE-943) exist only in the legacy hypatia-cli-bash.sh (:282, :466), not in the Elixir engine.
  • adapters/src/github.rs:55-57 builds a reqwest client with the default redirect policy and no timeout. adapters/src/lib.rs:79-123 accepts an arbitrary base URL per forge.
  • adapters/src/error.rs:17-24 defines RateLimited and Forbidden but nothing constructs them, so 429 and secondary-limit 403 are not handled.
  • lib/direct_github_pr.ex:29-33 uses a fixed 5 s delay with no Retry-After.
  • The only OWASP mapping is the wiki line calling SC rules "OWASP CI-CD Top-10"; rule ids are not crosswalked.

Acceptance criteria

  1. An Elixir-engine rule flags CWE-918: an HTTP client fed an unvalidated URL. It ships with a fixture it catches and a mutant fixture it must not pass.
  2. CWE-601 and CWE-943 are ported from the bash scanner into the engine, each with a positive and a negative fixture.
  3. The adapters set an explicit redirect policy that never follows a redirect with a write verb, a request timeout, and a host allowlist for base URLs.
  4. The adapters map 429 and secondary-limit 403 to RateLimited and honour Retry-After; a test proves a secondary-limit 403 is not reported as a permission denial.
  5. The rule catalogue carries an OWASP Top 10, API Top 10 and CICD-SEC crosswalk column.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QYY8Gp4v4x2J7iSNn1vZ57

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions