Skip to main content
Menu
Advisories

Client-controlled SSO identity binding enables administrator account takeover

GHSA-GH77-CJQH-PMVRPublished Updated GitHub

Description

Impact

An attacker can persistently replace the SSO identity bound to a logged-in non-guest account and then sign in as that account using their own identity-provider credentials. For an administrator victim, this yields a full administrator JWT (confirmed access to GET /api/admin/user/list, returning id 1 / username admin / role 2).

Proof of Concept

Send a logged-in administrator the URL https://openlist.example/@manage?sso_id=<ATTACKER_SUB>. The frontend (Profile.tsx) reads sso_id from the query string and sends POST /api/me/update with the attacker's subject; the backend UpdateCurrent (server/handles/auth.go) persists it into the user's SsoID without requiring the current password, 2FA, or a completed IdP flow. The attacker then completes a normal SSO login with their own IdP credentials, and OpenList issues a JWT for the administrator account.

A cross-origin postMessage vector achieves the same result: open https://openlist.example/@manage and post { "sso_id": "<ATTACKER_SUB>" } to the popup.

Affected versions

References

GitHub · OpenListTeam/OpenList