500$ Access Control Bug: Performed Restricted Actions in Developer Settings by low level user.
A low-privileged supporter could perform restricted actions in developer settings, specifically creating webhook notification targets, by reusing a request captured from an admin and swapping in their own token. The attacker could thus manipulate application logic without proper permissions.
Published on medium.com
{{media:0}}
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.
Context
ExamNote is a virtual name used for a private bug bounty program. The platform is described as an all-in-one solution for modern card issuer processing and program management, letting businesses build and launch new revenue streams and giving both businesses and their customers a single place to work. Part of that product is a developer settings area where notification targets, such as webhook notification targets, are configured.
A notification target in this area is an object with a name, a URI and a list of subscriptions, meaning the events that should trigger a notification. Creating one is an administrative action: it decides where the platform sends event data and which signing keys are generated for that target. The bug described here lets a low-privileged user, a supporter, create such a target even though that role is not supposed to have the permission.
Setup
Two accounts are needed:
- An admin account, which can legitimately create notification targets in the developer settings.
- A supporter (or ordinary user) account, which does not have that permission and is used as the attacker account.
The API is a GraphQL endpoint served over HTTP/2 at api.us.test.examnote.com. Authentication is a bearer token in the Authorization header. The researcher used an intercepting proxy to capture and modify requests, since the whole technique depends on taking a request from one session and replaying it with another session's token.
Finding it
The notification creation flow is a GraphQL mutation, addWebhookNotificationTarget. The interesting question was whether the server checks the caller's role when that mutation is executed, or only when the UI renders the settings page. If authorisation lives only in the front end, the mutation can be replayed by any authenticated account that can reach the endpoint. The researcher took a valid request from the admin session and swapped the token for the supporter's token.
Exploitation
Step 1: create a notification as admin
Using the admin account, create a notification in the developer settings. This produces a legitimate, well-formed GraphQL request that the server accepts.
Step 2: capture and drop the request
Capture the request made during notification creation and drop it. The captured request is the template for the attack.
Step 3: switch to the low-privileged account and capture a request
Log in as the supporter or user account and capture any request made by that session. The purpose is to obtain that account's Authorization: Bearer token. The captured notification request looks like this:
POST /graphql HTTP/2Host: api.us.test.examnote.comAuthorization: Bearer ------------{"query":"mutation AddWebhookNotificationTarget($input: AddWebhookNotificationTargetInput!) {\n addWebhookNotificationTarget(input: $input) {\n __typename\n ... on WebhookNotificationTarget {\n id\n signingKeys {\n createdAt\n id\n secret\n }\n }\n ... on UserError {\n errors {\n path\n code\n description\n }\n }\n }\n}","variables":{"input":{"name":"hello","uri":"https://test.com","subscriptions":["ACH_EXTERNALLY_INITIATED_DEPOSIT_RECEIVED","ACH_EXTERNALLY_INITIATED_DEPOSIT_PROCESSED"]}}}
The request targets /graphql on the API host. The mutation is addWebhookNotificationTarget, taking an AddWebhookNotificationTargetInput. The selection set asks for the new target's id and its signingKeys (createdAt, id and secret), and it also handles the UserError union member with path, code and description, which is how the API reports validation or permission problems. The variables supply the target name hello, the URI https://test.com, and two subscriptions, ACH_EXTERNALLY_INITIATED_DEPOSIT_RECEIVED and ACH_EXTERNALLY_INITIATED_DEPOSIT_PROCESSED.
Step 4: swap the token
Replace the Authorization: Bearer token in the captured notification request with the supporter (attacker) account's Authorization: Bearer token. Everything else in the request stays as the admin sent it.
Step 5: send the modified request
Send the modified request. If the server authorises the mutation on the token's role, the supporter should be rejected. In this case the request succeeded, so the supporter account was able to perform an action in the developer settings that its role does not permit.
Root cause
The mutation addWebhookNotificationTarget does not enforce the permission required to manage notification targets. The mutation does not enforce the permission required to manage notification targets, so a supporter's token was accepted. Because the request body is identical to the admin's and only the bearer token differs, the server has everything it needs to distinguish the two callers; it simply does not use the role when deciding whether to run the mutation. This is a classic broken access control or privilege escalation pattern: the front end is trusted to enforce a rule that the back end never checks.
Impact
A supporter, meaning a user with lower privileges, can create webhook notification targets in the admin developer settings without the required permissions. The request asks for the target's signingKeys, including the secret, in its selection set. The researcher frames the risk as the ability of a low-level actor to manipulate the application's logic by creating notifications in an area reserved for administrators. The report does not describe what happens to notifications sent to an attacker-controlled URI beyond the creation itself.
The program treated the issue as significant and awarded a bounty of $500.
Fix
The report does not state what change was made. The fix implied by the finding is to enforce the notification-management permission in the addWebhookNotificationTarget resolver, so that the role is checked on the server for every call and not only by hiding the settings in the UI. Authorisation should be applied to the mutation itself, independently of which client sends it.
Variants to test
- Replay other developer-settings mutations with a low-privileged token, such as editing or deleting an existing notification target. A positive result is a successful response where the role should have been refused.
- Try the same token swap on other GraphQL mutations that the UI only shows to admins, for example user or role management. A positive result is any state change performed by the low-privileged account.
- Test object-level access by passing the
idof a target owned by another tenant or account in an update or delete mutation. A positive result is a successful operation on an object the caller does not own. - Check whether the returned
signingKeys.secretcan be read for targets the caller did not create, by querying them with the low-privileged token. A positive result is a secret returned to an unauthorised caller. - Repeat the request with no token or an expired token to confirm the endpoint rejects unauthenticated callers, which separates an authentication gap from the authorisation gap seen here.
What happened, in plain words
A security researcher was testing a private bug bounty program that uses the virtual name ExamNote. The platform is described as an all-in-one solution for modern card issuer processing and program management: it lets businesses build and launch new revenue streams and gives both the businesses and their customers one place to work. Part of the product is a developer settings area where notification targets, such as webhook notification targets, are configured.
A notification target is a small configuration object with a name, a URI (a web address) and a list of subscriptions, meaning the events that should trigger a notification. Creating one is an administrative action: it decides where the platform sends event data and which signing keys are generated for that target. A signing key is a secret string used to prove that a message really came from the platform, a bit like a wax seal on an envelope.
The bug is that a low-privileged user, a supporter, could create such a target even though that role is not supposed to have the permission. The supporter did this by taking a request that an administrator had made and swapping in their own login token. The server accepted it. The program treated the issue as significant and awarded a bounty of $500.

The pieces you need to know first
Before the steps make sense, here are the few ideas the whole report rests on.
An API is the part of a website that the page talks to behind the scenes. Think of a restaurant: the menu and the waiter are the interface, the kitchen is the API. Your browser asks the kitchen for data, and the kitchen answers in a structured format instead of a picture of a page.
GraphQL is a way of asking an API for exactly the data you want. Instead of many fixed addresses, there is usually one address, here /graphql, and you send it a description of what you want. That description is called a query, or a mutation when it changes something rather than just reading it.
A token is a short string that proves who you are, like a cloakroom ticket. You show it with every request and the server looks it up to decide whose account is asking. Here it travels in an Authorization header, which is a labelled line attached to the request. The label is Authorization and the value starts with Bearer, followed by the token itself.
An intercepting proxy is a tool that sits between your browser and the server, like a postal worker who opens every letter, lets you read and rewrite it, and then sends it on. It is how the researcher captured requests and changed them.
Broken access control means the server does not properly check whether the person asking is allowed to do the thing they are asking for. Privilege escalation is the specific case where a low-level account manages to do something reserved for a higher-level one. The everyday comparison: a hotel key card that opens the guest room door but, because the lock never checks the floor, also opens the manager's office.
Setup
Two accounts are needed:
- An admin account, which can legitimately create notification targets in the developer settings.
- A supporter (or ordinary user) account, which does not have that permission and is used as the attacker account.
The API is a GraphQL endpoint served over HTTP/2 at api.us.test.examnote.com. HTTP/2 is simply a newer version of the language browsers and servers use to exchange requests and responses. Authentication is a bearer token in the Authorization header. The researcher used an intercepting proxy to capture and modify requests, since the whole technique depends on taking a request from one session and replaying it with another session's token.
Finding it
The notification creation flow is a GraphQL mutation called addWebhookNotificationTarget. The interesting question was whether the server checks the caller's role when that mutation is executed, or only when the page draws the settings screen. If the check lives only in the front end, the mutation can be replayed by any logged-in account that can reach the endpoint. The researcher took a valid request from the admin session and swapped the token for the supporter's token.
Exploitation
Step 1: create a notification as admin
Using the admin account, create a notification in the developer settings. This produces a legitimate, well-formed GraphQL request that the server accepts.
Step 2: capture and drop the request
Capture the request made during notification creation and drop it. Dropping means letting the proxy stop the request instead of forwarding it. The captured request becomes the template for the attack.
Step 3: switch to the low-privileged account and capture a request
Log in as the supporter or user account and capture any request made by that session. The purpose is to obtain that account's Authorization: Bearer token, the cloakroom ticket that identifies the low-privileged user. The captured notification request looks like this:
POST /graphql HTTP/2Host: api.us.test.examnote.comAuthorization: Bearer ------------{"query":"mutation AddWebhookNotificationTarget($input: AddWebhookNotificationTargetInput!) {\n addWebhookNotificationTarget(input: $input) {\n __typename\n ... on WebhookNotificationTarget {\n id\n signingKeys {\n createdAt\n id\n secret\n }\n }\n ... on UserError {\n errors {\n path\n code\n description\n }\n }\n }\n}","variables":{"input":{"name":"hello","uri":"https://test.com","subscriptions":["ACH_EXTERNALLY_INITIATED_DEPOSIT_RECEIVED","ACH_EXTERNALLY_INITIATED_DEPOSIT_PROCESSED"]}}}
Line by line, in plain words:
POST /graphql HTTP/2says the request is a POST (a request that sends data and can change things) to the path/graphql, using HTTP/2.Host: api.us.test.examnote.comsays which server the request is addressed to.Authorization: Bearer ------------is the identity line. The dashes stand in for the token; the real one is a long string.{"query":"mutation AddWebhookNotificationTarget(...)starts the body of the request. It is JSON, a text format for structured data, and it has two parts:queryandvariables.- The
querypart names the mutationaddWebhookNotificationTargetand declares that it takes one input,AddWebhookNotificationTargetInput. - Inside the mutation,
addWebhookNotificationTarget(input: $input)runs it with the values supplied later. __typenameasks the server to say what kind of result it is returning.... on WebhookNotificationTargetsays: if the result is a webhook notification target, give me itsidand itssigningKeys, and for each key thecreatedAt,idandsecret.... on UserErrorsays: if the result is an error, give me theerrorslist withpath,codeanddescription. This is how the API reports validation or permission problems.- The
variablespart supplies the actual values: the target namehello, the URIhttps://test.com, and two subscriptions,ACH_EXTERNALLY_INITIATED_DEPOSIT_RECEIVEDandACH_EXTERNALLY_INITIATED_DEPOSIT_PROCESSED. Those are the event names that should trigger a notification.
Step 4: swap the token
Replace the Authorization: Bearer token in the captured notification request with the supporter (attacker) account's Authorization: Bearer token. Everything else in the request stays as the admin sent it. This is the heart of the test: the request body is unchanged, so if the server answers differently it can only be because of the token.
Step 5: send the modified request
Send the modified request. If the server authorises the mutation based on the token's role, the supporter should be rejected. In this case the request succeeded, so the supporter account was able to perform an action in the developer settings that its role does not permit.
Root cause
The mutation addWebhookNotificationTarget does not enforce the permission required to manage notification targets. The mutation does not enforce the permission required to manage notification targets, so a supporter's token was accepted. A resolver is the piece of server code that actually carries out a mutation. Because the request body is identical to the admin's and only the bearer token differs, the server has everything it needs to tell the two callers apart; it simply does not use the role when deciding whether to run the mutation. This is a classic broken access control or privilege escalation pattern: the front end is trusted to enforce a rule that the back end never checks. The front end is the part you see in the browser; the back end is the server behind it.
Impact
A supporter, meaning a user with lower privileges, can create webhook notification targets in the admin developer settings without the required permissions. The request asks for the target's signingKeys, including the secret, in its selection set. The researcher frames the risk as the ability of a low-level actor to manipulate the application's logic by creating notifications in an area reserved for administrators. The report does not describe what happens to notifications sent to an attacker-controlled URI beyond the creation itself.
Fix
The report does not state what change was made. The fix implied by the finding is to enforce the notification-management permission in the addWebhookNotificationTarget resolver, so that the role is checked on the server for every call and not only by hiding the settings in the UI. Authorisation should be applied to the mutation itself, independently of which client sends it.
Variants to test
- Replay other developer-settings mutations with a low-privileged token, such as editing or deleting an existing notification target. A positive result is a successful response where the role should have been refused.
- Try the same token swap on other GraphQL mutations that the UI only shows to admins, for example user or role management. A positive result is any state change performed by the low-privileged account.
- Test object-level access by passing the
idof a target owned by another tenant or account in an update or delete mutation. A positive result is a successful operation on an object the caller does not own. - Check whether the returned
signingKeys.secretcan be read for targets the caller did not create, by querying them with the low-privileged token. A positive result is a secret returned to an unauthorised caller. - Repeat the request with no token or an expired token to confirm the endpoint rejects unauthenticated callers, which separates an authentication gap from the authorisation gap seen here. Authentication is proving who you are; authorisation is what you are allowed to do once you are known.
Glossary
- API: the part of a service that programs talk to, receiving structured requests and returning structured data.
- Authentication: proving who you are, usually with a token or password.
- Authorisation: deciding what an identified user is allowed to do.
- Bearer token: a string sent in the
Authorizationheader that identifies the caller, like a cloakroom ticket. - Broken access control: a flaw where the server does not properly check whether the caller is allowed to perform an action.
- Developer settings: the area of the product where notification targets and similar technical configuration are managed.
- Front end: the part of the application you see and interact with in the browser.
- Back end: the server-side code that stores data and carries out actions.
- GraphQL: a way of querying an API by describing the exact data you want, sent to a single endpoint such as
/graphql. - Mutation: a GraphQL request that changes something, as opposed to a query that only reads.
- Resolver: the server-side function that executes a GraphQL query or mutation.
- Header: a labelled line attached to an HTTP request or response, such as
AuthorizationorHost. - HTTP/2: a version of the protocol browsers and servers use to exchange requests and responses.
- Intercepting proxy: a tool placed between browser and server that can capture, inspect and modify traffic.
- JSON: a text format for structured data, made of names and values in braces.
- Notification target: a configuration object with a name, a URI and a list of subscriptions that decide where and when event notifications are sent.
- Privilege escalation: a low-privileged account managing to perform actions reserved for a higher-privileged one.
- Signing key: a secret string used to prove that a message genuinely came from the platform.
- Subscription: in this context, the name of an event that should trigger a notification.
- Supporter: the low-privileged role used as the attacker account in this report.
- URI: a web address identifying where something is sent or found.
- Webhook: an automatic message sent from one system to a web address when an event happens.