Skip to content

Invalid domain name normalization

High
renchap published GHSA-v3xf-c9qf-j667 Sep 19, 2023

Package

No package listed

Affected versions

all

Patched versions

3.5.14, 4.0.10, 4.1.8, 4.2.0-rc2

Description

Summary

Under certain circumstances, attackers can exploit a flaw in domain name normalization to spoof domains they do not own.

Found and reported by Gabriel Campana

Details

Old domain name normalization code in Mastodon incorrectly stripped / from domain names, removing any occurrence from the string, not just occurrences at the end of the string.

This allows attackers to impersonate domains, provided they are able to register a domain name that happens to be a textual prefix of the impersonated domain.

Impact

Attackers can spoof domains they do not own. More details to be announced.

Severity

High
7.7
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L

CVE ID

CVE-2023-42451

Weaknesses

No CWEs

Credits