Analysis and Discovery of CVE-2020-13693
The BBPress plugin allowed a user to set their own forum role during registration by supplying a role parameter, so an attacker could register as a forum administrator (Keymaster). This gave complete control over the forum, including deleting activities and creating moderators.
Published on blog.raphael.karger.is
After conducting research on popular Wordpress plugins I discovered a logic-bug in BBPress which is installed on over 300,000+ websites. The found vulnerability was identified to be privilege-escalation, I was assigned CVE-2020-13693 and a X,XXX payout from Wordpress on Hackerone.
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 plugin took a user-supplied role parameter during registration and added it to the new user's metadata without validating that the role was allowed for self-registration.
Impact
An attacker could gain complete forum control, including deleting forum activities, importing/exporting users, and creating moderators, but only if user registration is enabled and a BBPress registration form is present.
What the attacker needed
User registration enabled; BBPress registration form embedded
The fix
The plugin was fixed in version 2.6.5 by validating the roles that are being added.
How it was found
- Enable user registration and embed a BBPress registration form to obtain a nonce.
- Intercept the signup request and add the role parameter with the Keymaster value.
- Send the request and log in to see the new account has the Keymaster role.
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.
When you sign up on a website, the site usually decides what permissions your new account gets. Here, the plugin trusted a value sent by the browser to decide the account's role, so anyone could ask to be made an administrator. That let an attacker take over the forum.
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.