Skip to content
CSRF Disclosed report Intermediate

CSRF to add admin [wordpress]

WordPress allowed uploaded Flash files with trusted extensions to be run by the Flash plugin, bypassing file-type checks. A CSRF attack could upload a malicious Flash file.

abdullah Follow

Originally disclosed on HackerOne

  • Triaged in 18 hours
  • Fixed in 6 months
  • Paid in 7 months
  • Disclosed after 12 months

Summary by the program

This researcher discovered that WordPress was vulnerable to CSRF attacks when Flash files are uploaded to the application with extensions matching trusted file types, since the Flash plugin will load/run the file in certain cases, regardless of the extension and Content-Type header of that file.

To resolve this issue, WordPress implemented more strict file-type checks on uploaded files to limit the ability for flash files to be uploaded.

The original report as published on HackerOne, by abdullah. 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 file upload validation relied on file extensions and Content-Type headers, which could be bypassed because the Flash plugin executes files based on content rather than extension.

What the attacker needed

Victim is logged in; victim visits a malicious page

The fix

WordPress implemented more strict file-type checks on uploaded files to limit the ability for flash files to be uploaded.

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.

This report is about a security flaw in WordPress. A user could be tricked into uploading a harmful Flash file that looked like a safe file type, and because the Flash plugin would still run it, an attacker could upload it via CSRF. The fix was to check uploaded files more strictly.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by abdullah

View all

5 more disclosed reports, best first.

More from WordPress

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.