You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OWASP gap: no CWE-918 SSRF rule, no OWASP crosswalk, adapters ignore 429 and redirect policy #889
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
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.
CWE-601 and CWE-943 are ported from the bash scanner into the engine, each with a positive and a negative fixture.
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.
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.
The rule catalogue carries an OWASP Top 10, API Top 10 and CICD-SEC crosswalk column.
Activity