Sceawere
Vulnerability Detail
CVE-2026-24791UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
Public-Token Access Bypass on User Routes
Vulnerability Metadata
- Severity
- High
- Score / CVSS
- 8.1
- Creation Date
- 4h ago
- Vendor
- Gitea
- Product
- Gitea Open Source Git Server
- Attack Type
- CWE-863
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Attack Complexity
- LOW
Narrative and Response
Description
Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "8.1",
"pubDate": "2026-08-13T17:17:22.000Z",
"pubdate": "2026-08-13T17:17:22.000Z",
"executiveSummary": "A security vulnerability has been identified where public-only authentication tokens incorrectly bypass strict private-resource access controls on self-referencing API endpoints. Specifically, the vulnerability resides within the authorization logic governing the /api/v1/user route, allowing low-privileged or unprivileged contexts utilizing restricted public tokens to successfully query and interact with sensitive private-resource restrictions. The impact of this security flaw includes unauthorized data exposure, compromise of user privacy boundaries, and potential violation of the principle of least privilege across affected systems and products. The risk implications are severe, as unauthorized actors leveraging public-only tokens can access internal data structures and sensitive user attributes normally shielded by robust access control lists. Attacker capabilities involve submitting crafted requests containing valid public tokens to target restricted self routes, thereby coercing the application into returning private state information. Exploitation requirements are minimal assuming the adversary possesses a valid public-only token and can directly interface with the exposed API endpoint, bypassing standard authorization checks without requiring elevated credentials.",
"technicalDetails": "The root cause of the vulnerability stems from a flaw in the token validation and scope enforcement logic implemented within the API routing and authentication middleware. When an incoming HTTP request targets the /api/v1/user endpoint, the underlying authorization subsystem fails to adequately differentiate between token scopes, specifically conflating public-only tokens with full-privilege or session-authenticated credentials. Consequently, when a public-only token is presented, the access control check incorrectly evaluates the context as authorized for self-route resources, granting access to private data fields that should be strictly restricted.\nThe vulnerable component is the authorization handler responsible for enforcing scope validation on the /api/v1/user self routes. Exploitation occurs when an attacker obtains a public-only token—often easily acquired through standard public registration or guest authentication mechanisms—and crafts an HTTP GET or API query directed at the protected /api/v1/user endpoint. The attack flow proceeds as follows: First, the client initiates the request containing the public-only token within the authorization header or query parameters. Second, the API gateway or application server passes the request to the authentication module, which validates the cryptographic signature or existence of the token but fails to verify the associated operational scopes. Third, the route handler processes the request assuming standard user self-access privileges, bypassing the intended private-resource restrictions. Finally, the server serializes and returns the sensitive private user resource data in the HTTP response payload to the unauthorized client.\nThe network exposure is bounded by the accessibility of the API endpoints, typically exposed over standard HTTP/HTTPS protocols. Authentication requirements are ostensibly present, but they are insufficiently enforced due to the acceptance of public-only tokens. Privilege requirements are effectively bypassed, allowing an entity possessing only public-level authorization to achieve the data access level of an authenticated private user session. Post-exploitation impact encompasses unauthorized harvesting of personally identifiable information, internal account enumeration, and potential chaining with other vulnerabilities to facilitate wider system reconnaissance or targeted user compromise."
}