Exploitation and Impact.
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.
b.ou.is
Published on b.ou.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 signup and applied it without validating that the user was allowed to choose that role.
Impact
An attacker could gain full forum administrator rights, allowing them to delete forum activities, import/export users, and create moderators.
What the attacker needed
User registration enabled; BBPress registration form embedded
The fix
The BBPress team fixed this in version 2.6.5 by validating the roles that are being added.
How it was found
- Enable user registration on the WordPress site and embed a BBPress registration form so a nonce can be obtained.
- Intercept the signup request and add the bbp-forums-role parameter with the value bbp_keymaster.
- Send the request and then check the dashboard to confirm the new user 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 let the person signing up choose their own permission level by adding an extra field to the signup form. That meant anyone could make themselves an administrator of 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.