From simple recon to PWN wordpress admin panel writeup
A WordPress site running an outdated Ultimate Member plugin allowed new registrations to include an extra parameter that set the new account's role to administrator. The attacker could therefore register a normal account and land directly in the WordPress admin panel with full privileges.
medium.com
Published on medium.com
In this writeup I will write about one of Interesting findings I discovered recently that’s allowed me to register new account with admin privilege’s in WordPress panel
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
Likely the Ultimate Member plugin accepted a user-supplied role/capability field during registration without checking it against the roles a new user is allowed to have (CVE-2023-3460).
Impact
An unauthenticated attacker could create an account with administrator privileges on the WordPress site, giving full control over the panel.
What the attacker needed
Open user registration; outdated Ultimate Member plugin; no account needed beforehand
The fix
The site should have updated the Ultimate Member plugin to a patched version that no longer accepts user-supplied role fields at registration.
How it was found
- Find an old subsidiary site running an outdated WordPress with open registration.
- Register a normal account and inspect the profile-editing request, noticing the plugin-specific parameter prefix.
- Search the prefix online and identify the Ultimate Member plugin.
- Look up known vulnerabilities for that plugin and find the relevant CVE with public steps.
- Register a second account, adding the extra role parameter to the registration request.
- Submit the request and get redirected straight into the admin panel.
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.
A WordPress plugin called Ultimate Member lets people sign up for accounts on a site. Because the plugin was an old, buggy version, a person signing up could sneak in an extra field in the sign-up form that told the site 'make me an administrator'. The site trusted that field, so the new account got full admin rights instead of ordinary user rights.
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.