Improper Access Control in Buddypress core allows reply,delete any user's activity
BuddyPress core did not properly check access control, so a logged-in user could reply to or delete another user's activity in a public group they had not joined. An attacker could tamper with the activity identifier in the request to act on activities belonging to other groups.
Originally disclosed on HackerOne
- Triaged in 1 hour
- Fixed in 19 days
- Paid in 27 days
- Disclosed after 49 days
Description:
Improper Access Control in Buddypress core allows reply,delete any user's activity in other public group,which they don't join.
Steps To Reproduce:
Step 1: Create two account A, B with two public groups Step 2: In group A-account A, create a new activity [id_A] Step 3: In group B-account B, create a new activity [id_B] Step 4: In group A-account A select reply/delete action, use proxy to capture this request Step 5: Change id_A by id_B Step 6: Done, you deleted or reply user's activity without joining group
Recommendations
Valid access control with their roles
PoC with video
Impact
Attacker without joining to group performs to reply,delete any activities without permission.
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 reply and delete handlers trusted the activity identifier supplied by the client without verifying the requester's membership or permissions for the group that activity belongs to.
Impact
An authenticated attacker who has not joined a group could reply to or delete any activity in that public group without permission.
What the attacker needed
Two accounts; two public groups; an intercepting proxy; victim activity exists in a public group
The fix
The reply and delete actions should enforce proper access control checks against the requester's role and group membership before acting on an activity.
How it was found
- Create two accounts and two public groups, one per account.
- As account A in group A, create an activity.
- As account B in group B, create an activity.
- As account A, trigger the reply or delete action and capture the request in a proxy.
- Replace the group A activity identifier with the group B one.
- The action succeeds against the other user's activity without joining that group.
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.
A website lets people post updates inside groups. When you reply to or delete an update, the site sends a request that includes a number identifying which update you mean. The site did not check that you actually belong to the group that update lives in, so changing that number let you act on someone else's update.
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.