Skip to content
Access control Disclosed report Intermediate CVE-2021-21389

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.

hoangkien1020 Follow

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.

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

More by hoangkien1020

View all

4 more disclosed reports, 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.