Hacking Into India’s Largest Payment Network Through a Single A
The self-registration GraphQL mutation accepted client-supplied role and store identifiers without server-side checks, so a user could change their role from cashier to admin and add arbitrary store IDs. Sending an empty store list granted admin access to every store on the platform.
That’s exactly what I stumbled upon when poking around the self-registration feature of India’s biggest physical payment systems provider. In a time where fintech systems are evolving faster than ever, you’d assume access control is a solved problem.
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 backend trusted client-supplied role and store identifiers in the UpdateUser GraphQL mutation without verifying them against the authenticated user's actual permissions.
Impact
An attacker could become admin of any store, view employee, customer and EMI data, control POS machines and transactions, and with an empty store list gain admin access to every store on the platform.
What the attacker needed
A valid email for OTP verification; a sample TID from the help section; ability to intercept and modify requests
The fix
The server should enforce role and store assignments based on the authenticated user's actual permissions rather than trusting client input.
How it was found
- Start the self-sign-up flow and verify an email with an OTP.
- Provide a Terminal ID (TID) to associate with a store.
- Select the cashier account type, which sends an UpdateUser GraphQL mutation.
- Resubmit the mutation with the role ID changed to the admin value found in frontend files.
- Add other store IDs to the stores array and refresh the dashboard to see admin access.
- Send an empty stores array to gain admin access to every store.
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, the website sends a request to the server saying who you are and what you should be allowed to do. Here, the server trusted whatever the browser sent, so a user could simply edit the request to claim an admin role and access other shops' data. This is like a form that lets you write your own job title and the office manager believes it.
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.