GHSA-h77f-xxx7-4858

Suggest an improvement
Source
https://github.com/advisories/GHSA-h77f-xxx7-4858
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-h77f-xxx7-4858/GHSA-h77f-xxx7-4858.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h77f-xxx7-4858
Aliases
Published
2021-09-07T23:04:04Z
Modified
2023-11-08T04:06:32.653492Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
User impersonation due to incorrect handling of the login JWT
Details

Impact

<!--What kind of vulnerability is it? Who is impacted?--> 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

<!--Has the problem been patched? What versions should users upgrade to?--> This was patched as part of https://github.com/GeyserMC/Geyser/commit/b9541505af68ac7b7c093206ac7b1ba88957a5a6 and https://github.com/GeyserMC/Geyser/commit/ab2f5b326fe590e09167e8b45b4b165ac06ecd13. if your Geyser version is 1.4.2-SNAPSHOT or later, the issue has been addressed on your build.

Workarounds

<!--Is there a way for users to fix or remediate the vulnerability without upgrading?--> 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

<!--Are there any links users can visit to find out more?--> 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: * Come talk to us over on our Discord server in the #development channel

Database specific
{
    "nvd_published_at": "2021-08-30T23:15:00Z",
    "github_reviewed_at": "2021-09-07T14:04:02Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-287"
    ]
}
References

Affected packages

Maven / org.geysermc:connector

Package

Name
org.geysermc:connector
View open source insights on deps.dev
Purl
pkg:maven/org.geysermc/connector

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.2-SNAPSHOT

Database specific

{
    "last_known_affected_version_range": "<= 1.4.1-SNAPSHOT"
}