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

CVE-2025-12861

CVE-2025-12861 SQL Injection in Dedebiz
📅 PUBLISHED: 2025-11-07 16:02 UTC 🔄 UPDATED: 2026-08-18 17:12 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.30%
👁️
0.30% probability
7.5× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
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
5.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-12861 is a publicly disclosed SQL injection vulnerability affecting DedeBIZ versions up to and including 6.3.2. The flaw resides in the /admin/spec_add.php file, where the flags[] argument is not properly sanitized before being used in a SQL query. An authenticated attacker with administrative privileges can exploit this to inject arbitrary SQL commands, potentially leading to data exfiltration, modification, or privilege escalation. The vulnerability has a CVSS score of 4.7 (Medium) and a low EPSS score of 0.0%, indicating a low probability of exploitation in the wild at this time. However, given the public availability of exploit details, the risk is elevated for unpatched systems.

⚡ 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 a package manager (NPM, PyPI, Go, Ruby) but is a direct issue within the DedeBIZ web application. No supply chain component is involved.

CVSS Breakdown & Threat Level

  • CVSS Score: 4.7 (Medium)
  • Attack Vector (AV): Network (N) - The attack can be launched remotely.
  • Attack Complexity (AC): Low (L) - No special conditions are required.
  • Privileges Required (PR): High (H) - The attacker must have administrative access to the DedeBIZ backend.
  • User Interaction (UI): None (N) - No user interaction is required.
  • Scope (S): Unchanged (U) - The vulnerability does not affect resources beyond the vulnerable component.
  • Confidentiality (C): Low (L) - Limited data exposure is possible.
  • Integrity (I): Low (L) - Limited data modification is possible.
  • Availability (A): Low (L) - Limited service disruption is possible.

Threat Level: Medium. While the CVSS score is moderate, the public availability of exploit details and the potential for data compromise elevate the risk for unpatched installations.

Deep Dive & Mechanics

The vulnerability is a classic SQL injection in the /admin/spec_add.php file. The flags[] parameter is likely used to store multiple flag values for a specification (e.g., "recommend", "hot", "new"). The application fails to properly sanitize or parameterize the input before incorporating it into a SQL INSERT or UPDATE query.

Mechanism:

  1. An authenticated admin user navigates to /admin/spec_add.php.
  2. The user submits a POST request with the flags[] parameter containing malicious SQL code.
  3. The application concatenates the unsanitized flags[] values directly into a SQL query.
  4. The injected SQL is executed by the database, allowing the attacker to manipulate the query.

Example Injection: If the original query is:

INSERT INTO `dede_spec` (flags) VALUES ('$flags');

An attacker could submit:

flags[]=1'); DROP TABLE dede_admin; --

This would result in:

INSERT INTO `dede_spec` (flags) VALUES ('1'); DROP TABLE dede_admin; --');

The DROP TABLE command would be executed, potentially deleting the admin table.

Vulnerable vs. Patched Code

Vulnerable Code (DedeBIZ <= 6.3.2):

// /admin/spec_add.php (simplified)
$flags = $_POST['flags'];
$flags_str = implode(',', $flags);
$sql = "INSERT INTO `dede_spec` (flags) VALUES ('$flags_str')";
$dsql->ExecuteNoneQuery($sql);

Patched Code (Hypothetical):

// /admin/spec_add.php (patched)
$flags = $_POST['flags'];
$flags_str = implode(',', array_map(function($flag) {
    return addslashes($flag); // or use prepared statements
}, $flags));
$sql = "INSERT INTO `dede_spec` (flags) VALUES ('$flags_str')";
$dsql->ExecuteNoneQuery($sql);

Note: The ideal fix is to use prepared statements with parameterized queries, which completely prevents SQL injection.

Exploitation & Lab Setup

Red Team (Attacker)

Prerequisites:

  • Access to a DedeBIZ admin panel (e.g., http://target.com/admin/).
  • Valid admin credentials.

Exploitation Steps:

  1. Log in to the DedeBIZ admin panel.
  2. Navigate to the "Spec Add" page (e.g., http://target.com/admin/spec_add.php).
  3. Intercept the POST request using a proxy like Burp Suite.
  4. Modify the flags[] parameter to inject SQL. Example:
    flags[]=1'); SELECT 1,2,3 FROM dede_admin WHERE 1=1; --
    
  5. Send the request. The injected SQL will be executed.

Proof of Concept (PoC) using cURL:

curl -X POST http://target.com/admin/spec_add.php \
  -c cookies.txt -b cookies.txt \
  -d "flags[]=1'); SELECT 1,2,3 FROM dede_admin WHERE 1=1; --"

Blue Team (Defender)

Detection Steps:

  1. Monitor web server logs for unusual POST requests to /admin/spec_add.php containing SQL keywords (e.g., SELECT, DROP, UNION, --).
  2. Implement a Web Application Firewall (WAF) rule to block requests with SQL injection patterns in the flags[] parameter.
  3. Review database logs for unexpected queries originating from the admin panel.

Honeypot Setup:

  • Deploy a fake DedeBIZ instance and monitor for exploitation attempts.
  • Log all requests to /admin/spec_add.php and analyze for malicious patterns.

Indicators of Compromise (IOCs)

Network IOCs:

  • POST requests to /admin/spec_add.php with flags[] containing SQL keywords.
  • Unusual database error messages in HTTP responses (e.g., "You have an error in your SQL syntax").

File IOCs:

  • Modified or new files in the DedeBIZ installation directory (e.g., webshells).
  • Suspicious entries in /data/common.inc.php or other configuration files.

Log IOCs:

  • Web server logs showing requests with flags[] containing SQL injection patterns.
  • Database logs showing unexpected queries like DROP TABLE or UNION SELECT.

Detection Engineering

YARA Rule

rule CVE_2025_12861_SQLi_Detection {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-12861 in DedeBIZ"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2025-12861"
    strings:
        $sqli1 = /flags\[\]=.*['\"]\s*(OR|AND|UNION|SELECT|DROP|INSERT|UPDATE|DELETE|--|#)/
        $sqli2 = /flags\[\]=.*\b(SELECT|UNION|DROP|INSERT|UPDATE|DELETE)\b/
        $sqli3 = /flags\[\]=.*--/
    condition:
        any of ($sqli*)
}

Sigma Rule

title: DedeBIZ CVE-2025-12861 SQL Injection Attempt
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects SQL injection attempts against /admin/spec_add.php in DedeBIZ
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-12861
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/admin/spec_add.php'
        cs-uri-query|contains: 'flags[]='
    keywords:
        - 'SELECT'
        - 'UNION'
        - 'DROP'
        - 'INSERT'
        - 'UPDATE'
        - 'DELETE'
        - '--'
        - '#'
    condition: selection and keywords
falsepositives:
    - Legitimate admin actions with special characters
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"CVE-2025-12861 DedeBIZ SQL Injection Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/admin/spec_add.php"; http_uri;
    content:"flags[]="; http_client_body;
    pcre:"/flags\[\]=.*['\"]\s*(OR|AND|UNION|SELECT|DROP|INSERT|UPDATE|DELETE|--|#)/i";
    reference:cve,2025-12861;
    classtype:web-application-attack;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade DedeBIZ: If a patched version becomes available, upgrade immediately. Currently, no patch exists.
  2. Apply Virtual Patching: Use a WAF to block SQL injection patterns in the flags[] parameter.
  3. Restrict Admin Access: Limit access to the admin panel to trusted IP addresses only.
  4. Disable Unused Features: If the "Spec Add" functionality is not needed, disable or remove the /admin/spec_add.php file.

Long-Term Mitigations:

  1. Code Review: Conduct a thorough code review of all admin pages for similar vulnerabilities.
  2. Input Validation: Implement strict input validation and parameterized queries for all database interactions.
  3. Least Privilege: Ensure the database user used by DedeBIZ has minimal privileges (e.g., no DROP or CREATE permissions).
  4. Regular Security Audits: Perform regular security assessments and penetration testing.

Workaround:

  • Manually edit /admin/spec_add.php to add input sanitization using addslashes() or mysqli_real_escape_string() until an official patch is released.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-12861/ · 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.