zmap/zdns

Prefix in DMARC module differs from RFC

bayerhonza opened this issue · 2 comments

Hello,

while using the DMARC module, we found that its implementation modules/dmarc/dmarc.go#L56 checks only the first 7 characters ("v=DMARC") of DMARC TXT record and not the ABNF defined in RFC 7489 as "v=DMARC1" with optional whitespaces.

This can lead to cases when a DMARC of a domain is not set up correctly (e.g. "v=DMARCv1") and zdns' result status is "NOERROR" even though the DMARC configuration is not valid.

Is it an intentional behviour?

Thanks.

Sure, I will submit the request ASAP.