Skip to content
High

Outlineで API キーやトークンから アカウントを乗っ取られるおそれ

GHSA-97vv-f6qq-6842 First seen on SecPulse

Summary

Outlineでは、パスキーの登録とメールアドレス変更を行うルートが、ブラウザのセッションに限定されていません。このため、API キーや書き込み権限を持つ OAuth トークンが漏えいすると、被害者のアカウントを乗っ取られ、居座られるおそれがあります。影響を受けるのは 1.11.0 より前のバージョンで、1.11.0 以降への更新で対処できます。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Outlineでは、パスキーの登録とメールアドレス変更を行うルートが、ブラウザのセッションに限定されていません。このため、API キーや書き込み権限を持つ OAuth トークンが漏えいすると、被害者のアカウントを乗っ取られ、居座られるおそれがあります。影響を受けるのは 1.11.0 より前のバージョンで、1.11.0 以降への更新で対処できます。

Affected packages

PackageAffected → Fixed
otherOutline
< 1.11.0→ 1.11.0
Original description The description as published by the source.

Summary

Two credential/identity-changing routes are protected by plain auth() instead of
auth({ type: AuthenticationType.APP }). A non-session credential — an API key, or an
OAuth access token with write scope — can therefore perform actions meant to require an
interactive browser session, letting a leaked or over-scoped token be escalated to a
persistent takeover of the victim's account.

Details

Summary

Two credential/identity-changing routes are protected by plain auth() instead of
auth({ type: AuthenticationType.APP }). A non-session credential — an API key, or an
OAuth access token with write scope — can therefore perform actions meant to require an
interactive browser session, letting a leaked or over-scoped token be escalated to a
persistent takeover of the victim's account.

Affected routes:

  • passkeys.generateRegistrationOptions / passkeys.verifyRegistration
    (plugins/passkeys/server/auth/passkeys.ts:93 and :133)
  • users.updateEmail (POST and GET) (server/routes/api/users/users.ts:160 and :202)

Why this is a flaw

Credential-minting routes are deliberately restricted to real sessions elsewhere:
apiKeys.create (server/routes/api/apiKeys/apiKeys.ts:23), /oauth/authorize
(server/routes/oauth/index.ts:48) and batch all require AuthenticationType.APP. The
passkey-registration and email-change routes omit this guard, so any credential type
reaches them. verifyRegistration derives expected origin/RPID from the request's own Hos…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details