Admin Dashboard Access Leads to Updating Merchant Info
A hidden registration endpoint allowed anyone to create an admin account and access the admin dashboard. From there, an attacker could view and edit merchant, cashier, station and supervisor data, including changing financial account numbers to receive payments.
Originally disclosed on HackerOne
- Triaged in 2 months
- Fixed in 3 months
- Disclosed after 4 months
Summary by the researcher
A hidden registration endpoint allowed an attacker to sign up for an admin portal, granting access to all registered merchant information. With administrative control over this data, the attack possibilities were endless. The MTN team quickly responded and restricted access to internal users only.
The report
Summary:
The ███████ application provides access to 3(Merchant, Supervisor, Admin) classes of users. Looking at the Admin side, its clear only permitted admins can login to the portal since nothing on the UI indicates a register feature. However I was able to find a registration endpoint to sign up. Now I have access to the Admin dashboard. Based on the functionalities there, it's evident an outsider shouldn't have access to this.
Steps To Reproduce:
[add details for how we can reproduce the issue]
- Visit ████████ and signup
- Login at ██████ and you will be redirected to the admin dashboard where you can approve or decline transactions.
██████
3. At ███████, you can see a list of registered Merchant accounts in the application.
███████
You can edit their data,
Change their account credentials
change their account number to an attacker's: thereby receiving payments made to them,
disable or delete their account, etc.
██████
█████████
##!EDIT
Initially my report focused on the merchants, however it affects, Cashiers, Stations and Supervisors also. You can edit and delete their data also by navigating the the URLs below:
███████ █████████ █████████
#IMPORTANT
You can see the passcode for various supervisor accounts at
███
█████████
Impact
Direct access to admin functionalities, where an attacker can modify merchant financial account information, disable and delete account of MTN clients. An outsider like myself shouldn't have access to this.
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 registration endpoint lacked any check to ensure only authorised users could create admin accounts.
Impact
An attacker could modify merchant financial account information, disable or delete accounts, and view supervisor passcodes, affecting all registered merchants and other user types.
What the attacker needed
None
The fix
Access to the registration endpoint was restricted to internal users only.
How it was found
- Visit the site and sign up.
- Log in and get redirected to the admin dashboard.
- View the list of registered merchant accounts.
- Edit merchant data, such as changing account credentials or account numbers.
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.
The admin area of a website is meant only for trusted staff, but the site had a secret sign-up page that let anyone create an admin account. Once inside, the attacker could change where merchants' money was sent and delete or disable accounts.
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.