CVE-2026-49952: Discuz! X5.0 Authentication Bypass Leading to Database Access
CVE-2026-49952 is an authentication bypass vulnerability in Discuz! X5.0 versions 20260320 through 20260501, allowing unauthenticated remote attackers to gain unauthorized access to database backup and restore functionality by exploiting a shared cryptographic key, leading to potential data exfiltration and user impersonation.
What's new
- l2 poc_available Jul 24, 19:00 via sploitus
A critical authentication bypass vulnerability, identified as CVE-2026-49952, impacts Discuz! X5.0 releases from 20260320 through 20260501. This flaw allows unauthenticated remote attackers to gain unauthorized access to sensitive database backup and restore functionalities. The vulnerability stems from a shared cryptographic key utilized between the UCenter integration and the dbbak.php database backup API. Attackers can leverage an encryption oracle within the logging_ctl::logging_more() function by injecting a specially crafted payload via the username parameter during a login attempt. This manipulation enables them to obtain a legitimately signed token, thereby circumventing standard authorization checks for database operations and potentially triggering a race condition to impersonate arbitrary users. This provides a direct path to sensitive data exfiltration and control over forum content.
Attack Chain
- An unauthenticated remote attacker identifies a Discuz! X5.0 instance (releases 20260320-20260501) vulnerable to CVE-2026-49952.
- The attacker crafts a malicious payload and injects it into the
usernameparameter during a login attempt to the Discuz! instance via aPOSTrequest to/member.phpor similar login endpoint. - This crafted payload is processed by the
logging_ctl::logging_more()function, which contains an encryption oracle due to a shared cryptographic key used by UCenter integration. - By exploiting this encryption oracle, the attacker obtains a legitimately signed authorization token that can bypass further access controls.
- The attacker uses the forged token to send direct HTTP requests to the
/dbbak.phpendpoint, bypassing normal authentication and authorization checks. - Through the
/dbbak.phpinterface, the attacker gains unauthorized access to initiate database export (backup) and import (restore) operations. - The attacker can additionally trigger a race condition during this process to impersonate arbitrary authenticated users within the Discuz! forum.
- The final objective is unauthorized access to critical database functions, allowing for data theft, modification, or complete compromise of the forum's content and user data.
Impact
Successful exploitation of CVE-2026-49952 grants unauthenticated attackers full control over the Discuz! X5.0 application's database. This includes the ability to export all database contents, leading to mass data exfiltration of user information, private messages, and forum posts. Attackers could also import malicious data, deface the forum, or implant persistent backdoors. The ability to impersonate arbitrary users further exacerbates the risk, allowing attackers to perform actions as legitimate users, including administrative actions if an administrator account is impersonated. Organizations using affected Discuz! X5.0 versions face severe risks of data breach, reputational damage, and operational disruption.
Recommendation
- Patch CVE-2026-49952 immediately by upgrading Discuz! X5.0 to a version beyond 20260501 that includes the fix.
- Deploy the provided Sigma rules "Detects CVE-2026-49952 Exploitation - Malicious Username Injection Attempt" and "Detects CVE-2026-49952 Exploitation - Unauthorized dbbak.php Access" to your SIEM to detect exploitation attempts.
- Enable comprehensive webserver access logging to capture full HTTP request details (URI stem, query, method, user-agent) for your Discuz! instances to facilitate detection and forensics.
Detection coverage 2
Detects CVE-2026-49952 Exploitation - Malicious Username Injection Attempt
highDetects CVE-2026-49952 exploitation - Attempts to exploit the authentication bypass by injecting crafted payloads into the username parameter during login, targeting the encryption oracle.
Detects CVE-2026-49952 Exploitation - Unauthorized dbbak.php Access
highDetects CVE-2026-49952 exploitation - Unauthorized or suspicious access attempts to the Discuz! database backup/restore utility (dbbak.php), which could indicate a successful authentication bypass.
Detection queries are available on the platform. Get full rules →
Indicators of compromise
1
url
| Type | Value |
|---|---|
| url | https://sploitus.com/exploit?id=E3511389-563B-5AD7-A686-6FA07D46FB08 |