Allow authenticated users can edit, trash,and add new in BuddyPress Emails function
An author-level user could still edit, trash and add BuddyPress Email posts after their elevated privileges were revoked, allowing them to modify email templates they should no longer control.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 23 days
- Paid in 32 days
- Disclosed after 54 days
Description:
Allow author can edit, trash,and add new your posts in BuddyPress Emails function And editor can edit,trash, add new any posts in BuddyPress Emails default.
Steps To Reproduce:
Step 1 : Create two accounts: Admin and Author Step 2: Login with admin account. In admin account, give author to admin account. Step 4: Login with author within dashboard Access link: domain/wp-admin/edit.php?post_type=bp-email Step 5: Revoke author to author privilege in admin account Step 6: Within author dashboard, author can edit, trash,and add new PoC by video: https://bit.ly/2UH7iLz
Recommendations
Valid user current session access.
Impact
Author can edit, trash,and add new in BuddyPress Emails. And editor can edit,trash, add new any posts in BuddyPress Emails default.
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 application checked the user's role only when the session was created and did not re-validate current capabilities on each request.
Impact
An author could edit, trash and add new BuddyPress Emails after privileges were revoked, and an editor could do the same to any default BuddyPress Emails.
What the attacker needed
A low-privilege account; an admin who grants then revokes rights
How it was found
- Create an admin account and an author account.
- As admin, grant the author account admin-level rights.
- Log in as the author and open the BuddyPress Emails management page.
- As admin, revoke the author's elevated privileges.
- In the author's existing session, edit, trash or add new BuddyPress Emails.
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.
BuddyPress Emails are templates the site uses to send messages. The report says a user whose extra permissions were taken away could still change those templates. This is a permissions problem.
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.