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
MCP permutation pass skips the MaxPermutations cap the CLI applies #484
The MCP server's permutation pass builds its candidates with subenum.Permutations(seeds, nil), which has no limit. The CLI path is capped at MaxPermutations (1,000,000) since #400, and the pass can only test what is left of the budget anyway.
internal/permute/permute.go:41, internal/candidates/candidates.go:235 (the CLI's capped path)
Impact
Up to 93 candidates per seed, and the seeds are every result of the scan, zone-transfer and CT names included. An MCP operator who raises -max-queries, scanning a zone with about 100k names, gets roughly 9.3M strings (around 1 GB) built and normalized, although only the remaining budget is tested.
Suggested fix
In permutationPass, use the capped generator (permute.GenerateSet(seeds, permute.Words, tested, limit)) with limit = min(candidates.MaxPermutations, budget), and report the cap in the pass's reason.
Acceptance criteria
A test with many seeds and a small budget asserts the number of candidates built is bounded by the budget.
Activity