Skip to content

Subdomains allow spoofing of accounts in search results

Moderate
renchap published GHSA-3m9q-ww7w-qc5j Sep 17, 2024

Package

No package listed

Affected versions

v4.3.0-beta.1

Patched versions

v4.3.0-beta.2

Description

Summary

In the web interface, clicking on the result returned by a search for a username could have lead to a different profile instead.

Details

Clicking on a username in search results could have lead to a different profile, if all of the following conditions were met:

  • The usernames were identical
  • The server name of one user started with the server name of the other user and
  • Account data was loaded in a certain order.

Example: Given a user @user@instance.com and a user @user@instance.com.example.com, if the app loaded and cached the latter user's data first and someone searched for "user" then both users would have been displayed correctly, but both would have linked to the profile of @user@instance.com.example.com.

Impact

Carefully crafted fake accounts could have impersonated other accounts if a user clicked on corrupted search results.

The impact is limited by the fact that this was never in a stable release. But we urge everyone who has installed nightly builds or beta 1 of Mastodon 4.3. to update to beta 2.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CVE ID

No known CVE

Weaknesses

No CWEs