In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Output Neutralization for Logs vulnerabilities in an interactive lesson.
Start learningUpgrade github.com/tinfoil-factory/netfoil/dns to version 0.3.0 or higher.
Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the readDomain parser in dns/dns.go. An attacker can write attacker-controlled domain labels into logs by supplying a DNS name containing disallowed characters, because the parser accepted each label and joined it into the domain string without first validating the label contents. The resulting log entries can be polluted or manipulated depending on how downstream systems consume them, which can mislead operators or break log parsing and alerting.
Notes
readDomain; ordinary consumers that never parse attacker-supplied DNS payloads are not exposed.