Add users to groups who have restricted group invites
BuddyPress did not enforce a user's privacy setting that restricts group invitations to friends only. An attacker who is not a friend could still send a group invitation to that user by submitting the invite request directly.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
#Description:
WordPress version: 5.2 BuddyPress version: 4.2.0
Through this vulnerability, an attacker could add users to groups who have set :
I want to restrict Group invites to my friends only.
There is no proper validation of the personal settings of the user and thus the users with such privacy settings selected could be added.
#Steps to Reproduce:
Make 2 accounts A and B, make sure they are not friends.
-
From account of user A, enable the setting
I want to restrict Group invites to my friends only.from the following URL http://bbwordpress.esy.es/members/yuvraj/settings/invites/. -
From account of user B, make a POST request to :
POST : http://bbwordpress.esy.es/wp-admin/admin-ajax.phpBODY : message=&nonce=21f500cbfd&group_id=1&action=groups_send_group_invites&_wpnonce=7264177f51&users%5B%5D=3 -
Replace the value of users with the victims user id , i.e id of user A.
-
Victim (user A) would receive an invitation from Attacker (user B) even though the privacy setting to restrict group invites has been enabled.
Impact
An attacker who is not a friend of the victim can send him a group invite even though the victim has selected to restrict group invites from friends only.
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 server-side invite handler did not verify the recipient's 'friends only' invite privacy setting before processing the invitation.
Impact
An attacker who is not a friend could send a group invitation to a user who had restricted invitations to friends only.
What the attacker needed
Two accounts; attacker knows victim's user ID; victim enabled friends-only invites
How it was found
- Create two accounts that are not friends.
- As the first user, enable the setting to restrict group invites to friends only.
- As the second user, send a group invite request to the AJAX endpoint.
- Set the invited user ID to the first user's ID.
- The first user receives the invitation despite the privacy setting.
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 privacy setting lets someone say they only want group invitations from friends. The site did not properly validate this setting, so anyone could still invite them. This is a missing server-side check.
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.