Skip to content
Access control Write-up Beginner

CVE-2023-41954: ProfilePress <= 4.13.1 — Unauthenticated Privilege Escalation

The ProfilePress WordPress plugin allowed an unauthenticated attacker to register a new account with an elevated role such as Editor or Author by adding a hidden form field to the registration request. This could let the attacker gain higher privileges than intended on any affected site.

Revan A Follow

Published on infosecwriteups.com

Privilege Escalation vulnerability on ProfilePress Plugin. Malicious actor could register an account as Editor, Author, or other existing roles.

Revan A, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The registration handler accepted a user-supplied role field (reg_select_role) and passed it directly to the user creation function without checking it against the form's allowed roles.

What the attacker needed

WordPress site with ProfilePress <= 4.13.1; User registration enabled; No account needed

The fix

The vulnerability was fixed in version 4.13.2 by checking the form structures defined in the admin dashboard.

How it was found

  1. Install WordPress and the vulnerable ProfilePress plugin version 4.13.1 or lower.
  2. Create a registration form and set a default role.
  3. Publish the form on a page.
  4. Open the registration page in a private browsing window.
  5. Fill in the form and submit it.
  6. Intercept the request and add a reg_select_role field with the value editor.

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 write-up has not been written yet. The Original tab links to the source.

When you sign up on a website, the form sends your details to the server. This plugin also accepted an extra field that let the person signing up choose their own user role, such as Editor, which normally only an administrator should assign. That meant anyone could create a more powerful account without permission.

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 Revan A

View all

1 more disclosed report, best first.

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.