Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105146 Overview
CVE-2026-105146 is a SQL injection vulnerability in Comsenz Discuz! X5, affecting builds X5.0-20260801, X5.0-20260820, and X5.0-20260910. The flaw resides in the modmedalsubmit function within upload/source/app/admin/child/medals/mod.php, part of the Admin Medal Moderation component. Attackers can manipulate the delete argument to inject arbitrary SQL statements. The attack is remotely exploitable but requires high privileges, as the vulnerable endpoint sits behind the administrative interface. Public exploit details have been released. The vendor was contacted prior to disclosure but did not respond.
Critical Impact
Authenticated administrators can inject SQL through the medal moderation delete parameter, exposing database contents and integrity on affected Discuz! X5 builds.
Affected Products
- Comsenz Discuz! X5.0-20260801
- Comsenz Discuz! X5.0-20260820
- Comsenz Discuz! X5.0-20260910
Discovery Timeline
- 2026-10-04 - CVE-2026-105146 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105146
Vulnerability Analysis
The vulnerability is classified under [CWE-74] (Improper Neutralization of Special Elements in Output Used by a Downstream Component). It is a SQL injection flaw in the Admin Medal Moderation workflow of Discuz! X5. The modmedalsubmit function in upload/source/app/admin/child/medals/mod.php processes a delete argument supplied by the administrator and incorporates it into a SQL statement without sufficient sanitization or parameterization.
Because the sink lives in the administrator-facing code path, successful exploitation requires valid administrative credentials. Once authenticated, an attacker can submit crafted values in the delete parameter to alter the resulting query, read arbitrary data, or modify records in the Discuz! database.
Root Cause
The root cause is unsafe concatenation of user-controlled input into a SQL query inside modmedalsubmit. The delete parameter is trusted as a well-formed identifier value and passed to the database layer without strict type validation or prepared statements, which breaks the boundary between query structure and data.
Attack Vector
Exploitation is network-based. An authenticated administrator sends a crafted POST request to the medal moderation endpoint in mod.php, supplying a malicious delete value. The injected SQL executes with the privileges of the Discuz! database user. Public technical write-ups referenced by VulDB CVE-2026-105146 and VulDB Vulnerability #413371 describe the parameter manipulation. No verified proof-of-concept code is reproduced here.
Detection Methods for CVE-2026-105146
Indicators of Compromise
- Requests to upload/source/app/admin/child/medals/mod.php where the delete parameter contains SQL metacharacters such as single quotes, UNION, SELECT, SLEEP(, or comment sequences.
- Unexpected administrator sessions executing medal moderation actions outside of normal change windows.
- Database error entries referencing malformed queries originating from the medals module.
Detection Strategies
- Deploy a web application firewall rule that inspects delete parameter values submitted to the medal moderation path and blocks SQL metacharacters.
- Enable database query logging and alert on unusual query shapes referencing the medal tables from the Discuz! application user.
- Correlate administrator authentication events with subsequent requests to mod.php to spot abnormal access patterns.
Monitoring Recommendations
- Track all HTTP POST requests to admin/child/medals/mod.php and retain full request bodies for forensic review.
- Monitor outbound database traffic for high-volume result sets or schema enumeration queries following administrator logins.
- Review admin account inventory and remove unused or shared accounts that could be abused to reach this endpoint.
How to Mitigate CVE-2026-105146
Immediate Actions Required
- Restrict access to the Discuz! administrative interface using network ACLs, VPN, or IP allowlisting.
- Enforce strong, unique credentials and multi-factor authentication for every administrator account.
- Audit administrator accounts and remove any that are inactive, shared, or no longer required.
Patch Information
No vendor patch has been published. According to the disclosure, Comsenz did not respond to coordination attempts. Track the VulDB CVE-2026-105146 entry and the vendor's official channels for future updates, and plan to apply fixes immediately once available.
Workarounds
- Block or filter requests to upload/source/app/admin/child/medals/mod.php at a reverse proxy or WAF where the delete parameter is not a strict integer.
- Apply a local source-level fix that validates the delete argument as a numeric medal identifier before it reaches the database layer.
- Rotate database credentials and limit the Discuz! database user to the minimum privileges needed for forum operation.
# Example Nginx rule to drop non-numeric delete values on the medals endpoint
location ~* /source/app/admin/child/medals/mod\.php$ {
if ($arg_delete !~ "^[0-9]+$") { return 403; }
proxy_pass http://discuz_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

