We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-56734

Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint



Description

Better Auth is an authentication library for TypeScript. An open redirect vulnerability has been identified in the verify email endpoint of all versions of Better Auth prior to v1.1.6, potentially allowing attackers to redirect users to malicious websites. This issue affects users relying on email verification links generated by the library. The verify email callback endpoint accepts a `callbackURL` parameter. Unlike other verification methods, email verification only uses JWT to verify and redirect without proper validation of the target domain. The origin checker is bypassed in this scenario because it only checks for `POST` requests. An attacker can manipulate this parameter to redirect users to arbitrary URLs controlled by the attacker. Version 1.1.6 contains a patch for the issue.

Reserved 2024-12-27 | Published 2024-12-30 | Updated 2024-12-30 | Assigner GitHub_M


HIGH: 7.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Problem types

CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Product status

< 1.1.5
affected

References

github.com/...r-auth/security/advisories/GHSA-8jhw-6pjj-8723

github.com/...ommit/deb3d73aea90d0468d92723f4511542b593e522f

cve.org (CVE-2024-56734)

nvd.nist.gov (CVE-2024-56734)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-56734

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.