Skip to content

User impersonation due to incorrect handling of the login JWT

High severity GitHub Reviewed Published Aug 30, 2021 in GeyserMC/Geyser • Updated Feb 1, 2023

Package

maven org.geysermc:connector (Maven)

Affected versions

<= 1.4.1-SNAPSHOT

Patched versions

1.4.2-SNAPSHOT

Description

Impact

This allows anyone that can connect to the server to forge a LoginPacket with manipulated JWT token allowing impersonation as any Bedrock user. Unless credentials are saved in your configuration, online mode is not affected as users are still required to log in separately. If your credentials are saved, there is no risk of exposing your email or password.

Patches

This was patched as part of GeyserMC/Geyser@b954150 and GeyserMC/Geyser@ab2f5b3. if your Geyser version is 1.4.2-SNAPSHOT or later, the issue has been addressed on your build.

Workarounds

Geyser strongly recommends updating to fix this issue. If this isn't possible:

  • Use online mode and don't save credentials in your Geyser configuration
  • Use an additional authentication method on the Java server

References

This was disclosed to us by a staff member over at Hive; you can read their disclosure here: https://updates.playhive.com/weekend-maintenance-disclosure-2kJMaY

For more information

If you have any questions or comments about this advisory:

References

@Camotoy Camotoy published to GeyserMC/Geyser Aug 30, 2021
Published by the National Vulnerability Database Aug 30, 2021
Reviewed Sep 7, 2021
Published to the GitHub Advisory Database Sep 7, 2021
Last updated Feb 1, 2023

Severity

High
7.4
/ 10

CVSS base metrics

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

Weaknesses

CVE ID

CVE-2021-39177

GHSA ID

GHSA-h77f-xxx7-4858

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.