Skip to content
Access control Disclosed report Beginner

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.

yuvraj_dighe Follow

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.

  1. 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/.

  2. From account of user B, make a POST request to :

    POST : http://bbwordpress.esy.es/wp-admin/admin-ajax.php BODY : message=&nonce=21f500cbfd&group_id=1&action=groups_send_group_invites&_wpnonce=7264177f51&users%5B%5D=3

  3. Replace the value of users with the victims user id , i.e id of user A.

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

The original report as published on HackerOne, by yuvraj_dighe. 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 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

  1. Create two accounts that are not friends.
  2. As the first user, enable the setting to restrict group invites to friends only.
  3. As the second user, send a group invite request to the AJAX endpoint.
  4. Set the invited user ID to the first user's ID.
  5. 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.

More by yuvraj_dighe

View all

1 more disclosed report, 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.