Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5 c33f98ccbc
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m52s
fix(security): close the three list endpoints #297 missed (#64)
A second pass over every `limit`/`page`/`$regex` in the handlers found three
the first commit did not cover:

- graph symbol search sent `q` to Mongo as a raw regex and took `limit` as an
  unclamped `usize` from the query string;
- the SBOM list used its own `SbomFilter` paging fields without the
  deserialize-time clamp, so `?limit=10000000` still worked there;
- notifications capped `limit` at 200 but allowed it to be negative and left
  `page` unbounded, so `(page - 1) * limit as u64` could wrap into an enormous
  skip.

All three now use the shared clamp and `literal_regex`, and every handler
computes `skip` through one bounded helper. No raw `$regex` on caller input
remains in the agent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-21 12:55:02 +02:00
..