Skip to content

Game tokens are not bound to IP

High
jvyden published GHSA-7gpm-jqq2-5643 Jun 6, 2024

Package

Refresh (C#)

Affected versions

v2.11.3

Patched versions

v2.11.4, v2.12.0

Description

Summary

The gameserver does not verify the IP that created the game token is the same that uses the game token. This is not normally a problem since it is generally not possible to aquire other's game tokens. However, on LBP1,2,3,Vita on both RPCS3 and PS3, it is possible to discretely and invisibly (to both the user and server) log anyone's token from in-game by just joining them through dive in or through the friends menu.

Details

Token.cs does not contain the IP that created the token, and GameAuthenticationProvider.cs does not verify them

PoC

Using a database viewer of the database (or a patched copy of refresh) get a valid token, and use it on another IP. All requests are allowed through, even though the IP has changed.

Impact

All gameserver users on LBP1,2,3,Vita, PSN/RPCN are effected, and can have their tokens logged, then subsequently used to make requests as that user with no intervention from the server.

Resolution

Link every game token to the user's public IP, and if a user tries to authenticate with it from another IP, return 403 unauthorized, in real scenarios, this causes the game to re-authenticate and retry, so it does not effect normal people playing on networks where your public IP may change in real time.

Severity

High

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
Low
Integrity
High
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:L/I:H/A:N

CVE ID

No known CVE

Weaknesses

No CWEs