Easy way to get privilege escalation
A user registered on an API subdomain and found that changing their profile name to 'admin' granted them full administrator privileges. The attacker could then perform any action available to an admin, such as changing the site's main image.
hey guys i’ll explain how to get an easy privilege escalation and get admin privileges lets start…
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 application used the user's profile name (or a similar user-controlled field) to determine authorisation, instead of checking a server-side role or permission flag.
Impact
An attacker could gain full administrative control over the application, allowing them to modify site content and perform any admin action.
What the attacker needed
Ability to register an account; access to the profile edit page
How it was found
- Fuzz subdomains to find an API subdomain.
- Fuzz directories on that subdomain to discover the /register endpoint.
- Register a new account and log in.
- Go to the profile page and change the name to 'admin'.
- Observe that admin privileges are granted.
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.
This is a case where the website decided what you were allowed to do based on your display name. By simply typing 'admin' as their name, the user tricked the system into thinking they were an administrator. This is dangerous because anyone can change their name, so anyone could become an admin.
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.