DNSSEC security fixes
Thanks to @kevinpark1217 for reporting these seven findings, fixing them, and contributing regression tests. If you use Blocky’s built-in validator (dnssec.validate: true), upgrade to v0.37.0. Six fixes affect earlier releases; the seventh hardens code introduced during development of v0.37.0.
- Chain of trust (GHSA-rfc7-q64c-hj2f): DS and DNSKEY records must belong to the zone being validated. If Blocky cannot complete validation beneath a trust anchor, it returns SERVFAIL rather than serving unchecked data.
- Complete answers (GHSA-8mfq-h5hh-mqf2): Blocky checks that the answer matches the question and response code. A signed alias leading to unsigned data no longer marks the whole answer as authenticated (AD).
- Authority for negative answers (GHSA-6fgw-qmpq-vwxp): Proof that a name or record does not exist must come from the zone responsible for it. A signature from another zone is not sufficient.
- Wildcard and denial proofs (GHSA-mv8x-2h8p-g3wh): Blocky now requires complete proofs for wildcard answers, nonexistent names (NXDOMAIN), and missing record types (NODATA), including checking for aliases where required.
- NSEC3 Opt-Out (GHSA-583r-m4vv-q43p): Blocky requires a complete proof from the parent before treating a delegation as unsigned.
- RSA signature failures (GHSA-g35c-mff8-4w2w): A failed signature under a supported algorithm is rejected rather than treated as evidence that the data is unsigned.
- Validation work limits (development builds only; GHSA-vgm3-vqcv-4hv6): Blocky bounds RSA exponent size and signature-verification work per query. No prior release shipped the large-exponent fallback affected by this finding.
Changelog
Features
- 90c0b68: feat(customDNS): answer HTTPS and SVCB records from the zone (#2377) (@Devehab)
- 51bc15f: feat(metrics): add enableClientLabel to bound per-client label cardinality (#2380) (@0xERR0R)
- 19d0638: feat(querylog): ignore queries from listed clients (#2382) (@Devehab)
- 10ebfe2: feat(querylog): keep database entries through slow writes, outages and shutdown (#2374) (@kevinpark1217)
Bug fixes
- d65d16a: fix(config): reject unitless durations that overflow (#2376) (@56steve)
- 201f9f5: fix(dnssec): accept NSEC3 opt-out proof under an apex wildcard (#2389) (@0xERR0R)
- b267bff: fix(dnssec): return unvalidated data for queries with the CD bit set (#2369) (@jkreileder)
- e9a8411: fix(dnssec): validate DNS64 inputs, bound cache TTLs, and handle ANY and DNAME (#2409) (@0xERR0R)
- 16fba60: fix(dnssec): validate mixed-case DNSKEY owner names (#2361) (#2363) (@0xERR0R)
- 5e98c7a: fix(dnssec): verify RSA signatures with large exponents using math/big (#2386) (@0xERR0R)
- b562e36: fix(hosts): match hosts file names case insensitively (#2371) (@56steve)
- dd9fe49: fix(server): retry startup binds while interfaces come up (#2350) (@0xERR0R)
- 0d3ccbb: fix(server): return max-age=0 for DoH answers containing a zero TTL (#2372) (@mondirzeke-hub)
- bb0e607: fix(server): sanitize non-UTF-8 DoH client ID (#2379) (@0xERR0R)
- c7bb43c: fix(test): panic instead of os.Exit in mock servers so coverage flushes (#2390) (@0xERR0R)
- 4793436: fix: respect ip_unprivileged_port_start in the privileged port warning (#2357) (@Devehab)
Build and dependencies
- 616184a: build(deps): bump github.com/avast/retry-go/v4 to v5 (#2388) (@0xERR0R)
- aa5775b: build(deps): bump github.com/go-sql-driver/mysql from 1.9.3 to 1.10.1 (#2391) (@dependabot[bot])
- 3980078: build(deps): bump github.com/jackc/pgx/v5 from 5.10.0 to 5.13.0 (#2393) (@dependabot[bot])
- abd5e9d: build(deps): bump github.com/jedib0t/go-pretty/v6 from 6.8.3 to 6.9.1 (#2384) (@dependabot[bot])
- 8088f1a: build(deps): bump github.com/jedib0t/go-pretty/v6 from 6.9.1 to 6.9.2 (#2398) (@dependabot[bot])
- 112ef60: build(deps): bump github.com/moby/moby/api from 1.56.1 to 1.57.0 (#2392) (@dependabot[bot])
- 9aa6849: build(deps): bump github.com/oapi-codegen/runtime from 1.8.0 to 1.9.0 (#2383) (@dependabot[bot])
- bf7c089: build(deps): bump go.opentelemetry.io/otel/trace from 1.44.0 to 1.47.0 (#2378) (@dependabot[bot])
- 6148c0c: build(deps): bump golang.org/x/sys from 0.49.0 to 0.50.0 (#2366) (@dependabot[bot])
- 6ce9e02: build(deps): migrate github.com/go-redis/redis/v8 to github.com/redis/go-redis/v9 (#2387) (@0xERR0R)
- 3123665: build: upgrade Go to 1.27.1 (#2385) (@0xERR0R)
Misc
- 1c4c01b: Merge commit from fork (@kevinpark1217)
- 23ffddb: docs(dashboard): Add "Client" filtering into "Traffic" section and leverage
blocky_client_response_totalmetric (#2375) (@maxim-mityutko) - f93ce62: perf: reduce the CPU time and allocations per query (#2370) (@hawkff)
❤️ Support Blocky
Blocky is free and open source, developed in my spare time — no telemetry, no ads, no hidden
filtering. If it's useful to you, please consider supporting its continued development:
GitHub Sponsors ·
thanks.dev ·
Liberapay ·
Ko-fi ·
PayPal
Thank you to everyone supporting Blocky! 🙏