Skip to content

DMARC: 2-label org-domain heuristic wrong for co.uk etc. #106

@Jaro-c

Description

@Jaro-c

RFC 7489 §3.1 requires eTLD+1 (organizational domain) for relaxed alignment. The current 2-label heuristic is wrong for any domain under a multi-part public suffix like .co.uk, .com.au, .gov.uk etc.

Security impact: victim.co.uk and attacker.co.uk both resolve to org domain co.uk under the heuristic, so any two .co.uk senders would incorrectly align in relaxed mode.

Fix: use the psl crate (Mozilla PSL bundled at compile time).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions