Token issuance via ignored authentication backend rejection
Published Dec 13, 2024 · Updated Feb 20, 2025
Authentication bypass in Sunscrapers Djoser before 2.3.0 allows remote authenticated users to obtain API tokens despite backend rejection. TokenCreateSerializer.validate calls Django authenticate(), but when it returns None the vulnerable code directly queries User and checks only the password and active flag. Valid account credentials and an authentication backend that denies the login are required; success returns a token that sidesteps added checks such as two-factor or LDAP policy.
Summary
What happened
Authentication bypass in Sunscrapers Djoser before 2.3.0 allows remote authenticated users to obtain API tokens despite backend rejection. TokenCreateSerializer.validate calls Django authenticate(), but when it returns None the vulnerable code directly queries User and checks only the password and active flag. Valid account credentials and an authentication backend that denies the login are required; success returns a token that sidesteps added checks such as two-factor or LDAP policy.
The record
- CVE
- CVE-2024-21543
- Published
- Dec 13, 2024
- Updated
- Feb 20, 2025
- Vendor
- Sunscrapers
- Product
- Djoser
- Classifications
- CWE-287, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 13, 2024CVE publishedPublication date reported by the CVE source.
- Feb 20, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <2.3.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Token issuance demonstration in upstream issue 795proof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo