Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify exposed Discuz! X5.0 login endpoint
-
DeliverySubmit crafted username to login form
-
ExploitTrigger encryption oracle in logging_ctl::logging_more()
-
InstallObtain signed UCenter/dbbak token
-
C2Race condition to impersonate administrator
-
ExecuteCall dbbak.php to export and re-import database
-
ImpactAchieve data theft and RCE
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Nonce/key pair uniqueness
|
| Exploitation Conditions | No special conditions beyond reachability - exploitation requires only network access to a Discuz! X5.0 instance running a build dated 20260320 through 20260501 with the default UCenter integration enabled and dbbak.php reachable (the standard out-of-the-box configuration). No credentials, no user interaction, and no prior foothold are needed; the encryption oracle is reached through the unauthenticated login endpoint and the dbbak.php authorization check accepts any token signed with the shared key. Limiting factors are narrow: the dbbak.php endpoint or admin path must not be blocked by an upstream WAF/reverse-proxy ACL, and full user impersonation (as opposed to bare backup access) additionally requires winning a race condition, which is reliable on networked targets but may need multiple attempts on high-latency links. |
| Impact | Real-world risk is high and credible. The CVSS:4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H (score 9.3) is consistent with the description: a network-reachable login form feeds an encryption oracle that yields admin-level database access without credentials or user interaction. Confidence is reinforced by VulnCheck-reported research with a detailed write-up at karmainsecurity.com chaining the bugs to RCE via database import, plus a vendor commit on Gitee, so POC availability is not theoretical. EPSS and CISA KEV status were not supplied in the input, so widespread mass exploitation cannot be asserted yet - but with public exploit chain documentation, a working patch diff to reverse, and an internet-exposed admin endpoint, this should be treated as imminent-exploitation risk rather than a high-CVSS-but-low-real-risk issue. Availability impact is rated N in the vector, but in practice attacker-controlled database import trivially destroys availability of forum data; defenders should not under-weight this based on VA:N alone. |
| Exploit ScenarioDerived | An unauthenticated attacker reaches a public Discuz! X5.0 forum's login page and submits a crafted username parameter that coerces logging_ctl::logging_more() to encrypt attacker-chosen plaintext with the shared UCenter key, returning a legitimately signed token in the response or logs. The attacker replays that token against dbbak.php to export the full member database (password hashes, PII) and then re-imports a malicious dump, while simultaneously winning the documented race condition to impersonate an administrator - the karmainsecurity.com write-up explicitly chains these primitives to remote code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Authentication bypass in Discuz! X5.0 releases 20260320 through 20260501 allows unauthenticated remote attackers to access database backup and restore functionality exposed by dbbak.php. The flaw stems from a shared cryptographic key (CWE-323) between UCenter integration and the backup API, which lets an attacker abuse an encryption oracle in logging_ctl::logging_more() to mint legitimately signed authorization tokens, and chain a race condition to impersonate arbitrary users. Publicly available exploit code exists and an upstream fix has been published on Gitee.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the vendor commit 9962dad52c4c6999dabaf91ecd70377c680ff3c6 from https://gitee.com/Discuz/DiscuzX or upgrade to any tagged X5.0 release built after 20260501 once published. Until the patched build is rolled out, restrict network access to dbbak.php at the web server or WAF layer (for example, block /utility/dbbak.php and any UCenter API paths from the public internet and allow them only from administrator source IPs); this disables remote backup/restore from the UI and any automation that hits those endpoints, so schedule backups via the CLI or a maintenance VLAN instead. Rotate the UCenter authentication key (UC_KEY) and force re-login of all sessions after patching, because any token minted via the oracle before the fix remains cryptographically valid; rotation will break existing UCenter-integrated apps until they are reconfigured. Review database backup directories for unexpected exports and restored content as an indicator of prior abuse, and consult the research write-up at https://karmainsecurity.com/chaining-bugs-in-discuz-from-race-condition-to-rce and advisory https://karmainsecurity.com/KIS-2026-09 for detection guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Discuz! X5.0 is a widely deployed PHP-based community forum/CMS originally developed by Comsenz/Tencent and now maintained on Gitee. UCenter is Discuz!'s shared user-center subsystem that uses a symmetric secret for cross-application authentication; dbbak.php is the administrative endpoint exposing database export and import. The root cause is CWE-323 (Reusing a Nonce / Key Pair in Encryption): the same cryptographic key is reused across two functionally distinct contexts - UCenter integration and the dbbak backup API. The login flow's logging_ctl::logging_more() encrypts attacker-controlled input from the username parameter using that shared key, turning it into a generic encryption/signing oracle. Because dbbak.php trusts any token signed with the same key, oracle-produced ciphertext is accepted as a valid authorization token, and a TOCTOU-style race during the user lookup lets the attacker pin the resulting session to any chosen identity.
Know when Discuz gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable login oracle needs no auth or interaction (AV:N/AC:L/PR:N/UI:N); full DB read/write yields C:H/I:H, and the vendor-assigned 4.0 vector sets VA:N so A:N is retained.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Discuz! X5.0 releases 20260320 through 20260501 contains an authentication bypass vulnerability that allows unauthenticated remote attackers to gain unauthorized access to database backup and restore functionality by exploiting a shared cryptographic key between UCenter integration and the database backup API exposed by dbbak.php. Attackers can inject a crafted payload through the username parameter during login to abuse the encryption oracle in logging_ctl::logging_more(), obtain a legitimately signed token, and use it to bypass authorization for database export and import operations, with the additional ability to trigger a race condition to impersonate arbitrary users.
Articles & Coverage 1
Executive ViewAI
Discuz! X5.0 (versions 20260320-20260501) contains a critical authentication bypass that allows unauthenticated attackers to access and control database backup/restore functionality. This exposes customer databases to theft and unauthorized manipulation. The public availability of exploit code creates urgent operational risk for any organization running these versions.
Apply vendor patch. Until patched, restrict network access to dbbak.php via firewall rules, disable external database backup API availability, and implement detailed logging of all backup/restore operations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Authenticated remote code execution in Discuz! X5.0 releases 20260320 through 20260501 allows administrators to chain a
Reflected Cross-Site Scripting (XSS) vulnerability in Discuz!. Rated high severity (CVSS 7.1), this vulnerability is rem
CAPTCHA challenge controls in Discuz! X5.0 (releases 20260320-20260501) can be reliably defeated by unauthenticated remo
Discuz!. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low a
Discuz!. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low a
Discuz!. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low
Discuz!. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. Public exp
Discuz!. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. Public exp
Discuz!. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack complexity. Public exp
Discuz!. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low attack complexity. No vendor pa
Discuz!. Rated medium severity (CVSS 4.8), this vulnerability is remotely exploitable, low attack complexity. No vendor
SQL injection in the Admin Medal Moderation module of Comsenz Discuz! X5.0 affects builds X5.0-20260801, X5.0-20260820 a
EUVD-2026-36792
GHSA-mx47-h32c-x878
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB
VulDB