Skip to content
Access control Write-up Intermediate

Insecure by Design, Epic Games Peer-to-Peer Multiplayer Service

Epic Online Services forces peer-to-peer game clients to embed GameServer credentials, which grant broad backend access. An attacker can extract these credentials, enumerate sessions to obtain host IP addresses and user IDs, and create duplicate sessions to hijack matchmaking so players join the attacker's session instead.

billdemirkapi.me

Published on billdemirkapi.me

As someone who enjoys games that involve logistics, a recently-released game caught my eye. That game was Satisfactory, which is all about building up a massive factory on an alien planet from nothing.

The author, on billdemirkapi.me

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the EOS authentication model only offers GameClient and GameServer roles, forcing peer-to-peer clients to embed GameServer credentials that are treated as trusted, and the session search API lacks access controls and rate limiting.

Impact

An attacker could enumerate all non-private sessions to map players and their IP addresses, and could hijack any or all matchmaking sessions so that players join the attacker's session instead, or prevent players from joining sessions at all; Epic Games added an extra authentication layer for session hijacking but the core issue remains.

What the attacker needed

Access to the game binary; Ability to intercept network traffic; A valid game account (after partial fix)

The fix

Epic Games should limit the number of concurrent sessions per user and enforce that the product user ID in a session matches the authenticated user, rather than relying on documentation warnings and an extra authentication layer.

How it was found

  1. Intercept the game's HTTP traffic to find the authentication request to the Epic Games API.
  2. Extract the Base64-encoded client credentials from the Authorization header.
  3. Decode the credentials to obtain a username:password combination for the GameServer role.
  4. Use the GameServer credentials to query the matchmaking filter endpoint with no criteria, enumerating all non-private sessions and their attributes.
  5. Create duplicate sessions with the same session ID attribute but set the OWNINGPRODUCTID attribute to the attacker's product user ID.
  6. When a victim searches for the session ID, the query may return the attacker's duplicate session, causing the victim to join the attacker's game.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

In peer-to-peer games, players connect directly to each other rather than to a central server. Epic Online Services (EOS) is a platform that helps games do this, but it requires game developers to include a powerful credential (like a master key) inside the game itself. Because that key is in every copy of the game, anyone can extract it and use it to impersonate a game server, list all active games, and trick players into joining the attacker's game instead of their friend's.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.