Kestrel
대시보드로 돌아가기
CVE-2026-55982MEDIUMGHSA대응게시일: 2026. 07. 21.수정일: 2026. 07. 21.

Gitea: OIDC userinfo Endpoint Returns Identity Claims Without Enforcing API Token Scopes

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
medium

이론적 심각도 점수

EPSS

예측 데이터 없음

KEV
미등재

실측 악용 기록 없음

권장 대응 기한60일 이내CISA SSVC 기준

계획된 패치 주기 내 조치(60일 이내)

외부 노출· KEV 미등재 · 자동화 어려움 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

CVSS 벡터 정보 없음

상세 설명

Summary

The OIDC userinfo endpoint (GET /login/oauth/userinfo) accepts Gitea API tokens as bearer credentials but does not enforce API token scopes before returning identity claims.

A personal access token scoped only to read:misc can successfully retrieve user information from the OIDC userinfo endpoint, even though the same token is denied access to user-related REST API endpoints that enforce scope checks.

As a result, identity information remains accessible through the OIDC endpoint regardless of the scopes assigned to the API token.

Details

Gitea supports scoped personal access tokens and enforces scope checks on user-related REST API endpoints.

For example, a token scoped only to read:misc is denied access to endpoints such as:

EndpointRequired Scope
GET /api/v1/userread:user
GET /api/v1/user/emailsread:user
GET /api/v1/user/orgsread:organization

Requests to these endpoints return:

text
1403 Forbidden

with a scope-related error.

However, the same read:misc token can be supplied as a bearer credential to:

text
1GET /login/oauth/userinfo
2Authorization: Bearer <token>

and receives a successful response containing identity claims.

Observed claims include:

  • email
  • groups

The groups claim contains organization and team membership information associated with the authenticated user.

This behavior indicates that the OIDC userinfo endpoint accepts API tokens but does not apply scope restrictions before returning identity claims.

PoC

PoC Details

Proof-of-concept code:
https://anonymous.4open.science/r/Gitea_PoC-EC93/3_poc_oidc_userinfo_scope_bypass

Reproduction Steps
  1. Create a personal access token with only the following scope:
text
1read:misc
  1. Verify that the token cannot access user-related REST API endpoints:
text
1GET /api/v1/user
2GET /api/v1/user/emails
3GET /api/v1/user/orgs

Each request returns:

text
1403 Forbidden
  1. Send the same token to the OIDC userinfo endpoint:
text
1GET /login/oauth/userinfo
2Authorization: Bearer <read-misc-token>
  1. Observe that the request succeeds and returns identity claims, for example:
text
1{
2 "email": "user@example.com",
3 "groups": [
4 ...
5 ]
6}

Impact

Holders of narrowly scoped API tokens can obtain identity information through the OIDC userinfo endpoint regardless of the scopes assigned to the token.

The issue does not provide access to repositories, issues, pull requests, administrative functionality, or data belonging to other users.

Impact is limited to disclosure of identity information associated with the authenticated user. However, it weakens the authorization boundary established by API token scopes because identity claims remain accessible even when the token lacks user- or organization-related scopes.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.