Skip to content

No fuzz targets for the NSEC walk, HTTPS and Cert Spotter parsers; CI never fuzzes #470

Backlog

Description

@TMHSDigital

Summary

The seven fuzz targets cover the older parsers. The parsers added since v0.11 that read bytes from servers (the NSEC walk, HTTPS/SVCB records, Cert Spotter pages) have no fuzz target, and CI only replays seed corpora (no -fuzz step, scheduled or manual).

Where

  • Existing targets: FuzzReadTransferMessage, FuzzReadDenial (internal/dns/axfr_hostile_test.go:224, :242), FuzzNormalize, FuzzNormalizeDomain, labzone FuzzParse, FuzzHostNames, FuzzDispatch.
  • Not fuzzed: internal/dns/nsecwalk.go:169 (readCoveringNSEC/nsecNext), internal/dns/https.go:66 (HTTPS/SVCB formatting), internal/passive/certspotter.go:115 (page JSON).
  • .github/workflows/go.yml:90, :162 (go test ./... replays seeds only).

Impact

Panics or broken invariants in these parsers are found only when someone points subenum at a misbehaving server.

Suggested fix

  • Add FuzzReadCoveringNSEC, FuzzFormatHTTPS (raw rdata) and FuzzCertSpotterPage, each asserting no panic and that returned names respect host-name limits.
  • Add a scheduled or workflow_dispatch job that runs every fuzz target with -fuzztime=60s and uploads new crashers as artifacts, so the existing targets get real fuzzing too.

Getting started

  • Relevant files: the parsers above; internal/dns/axfr_hostile_test.go shows the existing fuzz style
  • How to run a target: go test ./internal/dns -run=^$ -fuzz=FuzzReadDenial -fuzztime=30s

Filed by repo-audit/full-audit at a45b999. Severity: medium. Effort: M. audit-key: testing|.github/workflows/go.yml|fuzz

Activity

  1. added
    help wanted
    ci
    testing
    severity: medium
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cihelp wantedseverity: mediumtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions