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
The repository has no fuzz targets (grep "^func Fuzz" finds none), and the Wayback parser's edge cases are untested. One of them looks like a latent bug: a single CDX line over 1 MiB fails the whole source.
Where
internal/passive/wayback.go:82, :95, :104-106, :117-119: the scanner buffer cap (1 MiB per line), URL parse errors, transport errors, and the silent 64 MiB truncation
Test cases to add
A body with one 2 MiB line followed by http://www.example.com/. Decide on the behaviour (skipping the oversized line is better than dropping every name) and assert it.
Hosts with userinfo (http://[email protected]), IPv6 literals, *.example.com, and an uppercase domain argument.
Transport error and malformed URL lines.
Fuzz targets: hostNames (wayback), labzone.Parse, validate.NormalizeDomain, wordlist.Normalize, MCP dispatch (one JSON-RPC line), and readTransferMessage (see the AXFR issue).
Fixed in 3a68ccb: Wayback lines over 1 MiB are now skipped instead of failing the answer (tested with a 2 MiB line), with tests for userinfo, IPv6 literals, wildcards, malformed URLs, uppercase domain, missing final newline and a dropped connection. New fuzz targets: FuzzHostNames, labzone FuzzParse, FuzzNormalizeDomain, wordlist FuzzNormalize, mcp FuzzDispatch (AXFR/denial already had FuzzReadTransferMessage/FuzzReadDenial). Each was fuzzed 15-20s locally; FuzzNormalizeDomain found a real bug, filed as #281. Full test suite and golangci-lint v2.15.0 pass.
Activity
TMHSDigital commentedon Nov 14, 2026
Fixed in 3a68ccb: Wayback lines over 1 MiB are now skipped instead of failing the answer (tested with a 2 MiB line), with tests for userinfo, IPv6 literals, wildcards, malformed URLs, uppercase domain, missing final newline and a dropped connection. New fuzz targets: FuzzHostNames, labzone FuzzParse, FuzzNormalizeDomain, wordlist FuzzNormalize, mcp FuzzDispatch (AXFR/denial already had FuzzReadTransferMessage/FuzzReadDenial). Each was fuzzed 15-20s locally; FuzzNormalizeDomain found a real bug, filed as #281. Full test suite and golangci-lint v2.15.0 pass.