Authentication Bypass in OpenMetadata
No fixed version listed yet.Check the vendor advisory. References ↓
open-metadata · OpenMetadata
The JwtFilter in OpenMetadata's API authentication layer fails to enforce JWT validation on requests whose paths contain excluded-endpoint strings, because path parameters can be crafted so that an arbitrary request path matches an excluded pattern. An attacker with network access and no credentials can send a crafted request path to bypass authentication and reach any API endpoint, including those that lead to arbitrary SpEL expression injection, though endpoints relying on SecurityContext.getUserPrincipal() will fail with a null pointer exception.
Official description · CVE.org
OpenMetadata is a unified platform for discovery, observability, and governance powered by a central metadata repository, in-depth lineage, and seamless team collaboration. The `JwtFilter` handles the API authentication by requiring and verifying JWT tokens. When a new request comes in, the request's path is checked against this list. When the request's path contains any of the excluded endpoints the filter returns without validating the JWT. Unfortunately, an attacker may use Path Parameters to make any path contain any arbitrary strings. For example, a request to `GET /api/v1;v1%2fusers%2flogin/events/subscriptions/validation/condition/111` will match the excluded endpoint condition and therefore will be processed with no JWT validation allowing an attacker to bypass the authentication mechanism and reach any arbitrary endpoint, including the ones listed above that lead to arbitrary SpEL expression injection. This bypass will not work when the endpoint uses the `SecurityContext.getUserPrincipal()` since it will return `null` and will throw an NPE. This issue may lead to authentication bypass and has been addressed in version 1.2.4. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as `GHSL-2023-237`.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 33 days after disclosure. Public exploit code (Metasploit) was available the same day.
- First seen exploitedVulnCheck KEV evidence+33 days
Affected versions and fixes
as published in the CVE recordopen-metadata OpenMetadata
Affected: < 1.2.4
What security researchers reported
Not named in any threat report yetAlso mentioned in 2 community threat pulses (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.