OpenHuman: CSRF on the /auth fallback implants the attacker's session
OpenHuman local core - login CSRF on the desktop /auth fallback callback lets any web page implant the attacker's session, a residual of GHSA-c4m9-hw7m-vv3m (GHSA-q85f-jhq9-pp7f)
Fixed in OpenHuman 0.64.0 (2026-09-25): #6318 moves login out of the core and removes the /auth fallback route. The removal was shipped as a refactor, two weeks before this report. Track the fix at tinyhumansai/openhuman#6318.
- Product
- OpenHuman (desktop app core) in tinyhumansai/openhuman
- Affected versions
- OpenHuman 0.56.0 through the last 0.63.x build (0.63.12 is the last 0.63 GitHub release). Fixed in 0.64.0 (2026-09-25), which removes the route. 0.55.x and earlier do not have the route.
- Severity
- HIGH
- Status
- Patched
- Weaknesses
- CWE-352Cross-Site Request Forgery (CSRF)
- CWE-384Session Fixation
- GitHub advisory
- GHSA-q85f-jhq9-pp7f
Private; in triage, not yet published by the maintainer - CVE
- Pending (requested via MITRE CNA-LR)
- Published
- Credit
- Finder: Aaron Elijah Mars of Aeon. Tool: Aeon (https://www.aeon.fun).
What users should do now
- Update OpenHuman to 0.64.0 or later. The desktop updater follows the latest release, so most users are already there; check if you turned updates off or run the core on its own from a 0.56.0 to 0.63.x build.
- If you ran 0.56.0 to 0.63.x, check which account the app is signed in to. If it is not yours, sign out, sign back in with your own account, and review recent agent activity and memory for anything you did not expect to share.
- Until you update, quit the app when you are not using it.
Summary
This is a leftover of the first OpenHuman login CSRF, described here. Release 0.56.0 fixed /auth/telegram by accepting only real page loads that come from Telegram. The same release added a second public login callback on the local core (127.0.0.1:7788), GET /auth?token=..., as a desktop login fallback. Its check only asked the browser whether the request was a top-level page load. It did not look at which site sent it (Sec-Fetch-Site, Referer or Origin) and the route had no per-login state value.
A web page that sends the browser tab to another address is a top-level page load, so it passed that check. The handler then traded the token in the URL with the backend for a session and stored it as the app's active session. Both routes use the same backend call to trade the token, so a login token made for /auth/telegram also works on /auth. In practice the 0.56.0 fix could be stepped around by sending the same token to the other route.
Affected versions
OpenHuman 0.56.0 through the last 0.63.x build, while the desktop app (and so the local core on port 7788, the default) is running. Tags 0.63.17, 0.63.20 and 0.63.21 carry the same code as the 0.63.12 release. 0.55.x and earlier do not have the /auth route; they are covered by GHSA-c4m9-hw7m-vv3m instead. The core binds to loopback by default, so the attacker reaches it through the user's browser, not over the network.
Impact
The same as GHSA-c4m9-hw7m-vv3m. After one visit to an attacker's page, the user's local app is signed in to the attacker's account:
- Session implantation. New chats, agent actions, memory writes and connected-channel activity are tied to the attacker's backend account, where the attacker can read them by signing in from their own machine.
- Local data re-rooted. Storing the session switches the active user (
active_user.toml) and the user data folder to the attacker's user id, so new local work lands in the attacker's workspace. The app does not ask the user to confirm the switch. - Low bar. The attacker needs only their own account and a page the user opens. The port is fixed by default, so no scanning is needed. CORS does not stop a top-level page load.
The page load does replace the attacker's page with a sign-in done page, which a careful user may notice. Scored 8.1 (CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N) on the advisory, the same vector as GHSA-c4m9-hw7m-vv3m.
Affected code
Permalinks at 2d2f6a9, the commit of the 0.63.12 release.
- Route registration: src/core/jsonrpc.rs#L1199
/authon the list of paths that skip the bearer check: src/core/auth.rs#L106- The check only looks at fetch mode and destination, not the sending site: src/core/jsonrpc.rs#L705-L727
- For contrast, the
/auth/telegramcheck from the 0.56.0 fix rejects cross-site loads that do not come from Telegram: src/core/jsonrpc.rs#L789 - Handler, with the token trade at L1026 and the session store at L1037: src/core/jsonrpc.rs#L951-L1063
- Shared token trade used by both routes: src/api/rest.rs#L501-L527
- Account switch with no confirmation: src/openhuman/security/credentials/ops.rs#L267-L274 and #L455-L470
- Default host and port 127.0.0.1:7788: src/core/jsonrpc.rs#L1733-L1747
Fix
#6318 (merged 2026-09-16, "the core takes a credential; hosts own login and the backend session") removes both GET /auth and GET /auth/telegram from the core router and from the public path list. It shipped in 0.64.0 on 2026-09-25. Current main keeps both paths off the public list and has a test for it, and the remaining desktop sign-in listener checks a per-login state value. The pull request was framed as a refactor, so no advisory covered this route until now.
Detection (for defenders)
Look in the core log for [auth:desktop] Received desktop auth callback or [auth:desktop] Session stored successfully lines at times the user did not sign in. On disk, an active_user.toml or a users/<uid>/ folder for a user id that is not the user's own is a strong sign. In the app, check that the signed-in account is the expected one. A working exploit is withheld.
Timeline
- OpenHuman 0.56.0 released with the
/auth/telegramfix and the new/authfallback route. - #6318 removes the public login callbacks from the core.
- OpenHuman 0.64.0 released without
/auth. - Reported privately via GitHub PVR (GHSA-q85f-jhq9-pp7f), the day GHSA-c4m9-hw7m-vv3m was published.
- We ask the maintainer to publish the advisory and request a CVE.
- Second follow-up; no reply.
- We tell the maintainer on the advisory that this write-up will go out on 2026-11-25; no reply.
- Public write-up; CVE requested from MITRE.
Credit
Finder: Aaron Elijah Mars of Aeon. Tool: Aeon.
References
- Fix PR (merged 2026-09-16): tinyhumansai/openhuman#6318
- Fixed release: OpenHuman 0.64.0
- GitHub advisory: GHSA-q85f-jhq9-pp7f (private; in triage, not yet published by the maintainer)
- Earlier bug on the sibling route: OpenHuman: CSRF on /auth/telegram (GHSA-c4m9-hw7m-vv3m, CVE-2026-49410)
- CVE: pending (requested from MITRE)
- Affected repository: tinyhumansai/openhuman