Skip to main content
CVE Vulnerability Database

CVE-2025-3812: WPBot Pro Path Traversal Vulnerability

CVE-2025-3812 is a path traversal flaw in WPBot Pro Wordpress Chatbot plugin allowing authenticated attackers to delete critical files, potentially leading to remote code execution. This article covers technical details, affected versions, impact, and mitigation strategies.

Published:

CVE-2025-3812 Overview

CVE-2025-3812 is an arbitrary file deletion vulnerability in the WPBot Pro WordPress Chatbot plugin. The flaw affects all versions up to and including 13.6.2. The vulnerable qcld_openai_delete_training_file() function fails to validate user-supplied file paths before deletion. Authenticated attackers with Subscriber-level access can delete arbitrary files on the server. Deleting sensitive files such as wp-config.php can lead to remote code execution by forcing WordPress into a setup state controllable by the attacker. The issue is classified under [CWE-73] (External Control of File Name or Path).

Critical Impact

Subscriber-level attackers can delete arbitrary server files, enabling site takeover and remote code execution by removing wp-config.php.

Affected Products

  • WPBot Pro WordPress Chatbot plugin versions up to and including 13.6.2
  • WordPress sites permitting Subscriber-level registration with the plugin installed
  • All WordPress deployments running the affected plugin builds

Discovery Timeline

  • 2025-05-17 - CVE-2025-3812 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-3812

Vulnerability Analysis

The vulnerability resides in the qcld_openai_delete_training_file() function, which handles deletion of OpenAI training files used by the chatbot. The function accepts a file path parameter from an authenticated request and passes it to the deletion routine without sufficient sanitization or path validation. An attacker can submit a crafted path traversal sequence or absolute path to remove any file the WordPress process can write to. Because the capability check permits Subscriber-level users, the barrier to exploitation is minimal on sites accepting user registration.

Root Cause

The root cause is improper external control of a file name. The plugin trusts client-supplied input for the target deletion path and does not constrain operations to a designated upload or training directory. There is no allowlist, canonicalization, or directory containment check before invoking the underlying unlink() or equivalent file system call.

Attack Vector

Exploitation occurs over the network through the plugin's authenticated AJAX or REST endpoint. An attacker registers a Subscriber account, authenticates, and issues a request to the delete-training-file handler with a traversal payload pointing to a critical file. Deleting wp-config.php causes WordPress to enter its installation flow on the next request, allowing the attacker to attach the site to an attacker-controlled database and ultimately achieve code execution through PHP file uploads or theme editing.

No public proof-of-concept is referenced in the advisory. Refer to the Wordfence Vulnerability Report for additional technical context.

Detection Methods for CVE-2025-3812

Indicators of Compromise

  • Unexpected absence of wp-config.php, .htaccess, or core PHP files in the WordPress installation directory
  • WordPress unexpectedly displaying the installation or setup wizard on a previously configured site
  • Requests to admin-ajax.php or REST endpoints invoking the qcld_openai_delete_training_file action from low-privilege accounts
  • New Subscriber-level user registrations followed by file deletion activity in audit logs

Detection Strategies

  • Monitor web server access logs for POST requests containing qcld_openai_delete_training_file originating from Subscriber accounts
  • Inspect parameter values for path traversal sequences such as ../ or absolute paths referencing wp-config.php
  • Correlate authentication events with file deletion events on the underlying file system using audit tooling such as auditd on Linux hosts

Monitoring Recommendations

  • Enable file integrity monitoring on WordPress core files and the document root
  • Alert on any deletion of wp-config.php, .htaccess, or plugin/theme PHP files
  • Track sudden spikes in Subscriber-level account creation followed by privileged AJAX endpoint usage

How to Mitigate CVE-2025-3812

Immediate Actions Required

  • Update the WPBot Pro WordPress Chatbot plugin to a version newer than 13.6.2 once a vendor patch is available
  • Disable the plugin if a patched build cannot be applied immediately
  • Disable open user registration or restrict Subscriber-level account creation on public-facing sites
  • Audit the WordPress installation for missing or recently deleted files and restore from backup if tampering is suspected

Patch Information

No fixed version is listed in the available references at the time of publication. Consult the Wordfence Vulnerability Report and the WPBot vendor site for the latest patched release information.

Workarounds

  • Remove or deactivate the WPBot Pro plugin until a patched release is published
  • Apply a Web Application Firewall rule blocking requests to the qcld_openai_delete_training_file action containing traversal sequences
  • Restrict file system permissions so the web server user cannot delete files outside designated upload directories
  • Disable new user registrations via the WordPress General Settings until the plugin is patched
bash
# Configuration example: disable WordPress user registration via wp-cli
wp option update users_can_register 0

# Restrict deletion of wp-config.php at the OS level (Linux)
sudo chattr +i /var/www/html/wp-config.php

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.