Privilege Escalation via REST API to Administrator leads to RCE
A privilege escalation flaw in the BuddyPress REST API allowed a non-admin user to gain administrator access when new user registrations were enabled. Administrator access could then lead to remote code execution because admins can run code on the site.
Originally disclosed on HackerOne
- Triaged in 7 hours
- Fixed in 27 days
- Paid in 41 days
- Disclosed after 3 months
Summary by the program
Kien Hoang reported a privilege escalation vulnerability in the BuddyPress REST-API. Through this issue, if registrations for new users is enabled, a non-admin user can gain administrator access on the site.
The administrator access can then lead to remote code execution, as admins have the right to run code on the site.
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 a missing permission check in a BuddyPress REST API endpoint that allowed a low-privileged user to perform administrator-level actions.
Impact
A non-admin user could gain administrator access, and because admins can run code on the site, this could lead to remote code execution.
What the attacker needed
New user registrations enabled; a non-admin account
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.
This report is about a website plugin called BuddyPress that lets people sign up and interact. A flaw in its programming interface (the REST API, a way for software to talk to the site) let an ordinary registered user become a full administrator. Administrators can change the site's code, so that could let an attacker run their own code on the server.
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.