TUI labels Follow Records results as wordlist names and omits records_found
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず internal/tui/model.go、特に updateScan、record、summary を確認し、次に internal/cli/session.go と internal/cli/summary.go のCLI処理と比較してください。internal/tui/form.go と既存のテスト internal/tui/passes_test.go を確認し、go test ./internal/tui/ を実行してください。完了条件は、フォローアップの結果が両方のパスでレコードとしてラベル付けされ、レポートに records_found が含まれ、TUIのテストがその両方をカバーすることです。
索引モデルが issue の本文から書いたものです。
説明
Summary
With Follow Records on, the TUI does not know which results came from a found name's records. The engine marks them (Event.Followed), and the command line labels them sources: ["records"] and counts them in records_found; the TUI drops the mark, so they are labelled as wordlist names (or as permutation hits) and the report has no records_found.
Where
internal/tui/model.go(updateScan:m.record(ev.Result)passes the result withoutev.Followed;record;summarynever setsRecordsFound)internal/tui/form.go(formValues.attributeddoes not count Follow Records, so with only that toggle on the results file has no sources at all)- For comparison:
internal/cli/session.go(emitFrom:case ev.Followed: res.Sources = candidates.FromRecords) andinternal/cli/summary.go(t.RecordsFound = res.foundBy[candidates.Records])
Details
// internal/tui/model.go
case ev.Kind == scan.EventResult:
m.record(ev.Result)
record then picks the sources from the stage and the candidate set only. A followed name is not in the candidate set, and SourcesOf answers ["wordlist"] for any name it does not know.
Impact
TUI users who turn on Follow Records with Sources, Permute, Zone Transfer, NSEC Walk, Service Names or PTR Lookups get results files that say a followed name (for example lb-7.int.example.com behind app CNAME lb-7.int) came from the wordlist. With Follow Records alone, the file names no sources. The Stats File and the JSONL summary lack records_found, which the command line writes for the same scan.
Steps to reproduce
- Serve a zone where
app.example.comhasCNAME lb-7.int.example.comandlb-7.int.example.comhas an A record. - In the TUI: wordlist
app, Record TypesA,CNAME, Follow Records and Permute on, an Output file injsonl. - The line for
lb-7.int.example.comhas"sources":["wordlist"]; the summary line has norecords_found. The command line with-follow-records -permutewrites"sources":["records"]and"records_found":1.
Suggested fix
Pass the event (or its Followed flag) to record, label a followed result candidates.FromRecords before the stage and candidate-set cases, count Follow Records in attributed, and set t.RecordsFound = m.foundBy[candidates.Records] in summary.
Acceptance criteria
- A followed name's result in a TUI output file has
sources["records"], in the main pass and in a later pass. - The TUI's report has
records_foundwhen Follow Records found names. - A test in
internal/tuicovers both.
Getting started
- Relevant files:
internal/tui/model.go,internal/tui/form.go,internal/tui/passes_test.go - How to run tests:
go test ./internal/tui/ - Related: #476, #432
Filed by repo-audit/fix-issues at b8afd4d. Severity: low. Effort: S. audit-key: bug|internal/tui/model.go|record
- 主要言語
- Go
- スター
- 1
- フォーク
- 1
- 平均マージ
- 10時間
- マージ済み PR(30日)
- 26
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信
-
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 日以内に返信
-
area: dns enhancement severity: medium
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
TMHSDigital/subenum#477 · コメント 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 日以内に返信