Skip to content
Access control Disclosed report Intermediate

Privilege Escalation in BuddyPress core allows Moderate to Administrator

A moderator of one BuddyPress group could send a crafted request to the group members API endpoint for a different group and promote themselves to administrator there. This let a low-privileged user take over another group and perform administrator actions such as editing roles, banning, removing or deleting.

hoangkien1020 Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • Fixed in 19 days
  • Paid in 28 days
  • Disclosed after 50 days

Description:

BuddyPress core allows Moderate to Administrator in Manage Group Members module

Steps To Reproduce:

Step 1 : Create two account with two groups Step 2 : In account A, create group abc with this two users. Step 3 : Administrator in group abc promote account B to Moderator Step 4 : In account B, create own group(without account A), only account B. Step 5: In account B, access quick link here: domain/groups/[group_name]/admin/manage-members/ Change your B's group. There are Edit | Ban | Remove for you to select. Focusing to admin(When you are admin, all thing belongs you). Therefore, I select Edit. Change to Moderate(To capture this request) Change such as here: In POST method: POST /wp-json/buddypress/v1/groups/[group_A_id]/members/[id_user] HTTP/1.1 In body/data: action=promote&role=admin Note: change [group_A_id] to group you are moderator and [id_user]- your id Step 6: Done, you are admin's group A. You can do anything.

Poc with video

Recommendations

Valid user with their roles

Impact

User will takeover group, do anything such as, edit roles,remove, ban, delelte group,..... (Perform as administrator)

Attachments

Privilege_Escalation_in_BuddyPress_core.mp4 From the original on HackerOne

The original report as published on HackerOne, by hoangkien1020. 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 group members endpoint checked that the caller had some moderator role but did not verify that role applied to the group identified in the request, allowing the group identifier to be swapped.

Impact

A moderator could take over another group and act as its administrator, editing roles, banning, removing members or deleting the group.

What the attacker needed

Two accounts; moderator role in one group; ability to intercept requests

The fix

The endpoint should verify that the caller holds the required role in the specific group named in the request before applying any role change.

How it was found

  1. Create two accounts and two groups.
  2. In account A, create a group containing both users.
  3. As administrator of that group, promote account B to moderator.
  4. In account B, create a separate group containing only account B.
  5. In account B, open the manage-members page for its own group and intercept the edit request.
  6. Change the group identifier in the request to the other group and set the role to admin.

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.

The report shows a moderator could change the group identifier in a role-change request and give themselves the top role in a group they did not control.

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 hoangkien1020

View all

4 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.

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.