CVE-2024-12225
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Summary
A vulnerability was found in Quarkus in the quarkus-security-webauthn module. The Quarkus WebAuthn module publishes default REST endpoints for registering and logging users in while allowing developers to provide custom REST endpoints. When developers provide custom REST endpoints, the default endpoints remain accessible, potentially allowing attackers to obtain a login cookie that has no corresponding user in the Quarkus application or, depending on how the application is written, could correspond to an existing user that has no relation with the current attacker, allowing anyone to log in as an existing user by just knowing that user's user name.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
0 < 3.15.3.1 | affected |
Weaknesses
- CWE-288: Authentication Bypass Using an Alternate Path or Channel
Workarounds
It is possible to mitigate this issue by disabling the default endpoints after creating a custom one. For example with the call for:
import io.vertx.ext.web.Router;
import jakarta.enterprise.event.Observes;
public class Startup { public void init(@Observes Router router) { System.err.println("Securing WebAuthn default controller"); router.post("/q/webauthn/callback").order(0).handler(rc -> rc.fail(404)); } }
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://access.redhat.com/security/cve/CVE-2024-12225
- https://bugzilla.redhat.com/show_bug.cgi?id=2330484
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.