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

CVE-2025-14521

CVE-2025-14521 Path Traversal in Baowzh
📅 PUBLISHED: 2025-12-11 16:02 UTC 🔄 UPDATED: 2026-09-23 20:32 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.59%
👁️
0.59% probability
14.6× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1083
👁️
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.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-14521 is a path traversal vulnerability discovered in the baowzh hfly application, a rolling-release project. The flaw resides in the /admin/index.php/datafile/download endpoint, where the filename argument is not properly sanitized, allowing an attacker to read arbitrary files from the server filesystem. The vulnerability is remotely exploitable without authentication, and a public proof-of-concept (PoC) exists. The vendor has not responded to disclosure attempts, and no official patch is available. The CVSS score is 4.3 (Medium), reflecting the low confidentiality impact but 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

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – The vulnerable component remains the same.
  • Confidentiality (C): Low (L) – Limited file read capability.
  • Integrity (I): None (N) – No file modification.
  • Availability (A): None (N) – No denial of service.

Threat Level: Medium. The vulnerability is easy to exploit and has a public PoC, but the impact is limited to reading files (e.g., configuration files, source code). It could be used as a stepping stone for more severe attacks if sensitive data (e.g., credentials) is exposed.

Deep Dive & Mechanics

The vulnerability is a classic path traversal (directory traversal) in the download function of the datafile module. The application likely constructs a file path by concatenating a base directory with the user-supplied filename parameter without proper validation. An attacker can inject ../ sequences to escape the intended directory and read arbitrary files.

Example vulnerable code (conceptual PHP):

$filename = $_GET['filename'];
$filepath = '/var/www/hfly/data/' . $filename;
if (file_exists($filepath)) {
    header('Content-Type: application/octet-stream');
    readfile($filepath);
}

The attacker can request:

/admin/index.php/datafile/download?filename=../../../../etc/passwd

This would read /etc/passwd from the server.

Vulnerable vs. Patched Code

Vulnerable Code (conceptual):

$filename = $_GET['filename'];
$filepath = '/var/www/hfly/data/' . $filename;
if (file_exists($filepath)) {
    readfile($filepath);
}

Patched Code (conceptual):

$filename = basename($_GET['filename']); // Strip path components
$filepath = '/var/www/hfly/data/' . $filename;
if (file_exists($filepath) && strpos(realpath($filepath), '/var/www/hfly/data/') === 0) {
    readfile($filepath);
}

The patch uses basename() to remove directory traversal sequences and realpath() to verify the resolved path stays within the allowed directory.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Setup: Deploy a vulnerable instance of baowzh hfly (commit 638ff9abe9078bc977c132b37acbe1900b63491c) in a Docker container.
  2. Exploit: Use curl to exploit the path traversal:
    curl "http://target.com/admin/index.php/datafile/download?filename=../../../../etc/passwd"
    
  3. Advanced: Read application configuration files to extract database credentials:
    curl "http://target.com/admin/index.php/datafile/download?filename=../../../../var/www/hfly/config.php"
    

Blue Team (Defense & Detection)

  1. Monitor: Look for HTTP requests to /admin/index.php/datafile/download with filename parameters containing ../ or ..\.
  2. Block: Implement WAF rules to block path traversal patterns.
  3. Harden: Ensure the application runs with minimal file system permissions.

Indicators of Compromise (IOCs)

  • Network: HTTP GET requests to /admin/index.php/datafile/download with filename containing ../.
  • File System: Unexpected access to /etc/passwd, /etc/shadow, or application configuration files.
  • Logs: Web server logs showing 404 or 200 responses for path traversal attempts.

Detection Engineering

YARA Rule

rule CVE_2025_14521_PathTraversal {
    meta:
        description = "Detects path traversal attempts targeting CVE-2025-14521"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-14521"
    strings:
        $traversal1 = "../"
        $traversal2 = "..\\"
        $endpoint = "/admin/index.php/datafile/download"
    condition:
        $endpoint and any of ($traversal*)
}

Sigma Rule

title: CVE-2025-14521 Path Traversal Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects path traversal attempts against baowzh hfly download endpoint
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-stem: '/admin/index.php/datafile/download'
        cs-uri-query|contains: 'filename='
    condition: selection and (cs-uri-query|contains: '../' or cs-uri-query|contains: '..\\')
falsepositives:
    - Legitimate use of relative paths (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-14521 Path Traversal Attempt"; flow:to_server,established; content:"/admin/index.php/datafile/download"; http_uri; content:"filename="; http_uri; pcre:"/filename=[^&]*\.\.\//i"; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: If possible, disable the /admin/index.php/datafile/download endpoint or restrict access via .htaccess or firewall rules.
  2. Code Fix: Implement input validation using basename() and realpath() as shown in the patched code example.
  3. WAF: Deploy a Web Application Firewall rule to block ../ sequences in the filename parameter.
  4. Monitoring: Enable detailed logging and alert on path traversal patterns.
  5. Vendor Contact: Since the vendor is unresponsive, consider forking the project and applying the fix yourself.

Valters IT – Securing your digital frontier.

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