Admin Panel Accessed
An admin registration endpoint was publicly accessible, allowing anyone to create an admin account. The attacker could then log in and take full control of the admin panel, including blocking users, viewing their data, deleting courses, and deleting other admins.
Originally disclosed on Immunefi
- Disclosed after under an hour
#35452 [W&A-High] Admin Panel Accessed
Submitted on Sep 23rd 2024 at 09:52:08 UTC by @blocksmith0 for Audit Comp | Shardeum: Ancillaries II
- Report ID: #35452
- Report Type: Websites and Applications
- Report severity: High
- Target: https://immunefi.com
- Impacts:
- Taking state-modifying authenticated actions (with or without blockchain state interaction) on behalf of other users without any interaction by that user, such as: Changing registration information, Commenting, Voting, Making trades, Withdrawals, etc.
Description
Vulnerability Details
I was able to completely takeover university admin panel on `dash.university.shardeum.org` this gives me full access to block unblock almost 20K users, view their data I also have full access to all courses to delete them completely also I can delete other admin accounts as well.
Proof of Concept
Proof of Concept
The was possible because the following admin registration API endpoint was available which enabled me to register an admin account and then login to that admin account.
To register an admin account do a POST request to the following HTTP request with your email and password.
``` POST /api/admin/register HTTP/1.1 Host: api.university.shardeum.org Connection: close sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121" Accept: application/json, text/plain, / sec-ch-ua-mobile: ?0 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 sec-ch-ua-platform: "Linux" Origin: https://university.shardeum.org Sec-Fetch-Site: same-site Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Referer: https://university.shardeum.org/ Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9 If-None-Match: W/"b49-ha6cnPGQKUWujk1808h938ZMeIo" Content-Length: 58 Content-Type: application/json
{"adminEmail":"***","password":"teset456"}` ``` To confirm the PoC please check the admin I have registered with the email `***` on `administrators` section
Please see the screenshots for more info.
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 the admin registration API endpoint lacked proper access controls, allowing unauthenticated users to create admin accounts.
Impact
An attacker could take full control of the admin panel, including blocking or unblocking around 20,000 users, viewing their data, deleting all courses, and deleting other admin accounts.
What the attacker needed
None
How it was found
- Send a POST request to the admin registration endpoint with an email and password.
- Log in using the newly created admin account.
- Access the admin panel and perform actions such as blocking users, viewing data, deleting courses, and deleting other admins.
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.
A website had a hidden page that let anyone create an administrator account. The attacker used that page to make their own admin login, then used it to control the whole site. This is like finding a spare key under the mat for the manager's office.
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.