I Found an Unauthenticated Attachment Disclosure Bug in a WordPress Support Plugin — and a Duplicate Taught Me What “Fixed” Really Means
A WordPress support plugin's attachment download route had a permission callback that returned true unconditionally, allowing unauthenticated users to download any ticket or reply attachment by guessing sequential identifiers. An attacker could harvest private documents such as invoices and ID scans from all tickets on the site.
Published on infosecwriteups.com
Most of my CVE research starts from one theory: a plugin whose developers made one authorization mistake will usually have made others, and the categories that leak most often are the ones tied to user-owned objects — tickets, attachments, profiles, orders. Broken Access Control is, by a wide margin, the single most…
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
The permission callback for the file-download route returned true unconditionally, skipping any authentication or ownership check.
Impact
An unauthenticated attacker could download any ticket or reply attachment, including private documents, by enumerating sequential identifiers; the text notes the issue was marked fixed in a later version but still reproduced on the current release.
What the attacker needed
No account needed; network access to the site; sequential attachment IDs
The fix
The permission callback should verify that the requester is authenticated and owns the ticket or reply before serving the file; the text notes the issue was marked fixed in a later version but still reproduced on the current release.
How it was found
- Map the plugin's REST routes and find the attachment-download handler.
- Read the permission callback and see it returns true unconditionally for the file-dl route.
- Set up an isolated WordPress install with the plugin and create synthetic victim ticket and reply attachments.
- Send an unauthenticated GET request to the ticket attachment download route and receive the file.
- Send an unauthenticated GET request to the reply attachment download route and receive the file.
- Compare MD5 hashes of the server file and the downloaded file to confirm byte-for-byte exfiltration.
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 lets customers attach files to support tickets. The code that decides who can download those files always says 'yes' without checking who is asking. So anyone, even someone not logged in, can download other people's private files by changing a number in the web address.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.