CVE-2026-136190 in gitea-mirror
Summary
by MITRE • 11/24/2026
RayLabsHQ gitea-mirror before 3.38.1 contains an authorization bypass vulnerability in the /api/sso/providers handlers that allows any authenticated user to access other users' SSO providers without ownership checks. Attackers can read every OIDC client secret in clear text and overwrite or delete providers, redirecting authorization and token endpoints to attacker-controlled servers.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/29/2026
The vulnerability identified in RayLabsHQ gitea-mirror versions prior to 3.38.1 represents a critical failure in access control mechanisms within the Single Sign-On provider management interface. Specifically, the flaw resides in the API handlers responsible for managing SSO providers located at the /api/sso/providers endpoint path. In a properly secured system, operations involving sensitive configuration data such as OAuth or OpenID Connect client secrets must be strictly bound to the identity of the user who created or owns that specific resource. However, this implementation fails to enforce ownership checks when processing requests related to these providers. Consequently, any authenticated user on the platform can issue API calls targeting SSO provider identifiers belonging to other users without being denied access by the server-side authorization logic. This absence of object-level permission verification allows for a complete bypass of intended security boundaries, effectively treating all resources as public within the context of an authenticated session.
The operational impact of this vulnerability is severe due to the nature of the data involved and the actions permitted by the attacker. By exploiting this authorization bypass, an adversary can read sensitive credentials stored in clear text, specifically OIDC client secrets. These secrets are critical for establishing trust between applications and identity providers; their exposure compromises the integrity of authentication flows across potentially numerous services integrated with the Gitea instance. Furthermore, the vulnerability allows attackers to modify or delete existing SSO configurations at will. This capability enables a sophisticated attack vector where an attacker can overwrite legitimate provider settings by redirecting authorization endpoints and token endpoints to servers under their control. Such redirection facilitates credential harvesting through phishing-like mechanisms, as users authenticating via these compromised providers would unknowingly submit their credentials to the malicious infrastructure controlled by the adversary.
From a classification perspective, this vulnerability aligns with CWE-284 Improper Access Control, specifically reflecting failures in enforcing ownership or resource-level permissions. The ability of an authenticated user to access resources belonging to other users is a classic example of broken object level authorization. Additionally, the exploitation technique maps directly to MITRE ATT&CK techniques related to Credential Access and Defense Evasion. Specifically, it relates to T1528 Steal Application Access Tokens through endpoint manipulation or redirection, as well as general credential harvesting via compromised authentication flows. The clear-text storage of client secrets also highlights potential issues with CWE-319 Cleartext Transmission of Sensitive Information if these values are transmitted over unencrypted channels during management operations, although the primary flaw is the unauthorized access itself rather than transmission security.
Mitigation for this vulnerability requires an immediate upgrade to RayLabsHQ gitea-mirror version 3.38.1 or later, where the ownership checks have been implemented in the API handlers. Until patching can occur, administrators should consider restricting network-level access to the Gitea instance and its API endpoints using firewalls or reverse proxy configurations that limit exposure to trusted internal networks only. It is also advisable to rotate all exposed OIDC client secrets immediately upon confirmation of potential compromise, as the clear-text nature of the data means any authenticated user had unrestricted read access during the window of vulnerability. Long-term remediation strategies should include implementing strict role-based access control policies and conducting regular code reviews focused on API endpoint authorization logic to prevent similar object-level permission failures in future development cycles.