Collect NSEC3 hashes and match them offline instead of dismissing NSEC3 zones
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- go
- 領域
- cli, networking
研究方向
Read internal/dns/nsec.go at denialOf and the NSEC3 handling in internal/axfr/axfr.go; then inspect the NSEC3-serving lab code in internal/dnsserver/server.go and examples/labs/lab8-nsec-walk.zone. The issue outlines collection, candidate matching, stats, and lab work, but the feature spans DNS parsing, query strategy, reporting, and documentation. Done means NSEC3 collection respects the stated budgets, reports matches and zone counts, and the lab exercises a full chain.
由索引模型根據 Issue 內容生成。
描述
Summary
NSEC3-signed zones are detected and then dismissed ("NSEC3 would hide them"). With the parameters RFC 9276 recommends (0 extra iterations, no salt), the NSEC3 chain can be collected in a few hundred NXDOMAIN answers and its hashes matched offline against every candidate subenum already has (the nsec3map/nsec3walker technique).
Where
internal/dns/nsec.go:158(denialOfrecordsDenialNSEC3and skips the record's contents)internal/axfr/axfr.go:100("NSEC3 would hide them"),:260(WalkStop = "the zone is signed with NSEC3, which hides its names")internal/dnsserver/server.go:651(the lab server already serves NSEC3)examples/labs/lab8-nsec-walk.zone:6(Lab 8 asks the learner to switch to nsec3)
Impact
DNSSEC zones most often use NSEC3. Instead of a "not walkable" note, users could get:
- names confirmed with no per-name queries;
- the exact number of names in the zone, which turns the run-quality report into "found 41 of 57";
- a finding when the zone uses zero iterations and no salt.
Suggested fix
Add -nsec3-collect, bounded by -max-queries, -max-duration and -rate:
- Parse NSEC3 RDATA from denial answers, and query random labels aimed at uncovered hash gaps until the ring closes or the budget ends.
- Hash every wordlist, source and permutation candidate locally with the zone's parameters, and mark matches as found after one confirming lookup, as sources are verified.
- Report
nsec3: {names_in_zone, hashes_collected, cracked, iterations, salt}in-stats. - Extend
dnsserver.addDenialto serve a full NSEC3 chain so the lab can test it. - Document that opt-out zones cover only delegations.
Related: #437, #234
Filed by repo-audit/full-audit at a45b999. Severity: medium. Effort: L. audit-key: enhancement|internal/dns/nsec.go|DenialNSEC3
- 主要語言
- Go
- 星號
- 1
- 分支
- 1
- 平均合併
- 10 小時
- 30 天內合併 PR
- 26
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TMHSDigital/subenum 的其他 Issue
-
-diff's removed-name budget ignores the names the -ptr pass tested可能已有人在做 @nova-loop 今天認領。 未關閉area: cli bug good first issue severity: low
難度 2/5 1-3 小時 新手友好度 84/100
TMHSDigital/subenum#495 ·
維護者通常 1 天內回覆
-
area: tui bug good first issue severity: low
難度 2/5 1-3 小時 新手友好度 88/100
TMHSDigital/subenum#494 ·
維護者通常 1 天內回覆
-
security
難度 1/5 1 小時以內 新手友好度 72/100
TMHSDigital/subenum#453 ·
維護者通常 1 天內回覆
-
enhancement help wanted severity: low
難度 4/5 3-5 天 新手友好度 57/100
TMHSDigital/subenum#489 · 1 則留言 ·
維護者通常 1 天內回覆
-
security
難度 2/5 1-3 小時 新手友好度 55/100
TMHSDigital/subenum#457 ·
維護者通常 1 天內回覆
查看 TMHSDigital/subenum 的全部 Issue
相似的 Issue
-
good first issue tools
難度 2/5 1-3 小時 新手友好度 90/100
Edwin-metcalf/MetCode#76 ·
維護者通常 1 天內回覆
-
bug effort:s impact:med raised-by:worker risk:low to:worker
難度 2/5 1-3 小時 新手友好度 78/100
medici-finance/assay#8120 · 1 則留言 ·
維護者通常 1 天內回覆
-
factory:subtask
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
reportedBy/community
難度 2/5 1-3 小時 新手友好度 78/100
openchoreo/openchoreo#5751 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
agent-substrate/substrate#4308 ·
維護者通常 2 天內回覆