TUI labels Follow Records results as wordlist names and omits records_found
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 88/100
Rechercherichtung
Beginne mit internal/tui/model.go, insbesondere mit updateScan, record und summary, und vergleiche anschließend die CLI-Verarbeitung in internal/cli/session.go und internal/cli/summary.go. Sieh dir internal/tui/form.go und die bestehenden Tests in internal/tui/passes_test.go an; führe go test ./internal/tui/ aus. Fertig ist die Arbeit, wenn die Ergebnisse aus dem Follow-up in beiden Durchläufen als Datensätze gekennzeichnet sind, die Berichte records_found enthalten und ein TUI-Test beides abdeckt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Go
- Sterne
- 1
- Forks
- 1
- Ø Merge
- 10 Std.
- Gemergte PRs (30 T.)
- 26
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/subenum
-
-diff's removed-name budget ignores the names the -ptr pass testedEvtl. vergeben @nova-loop hat das heute übernommen. Offenarea: cli bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TMHSDigital/subenum#495 ·
Maintainer antworten meist innerhalb von 1 Tag
-
security
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
TMHSDigital/subenum#453 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement help wanted severity: low
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 57/100
TMHSDigital/subenum#489 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: dns enhancement severity: medium
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
TMHSDigital/subenum#477 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
security
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
TMHSDigital/subenum#457 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TMHSDigital/subenum
Ähnliche Issues
-
good first issue tools
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100
Edwin-metcalf/MetCode#76 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
medici-finance/assay#8120 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
factory:subtask
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
reportedBy/community
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
openchoreo/openchoreo#5751 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
agent-substrate/substrate#4308 ·
Maintainer antworten meist innerhalb von 2 Tagen