Description
Mastodon 4.7.4 and 4.8.0-alpha.3 before 5.0.0-beta.1 contains an authentication bypass vulnerability in authenticate_with_sign_in_token that allows authenticated local users to rebind pending login attempts to other accounts. Attackers can submit sign_in_token_resend with a victim's user[email] parameter, then guess the unthrottled 6-character token to sign in as inactive accounts lacking two-factor authentication.
Affected products and versions
mastodon mastodon4.7.4 – < 4.7.5 · 4.8.0-alpha.3 – < 5.0.0-beta.1Fixed in: 4.7.5 · 5.0.0-beta.1
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- None
Weakness type (CWE)
- CWE-287 Improper Authentication
References
- github.com/mastodon/mastodon/security/advisories/GHSA-3xjw-gv43-3w62 vendor advisory
- github.com/mastodon/mastodon/commit/1e1852ec1f56f068f2d18b3a255647b147913d7c patch
- github.com/mastodon/mastodon/commit/2676e857b32489688dfaf4ea002e6cd5b1d51bba patch
- github.com/mastodon/mastodon/releases/tag/v4.7.5
- github.com/mastodon/mastodon/releases/tag/v5.0.0-beta.1
- github.com/mastodon/mastodon/blob/v4.7.4/app/controllers/concerns/auth/sign_in_token_authe
- www.vulncheck.com/advisories/mastodon-4.7.4-and-4.8.0-alpha.3-before-5.0.0-beta.1-authenti
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.