GCVE-1988-2026-0342

Vulnerability from gna-1988 – Published: 2026-09-11 07:55 – Updated: 2026-09-11 07:55
VLAI
Title
[KIS-2026-09] Discuz! X5.0 (UC_KEY) Cross-Context Token Reuse Vulnerability
Summary
------------------------------------------------------------- Discuz! X5.0 (UC_KEY) Cross-Context Token Reuse Vulnerability ------------------------------------------------------------- [-] Software Link: https://www.discuz.vip [-] Affected Versions: Version X5.0, releases 20260320 through 20260501. [-] Vulnerability Description: The vulnerable code is located within the /config/config_ucenter.php configuration file: define('UC_KEY', $_config['security']['authkey']); Discuz! X5.0, when installed in "standalone mode" (such as by the default configuration), initializes the UC_KEY cryptographic constant by directly copying the value of the global authkey setting. As a result, the same cryptographic key is shared across multiple unrelated application components, including UCenter integration and the database backup/restore API exposed by the /api/db/dbbak.php script. This breaks cryptographic isolation and allows tokens produced in one context to be accepted as valid in another. Specifically, the logging_ctl::logging_more() method — invoked during a login request when the lssubmit parameter is present — encrypts attacker-controlled input with the global authkey setting and reflects the resulting ciphertext back to the client, effectively acting as an encryption oracle. By injecting a crafted command payload through the username parameter, an unauthenticated attacker can obtain a legitimately signed token that bypasses the authorization check in /api/db/dbbak.php, gaining unauthenticated access to the database export and import functionality. NOTE: by abusing the database export and import functionality, an attacker may be able to trigger a Race Condition that ultimately allows impersonating any user, bypassing authentication. This can be exploited in combination with other vulnerabilities (such as KIS-2026-11) to achieve unauthenticated Remote Code Execution. [-] Proof of Concept: https://karmainsecurity.com/pocs/discuz_rce.zip [-] Solution: Upgrade to release 20260510 or later. [-] Disclosure Timeline: [27/04/2026] - Vendor contacted through private messages on gitee.com, no response [27/04/2026] - Vendor contacted via e-mail at admin () discuz vip and security () tencent com, no response [07/05/2026] - Opened issue IJLFUW on https://gitee.com/Discuz/DiscuzX [09/05/2026] - Vulnerability details shared within issue IJLFUW [09/05/2026] - Vulnerability fixed within commit 9962dad52c4c6999dabaf91ecd70377c680ff3c6 [10/05/2026] - New fixed version (Discuz_X5.0_20260510) was released [09/06/2026] - CVE identifier requested [09/06/2026] - CVE identifier assigned [13/06/2026] - Public disclosure at hackmeeting 0x1D [15/06/2026] - Publication of this advisory [-] CVE Reference: CVE-2026-49952 has been assigned to this vulnerability. [-] Credits: Vulnerability discovered by Egidio Romano. [-] Original Advisory: https://karmainsecurity.com/KIS-2026-09 [-] Technical write-up: https://karmainsecurity.com/chaining-bugs-in-discuz-from-race-condition-to-rce _______________________________________________ Sent through the Full Disclosure mailing list https://nmap.org/mailman/listinfo/fulldisclosure Web Archives & RSS: https://seclists.org/fulldisclosure/
Severity
No CVSS data available.
Assigner
VULNARCHIVE GNA GNA-1988
GNA scorecard E 38/100 over 581 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
unknown Discuz! X5.0 UC_KEY Affected: unknown
guessed Create a notification for this product.
Relationships
analysis GCVE-1988-2026-0342 (this record)

{
  "containers": {
    "cna": {
      "affected": [
        {
          "product": "Discuz! X5.0 UC_KEY",
          "vendor": "unknown",
          "versions": [
            {
              "status": "affected",
              "version": "unknown"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Egidio Romano"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "-------------------------------------------------------------\nDiscuz! X5.0 (UC_KEY) Cross-Context Token Reuse Vulnerability\n-------------------------------------------------------------\n\n\n[-] Software Link:\n\nhttps://www.discuz.vip\n\n\n[-] Affected Versions:\n\nVersion X5.0, releases 20260320 through 20260501.\n\n\n[-] Vulnerability Description:\n\nThe vulnerable code is located within the /config/config_ucenter.php\nconfiguration file:\n\ndefine(\u0027UC_KEY\u0027, $_config[\u0027security\u0027][\u0027authkey\u0027]);\n\nDiscuz! X5.0, when installed in \"standalone mode\" (such as by the default\nconfiguration), initializes the UC_KEY cryptographic constant by directly\ncopying the value of the global authkey setting.\n\nAs a result, the same cryptographic key is shared across multiple unrelated\napplication components, including UCenter integration and the database\nbackup/restore API exposed by the /api/db/dbbak.php script. This breaks\ncryptographic isolation and allows tokens produced in one context to be\naccepted as valid in another.\n\nSpecifically, the logging_ctl::logging_more() method \u2014 invoked during a\nlogin request when the lssubmit parameter is present \u2014 encrypts\nattacker-controlled input with the global authkey setting and reflects the\nresulting ciphertext back to the client, effectively acting as an\nencryption oracle. By injecting a crafted command payload through the\nusername parameter, an unauthenticated attacker can obtain a legitimately\nsigned token that bypasses the authorization check in /api/db/dbbak.php,\ngaining unauthenticated access to the database export and import\nfunctionality.\n\nNOTE: by abusing the database export and import functionality, an attacker\nmay be able to trigger a Race Condition that ultimately allows\nimpersonating any user, bypassing authentication. This can be exploited in\ncombination with other vulnerabilities (such as KIS-2026-11) to achieve\nunauthenticated Remote Code Execution.\n\n\n[-] Proof of Concept:\n\nhttps://karmainsecurity.com/pocs/discuz_rce.zip\n\n\n[-] Solution:\n\nUpgrade to release 20260510 or later.\n\n\n[-] Disclosure Timeline:\n\n[27/04/2026] - Vendor contacted through private messages on gitee.com, no\nresponse\n[27/04/2026] - Vendor contacted via e-mail at admin () discuz vip and\nsecurity () tencent com, no response\n[07/05/2026] - Opened issue IJLFUW on https://gitee.com/Discuz/DiscuzX\n[09/05/2026] - Vulnerability details shared within issue IJLFUW\n[09/05/2026] - Vulnerability fixed within commit\n9962dad52c4c6999dabaf91ecd70377c680ff3c6\n[10/05/2026] - New fixed version (Discuz_X5.0_20260510) was released\n[09/06/2026] - CVE identifier requested\n[09/06/2026] - CVE identifier assigned\n[13/06/2026] - Public disclosure at hackmeeting 0x1D\n[15/06/2026] - Publication of this advisory\n\n\n[-] CVE Reference:\n\nCVE-2026-49952 has been assigned to this vulnerability.\n\n\n[-] Credits:\n\nVulnerability discovered by Egidio Romano.\n\n\n[-] Original Advisory:\n\nhttps://karmainsecurity.com/KIS-2026-09\n\n\n[-] Technical write-up:\n\nhttps://karmainsecurity.com/chaining-bugs-in-discuz-from-race-condition-to-rce\n_______________________________________________\nSent through the Full Disclosure mailing list\nhttps://nmap.org/mailman/listinfo/fulldisclosure\nWeb Archives \u0026 RSS: https://seclists.org/fulldisclosure/"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-11T07:55:56Z",
        "orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
        "shortName": "VULNARCHIVE"
      },
      "references": [
        {
          "tags": [
            "technical-description",
            "exploit"
          ],
          "url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Jun/3"
        },
        {
          "tags": [
            "technical-description"
          ],
          "url": "https://seclists.org/fulldisclosure/2026/Jun/3"
        },
        {
          "url": "https://gitee.com/Discuz/DiscuzX"
        },
        {
          "url": "https://karmainsecurity.com/KIS-2026-09"
        },
        {
          "url": "https://karmainsecurity.com/chaining-bugs-in-discuz-from-race-condition-to-rce"
        },
        {
          "url": "https://karmainsecurity.com/pocs/discuz_rce.zip"
        },
        {
          "url": "https://nmap.org/mailman/listinfo/fulldisclosure"
        },
        {
          "url": "https://seclists.org/fulldisclosure/"
        },
        {
          "url": "https://www.discuz.vip"
        }
      ],
      "source": {
        "defect": [
          "https://seclists.org/fulldisclosure/2026/Jun/3"
        ],
        "discovery": "EXTERNAL"
      },
      "title": "[KIS-2026-09] Discuz! X5.0 (UC_KEY) Cross-Context Token Reuse Vulnerability",
      "x_gcve": [
        {
          "recordType": "analysis",
          "relationships": [
            {
              "destId": "CVE-2026-49952",
              "type": "related"
            }
          ],
          "vulnId": "GCVE-1988-2026-0342",
          "x_vulnarchive": {
            "archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Jun/3",
            "automated": true,
            "contentSha256": "9da4b434ddb4e0d1af4e1008e74f71a1dfa9286e68230244eb40955994f5fe5e",
            "evidenceScore": 9,
            "messageId": "",
            "originalUrl": "https://seclists.org/fulldisclosure/2026/Jun/3",
            "policy": "vulnarchive-1",
            "sourceFormat": "text/html",
            "sourcePublishedAt": "2026-06-15T18:42:12Z"
          }
        },
        {
          "recordType": "advisory",
          "vulnId": "gcve-1988-2026-0342"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
    "assignerShortName": "VULNARCHIVE",
    "datePublished": "2026-09-11T07:55:56Z",
    "dateUpdated": "2026-09-11T07:55:56Z",
    "state": "PUBLISHED",
    "vulnId": "GCVE-1988-2026-0342"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.