HexBrain

WordPress · Report #538008

Add users to groups who have restricted group invites

Validstatus
highseverity
32upvotes
27 Jul 2019disclosed

How it was found

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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original