Standard Library

GoNetSMTP

net/smtp package. SendMail() and SMTP.Mail() are email injection sinks when headers or body are built from user input without sanitization.

1 sink
Taint flow0 sources 1 sink
Sinks — dangerous call
.SendMail()

Sinks

.SendMail()Sink
#
Signature
SendMail(addr string, a Auth, from string, to []string, msg []byte) error

Sends email. Header injection sink when from/to/msg contain user input.

tracks:2

Fully-Qualified Names

FQNField
net/smtpfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import GoNetSMTP