TUI labels Follow Records results as wordlist names and omits records_found
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 88/100
Direzione di ricerca
Inizia da internal/tui/model.go, in particolare da updateScan, record e summary, poi confronta la gestione della CLI in internal/cli/session.go e internal/cli/summary.go. Esamina internal/tui/form.go e i test esistenti in internal/tui/passes_test.go; esegui go test ./internal/tui/. Il lavoro è completato quando i risultati del follow-up sono etichettati come record in entrambi i passaggi, i report includono records_found e un test TUI copre entrambi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Go
- Stelle
- 1
- Fork
- 1
- Merge medio
- 10h
- PR unite (30g)
- 26
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/subenum
-
-diff's removed-name budget ignores the names the -ptr pass testedForse già presa @nova-loop l’ha presa oggi. Apertaarea: cli bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
TMHSDigital/subenum#495 ·
I maintainer di solito rispondono entro 1 giorno
-
security
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
TMHSDigital/subenum#453 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
TMHSDigital/subenum#489 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: dns enhancement severity: medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
TMHSDigital/subenum#477 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
TMHSDigital/subenum#457 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/subenum
Issue simili
-
good first issue tools
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
Edwin-metcalf/MetCode#76 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
medici-finance/assay#8120 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
factory:subtask
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
reportedBy/community
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openchoreo/openchoreo#5751 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
agent-substrate/substrate#4308 ·
I maintainer di solito rispondono entro 2 giorni