Team admin can add billing contacts
A team admin could add billing contacts even though only team owners should have that permission. An attacker with admin rights could add an arbitrary email address to the billing contacts list.
- Triaged in 20 days
- Fixed in 23 days
- Paid in 23 days
- Disclosed after 45 days
Billing contacts can only be added by team owners. However, team admin can escalate his privileges and add billing contacts.
Steps to reproduce: 1.Log in as team admin 2.Send the below request using his token and it adds '[email protected]' to billing contacts.
POST /api/team.billing.addContact HTTP/1.1 Host: satishb3mailinator.slack.com Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Content-Length: 106
[email protected]&token=xoxs-3206092076-3204538285-3743137121-836b042620&set_active=true&_attempts=1
To confirm, login as team owner and navigate to billing contacts. Notice that [email protected] is added to billing contact list.
What the report shows
Slack's billing contacts are meant to be managed by team owners only. The researcher, satishb3, found that a team admin could add a billing contact anyway, which is a privilege escalation from admin to an owner-only action. The report was filed on HackerOne against the Slack program, classified as Privilege Escalation, paid a bounty of 200.00 USD and disclosed on 2015-04-03. No severity or CVSS score is given.
The reproduction is short and direct:
- Log in as a team admin.
- Send the request below using the admin's own token. It adds
[redacted]to the billing contacts.
POST /api/team.billing.addContact HTTP/1.1
Host: satishb3mailinator.slack.com
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 106
email=[redacted]&[redacted]&set_active=true&_attempts=1
- To confirm, log in as the team owner and open the billing contacts page.
[redacted]is now in the billing contact list.
The request carries the admin's session token in the body ([redacted] rather than in a header, alongside the target email, a set_active=trueflag and an_attempts=1` parameter. The host is a Slack subdomain, and the request was sent with the admin's token.
The report does not describe the fix Slack applied.
Root cause
The report does not state the cause; the endpoint accepted an admin's token for an owner-only action.
Impact
A team admin, a role below owner, could add an arbitrary email address to the team's billing contacts. A team admin could add an arbitrary email address to the team's billing contacts.
How this kind of bug works
Role-based access control usually has a hierarchy: owner above admin above member. Bugs appear when an endpoint enforces "is an admin or higher" where the business rule requires "owner only", or when it enforces nothing at all and relies on the UI hiding the feature. The server receives a request that looks identical whether it comes from an owner or an admin, because the role is carried in the session, not in the request body. If the handler never compares the session's role against the required role for that specific action, any authenticated user with a token can perform it.
A second variant is parameter tampering: the client sends a role, team identifier or user identifier in the body, and the server trusts it. Here the body contains the target email and flags, and the token identifies the caller, so the interesting question is purely whether the server maps that token to a role and checks it.
The defence is server-side authorisation on every handler, expressed as an explicit permission check for the exact action (for example, "billing contact management requires owner"), applied consistently across the UI and the API. Centralising these checks in middleware or a policy layer reduces the chance that one endpoint is missed.
How to test for it
- Map the roles available in the target and create accounts for each, ideally in the same team or organisation so the same resources are reachable.
- Identify privileged features: billing, payment methods, SSO, domain claims, audit logs, member removal, API key creation, workspace deletion. Capture the requests the highest-privileged account makes for each.
- Replay each captured request with the lower-privileged account's session, keeping the body and path unchanged. Use a proxy to swap only the authentication material.
- Also try removing or downgrading role-bearing fields in the body, and try adding fields the UI never sends, such as a role name or an owner flag.
- A positive result is a state change visible to the higher-privileged account: a new billing contact, a changed setting, a created key. Confirm from the privileged side, as the researcher did, rather than trusting the response code alone.
Common false positives: the endpoint returns 200 but performs no action; the lower role genuinely has the permission by design; the action succeeds only for resources the lower role already owns; or the change is visible only in the attacker's own view and not persisted for the team. Always verify persistence and cross-account visibility.
How it is fixed
Enforce the required role on the server for each sensitive action, checking the session's role against the specific permission rather than a broad "is admin" test. Do not rely on UI hiding. Where roles are hierarchical, encode the hierarchy explicitly and test each endpoint against every role. Log and alert on privileged actions performed by lower roles during rollout, and add regression tests that replay owner-only requests with admin and member sessions and expect a denial.
Hunting notes
These bugs cluster around features added later or exposed through mobile and internal APIs, where the UI check was implemented but the API check was forgotten. Billing, invitations, integrations and export features are frequent candidates. Recon signals include multiple API versions of the same endpoint, endpoints whose names imply an owner action (addContact, setOwner, transfer), and request bodies carrying role or permission fields. To make the report land, show the before and after state from the privileged account, keep the request minimal, and state the role boundary clearly: which role should be allowed and which role you used.
What happened, in plain words
Slack is a team chat product. Each team has people with different levels of power. A team owner is the role allowed to add billing contacts. A team admin is a lower role that should not be able to. A billing contact is an email address that Slack uses for invoices and other money-related messages. The rule is that only a team owner may add a billing contact.
The researcher, satishb3, found that a team admin could add one anyway. That is a privilege escalation: someone with a lower level of power manages to do something reserved for a higher level. The report was filed on HackerOne against the Slack program, labelled Privilege Escalation, paid a bounty of 200.00 USD and was disclosed on 2015-04-03. No severity rating or CVSS score is given.
The reproduction is short. The researcher logged in as a team admin, sent one request using that admin's own login token, and the address [redacted] was added to the billing contacts. To confirm, the researcher logged in as the team owner, opened the billing contacts page, and saw the address sitting in the list.
The request, line by line
POST /api/team.billing.addContact HTTP/1.1
Host: satishb3mailinator.slack.com
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 106
email=[redacted]&[redacted]&set_active=true&_attempts=1
A request is the message your browser (or any tool) sends to a website's server to ask it to do something. Think of it as an order slip handed to a waiter: it says what you want and who you are.
POST /api/team.billing.addContact HTTP/1.1:POSTis the type of request used when you are sending data that should change something on the server, like placing an order rather than just reading the menu./api/team.billing.addContactis the address of the specific action being called, here "add a billing contact".HTTP/1.1is the version of the language used to phrase the request.Host: satishb3mailinator.slack.com: which website the request is aimed at. This is the Slack team address the request was sent to.Content-Type: application/x-www-form-urlencoded; charset=UTF-8: tells the server how the data in the body is formatted.application/x-www-form-urlencodedmeans it is written asname=valuepairs joined by&, the same format a simple web form produces.charset=UTF-8says the text is encoded in UTF-8, a standard way of representing characters.Content-Length: 106: the size of the body in bytes, so the server knows how much data to read.- The blank line separates the headers from the body.
email=[redacted]: the address to add as a billing contact.- `[redacted] the admin's session token, a long string that proves who is making the request. When you log in, the server gives your browser a token, and the browser sends it back with every request so the server can recognise you without asking for your password each time. Here it is sent in the body rather than in a header, which is unusual but works if the server reads it from there.
set_active=true: a field the client sends along with the email and token._attempts=1: another field the client sends along.
Why does each step matter? Logging in as an admin first establishes the lower role, so anything that follows is done with admin power only. Sending the request with the admin's token is the actual test: the server should look at that token, work out the caller is an admin, and refuse, because adding a billing contact is an owner-only action. Confirming from the owner's account matters because it proves the change really happened and was saved for the whole team, not just shown back to the person who sent the request.
The report does not describe how Slack fixed the problem.
In general, how this kind of bug works
Websites with roles usually arrange them in a ladder: owner above admin above member. Each action should require a minimum rung. Bugs appear when the server checks the wrong rung, for example accepting "admin or higher" where the rule says "owner only", or when it checks nothing at all and relies on the website's interface to hide the button. Hiding a button is like putting a door behind a curtain: it looks inaccessible, but anyone who knows the address can still walk through.
The server cannot tell an owner's request from an admin's request by looking at the body, because the role lives in the session behind the token, not in the request text. If the code handling the action never compares the session's role with the role that action requires, then any logged-in user holding a token can perform it.
A related variant is parameter tampering: the client sends a role, team identifier or user identifier in the body, and the server believes it. In this report the body carries the target email and flags, while the token identifies the caller, so the key question is simply whether the server maps that token to a role and checks it.
The defence is a permission check on the server for every sensitive action, written for that exact action (for example, "managing billing contacts requires owner") and applied the same way in the interface and the API. Keeping these checks in one central place reduces the chance that a single endpoint is forgotten.
How to test for it
- List the roles the product offers and create an account for each, ideally inside the same team so they can all reach the same resources.
- Find privileged features: billing, payment methods, single sign-on, domain claims, audit logs, removing members, creating API keys, deleting the workspace. Record the requests the highest-privileged account makes for each.
- Replay each recorded request using the lower-privileged account's session, leaving the address and body unchanged. A proxy is a tool that sits between your browser and the server and lets you edit requests as they pass.
- Also try removing or lowering role fields in the body, and try adding fields the interface never sends, such as a role name or an owner flag.
- A real result is a change the higher-privileged account can see: a new billing contact, a changed setting, a created key. Confirm from the privileged side, as the researcher did, rather than trusting the server's reply code alone.
Common false alarms: the server replies "OK" but does nothing; the lower role genuinely has that permission by design; the action only works on resources the lower role already owns; or the change appears only in the attacker's own view and is never saved for the team. Always check that the change persists and is visible to another account.
How it is fixed
Enforce the required role on the server for each sensitive action, comparing the session's role against that specific permission rather than a broad "is admin" test. Do not rely on hiding features in the interface. Where roles form a ladder, write that ladder down explicitly and test every endpoint against every role. Log and alert on privileged actions performed by lower roles while the fix rolls out, and add regression tests that replay owner-only requests with admin and member sessions and expect a refusal.
Where to look
These bugs cluster around features added later, or exposed through mobile and internal APIs, where the interface check was built but the API check was forgotten. Billing, invitations, integrations and export features are frequent candidates. Useful signals include several API versions of the same endpoint, endpoint names that suggest an owner action (addContact, setOwner, transfer), and request bodies carrying role or permission fields. To make the report land, show the state before and after from the privileged account, keep the request minimal, and state the role boundary clearly: which role should be allowed and which role you used.
Glossary
- Team owner: the role permitted to add billing contacts.
- Team admin: a role below owner that should not be able to add billing contacts.
- Billing contact: an email address Slack uses for invoices and billing-related messages.
- Privilege escalation: a lower-privileged user managing to perform an action reserved for a higher-privileged user.
- Request: the message a browser or tool sends to a server asking it to do something.
- POST: a request type used to send data that changes something on the server.
- Host: the part of a request that says which website it is aimed at.
- Content-Type: a header telling the server how the body data is formatted.
- application/x-www-form-urlencoded: a body format of
name=valuepairs joined by&, as produced by a simple web form. - UTF-8: a standard way of encoding text characters.
- Content-Length: the size of the request body in bytes.
- Session token: a long string issued at login that proves who is making a request, so the password is not sent every time.
- Role: a named level of power assigned to an account, such as owner, admin or member.
- Authorisation: the server's decision about whether a given user is allowed to perform a given action.
- Parameter tampering: changing values in a request (such as a role or identifier) in the hope the server trusts them.
- Proxy: a tool placed between browser and server that lets you inspect and edit requests.
- Regression test: an automated test that checks a fixed bug stays fixed.
- API: the set of addresses and rules a program uses to talk to a server, as opposed to the pages a person clicks.
- CVSS: a standard scoring system for measuring the severity of a security flaw.