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
agents-md-lint.sh extracts cross-reference links one at a time by rebuilding the line (quadratic on link-dense lines) #1408
The cross-reference checker repeatedly matches and reconstructs the remaining Markdown line to extract one link at a time. A downstream repository can supply a compact line with many links that causes quadratic processing in the shared audit.
Source/control: AGENTS.md content on an audited downstream repository's default branch, fetched through the GitHub contents API.
Sink/decision: The repeated regex match, captured-string copies, and line reconstruction in amdl_check_cross_references.
Missing mitigation: The parser has no single-pass extraction or work bound for a line. The audit also lacks a separate timeout that would let it abandon one repository and continue.
Reachability call stack
scripts/compliance-audit.sh:3660 — main invokes check_agents_md during serial repository processing.
scripts/agents-md-lint.sh:344 — the dispatcher invokes amdl_check_cross_references.
scripts/agents-md-lint.sh:284 — the checker repeatedly scans and copies the remaining line.
Filed from a CodeRabbit security scan (scan 2d23b5ee-606a-403f-b407-81ddebdb0115, revision 1ea9ee1fbecc). Finding IDs: 091cbdd3-0e8a-475b-baa0-d7d4c2fc6ee5. CodeRabbit notes that findings relying on its stated assumptions are capped at medium severity; dismiss if an assumption does not hold.
Activity
fix(security): script robustness batch — temp-dir symlinks, quadratic…