Skip to content
Access control Write-up Intermediate

I Found an Unauthenticated File Disclosure Bug in a WordPress Plugin — Then Found Out I Was a Few Weeks Late

The WordPress plugin SP Project & Document Manager had an unauthenticated file disclosure vulnerability in its view_file() AJAX handler, where a negated nonce check in an OR chain allowed bypassing all permission checks for files inside project folders. An attacker could retrieve file metadata and download links, and a second independent code path in download.php also allowed unauthenticated file downloads by default.

Shikhali Jamalzade Follow

Published on infosecwriteups.com

Most of my CVE research starts the same way: pick a plugin with a documented history of vulnerabilities, and audit its other code paths on the theory that a developer who shipped one insecure pattern is statistically likely to have shipped others. This time the target was SP Project & Document Manager (slug…

Shikhali Jamalzade, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a logic error where a negated nonce verification was OR-chained with permission checks, causing a missing nonce to bypass all checks; and a default option value that skipped authentication in download.php.

Impact

An unauthenticated attacker could obtain file metadata and download links for arbitrary files inside project folders, and potentially download file contents directly via a second code path, though the view_file() issue was already publicly tracked as CVE-2026-10737.

What the attacker needed

WordPress with vulnerable plugin; No authentication required; File inside a project folder

The fix

The view_file() issue was already publicly tracked as CVE-2026-10737, but the download.php issue should be fixed by ensuring the authentication option is properly set and permission checks are not skipped by default.

How it was found

  1. Scan the plugin for unauthenticated AJAX endpoints using grep for wp_ajax_nopriv_.
  2. Identify the view_file() function and its access gate with the negated nonce check.
  3. Set up a local WordPress instance with the plugin and create a project folder with a test file.
  4. Send an unauthenticated request to admin-ajax.php?action=cdm_view_file&id=<file_id> to retrieve file metadata and a download link.
  5. Follow the download link to obtain the full file content without authentication.
  6. Independently, construct a download token from database values and request the file via download.php to confirm a second bypass.

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 write-up has not been written yet. The Original tab links to the source.

A WordPress plugin for managing documents had a flaw in how it checked permissions. The code was supposed to verify a security token (a nonce) before showing a file, but it accidentally treated a missing token as a pass, so anyone could view files in project folders without logging in. A second part of the plugin also allowed direct downloads without any login by default.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Shikhali Jamalzade

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.