The `/api/v1/admin` route group did not enforce the `public-only` restriction of personal access tokens.
The `/api/v1/admin` route group did not enforce the `public-only` restriction of personal access tokens. A public-only token with admin scope issued by a site administrator could therefore list private organizations and the email addresses of all users, create organizations, obtain runner registration tokens and create new site administrator accounts, the last of which persists after the token is revoked. Tokens of users who are not site administrators cannot reach these routes; public-only tokens are now rejected on the admin API.
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Gitea
- Product
- Gitea
- Weakness
- CWE-284, CWE-1259
- Exposure class
- Developer platform
- NVD status
- Deferred
Why it ranks 20 (Routine)
- Product class: developer platform
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.