Senstive Information Leak Lead To join any Organisation
The follow endpoint returned full user profile data, including email and a secret key, when the request was replayed in a new tab. The same endpoint for organisations exposed the organisation's secret key, allowing an attacker to join any organisation without an invitation.
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
This write-up describes an information disclosure issue found on a site the author refers to only as XYZ.com, because the name could not be disclosed. The site is a social platform: users can follow other users, organisations and tags. The feature at the centre of the report is the follow action, which normally just records that one account follows another.
The site also lets a user create an organisation and invite people to it by sharing a secret key. That invitation key is what turns a simple information leak into a way to join any organisation.
Setup
The author used the browser console to watch requests and responses. No special tooling is described. The only precondition is an authenticated session on the site, since the follow action is performed as a logged-in user.
Finding it
After spending an hour on the site, the author reached a point where data was disclosed. Following any user produced a small JSON response, seen in the browser console, that simply said:
{"outcome":"followed"}
Request:
follow any user
Response:
Response when you follow the user
Nothing in that response looked sensitive. The interesting part came from replaying the request from the Chrome console by opening the follow request in a new tab. The response to that replay disclosed all the information of the user profile.
The URL looked like:
https://XYZ.com/follow
The disclosed information about the user was:
- Email (which the author notes may be a GitHub or Twitter email)
- Secret Key
- All the profile settings, such as notification settings. The author did not test the payment section but expected that card information would be disclosed too.
Email and Secret Key Disclose
At this point the author did not know what the secret key could be used for and looked for a developer section of the site that would explain it. There was none.
Exploitation
Step 1: Replay the follow request
The follow request, replayed outside the console by opening it in a new tab, returned the full profile data of the followed user instead of the short {"outcome":"followed"} message. That response contained the user's email, the secret key and the profile settings.
Step 2: Find a use for the secret key
Exploring the site's settings, the author found that a user can create an organisation and invite users to it by sharing the secret key.

Organisation member
That connected the leaked key to a concrete action: the key is the invitation credential.
Step 3: Confirm the leaked key is the invitation key
The site also lets a user follow an organisation, and the earlier behaviour showed that following a user discloses that user's information. The author applied the same technique to an organisation and it disclosed the organisation's secret key as well.
Organisation Secret Key
With that key, no invitation was needed to join the organisation. The author states that an attacker could change the organisation settings, post an article, invite any user to the organisation (given the secret key) and delete the organisation.
Root cause
The report shows two different responses to the follow action: a short status message in the console and, when the request is replayed in a new tab, the full profile object including the secret key. The report does not explain why. The report does not show the server-side code, so the exact reason is not stated; .
The secret key doubles as the organisation invitation credential, so any disclosure of it is equivalent to an invitation.
Impact
An authenticated user who can follow another user or an organisation can obtain that account's email, secret key and profile settings. For an organisation, the leaked secret key allows joining it without an invitation and then changing its settings, posting articles, inviting other users and deleting the organisation. The author did not test the payment section, so the claim about card data is an expectation rather than a confirmed result.
Fix
The author contacted the site and reports that the issue was patched within an hour.
Variants to test
- Replay other state-changing requests (follow, like, subscribe) in a new tab and compare the response with the in-page response. A positive result is a fuller object containing email, tokens or settings.
- Follow an organisation rather than a user and inspect the response for invitation or API keys. A positive result is a key that can be used to join the organisation.
- Check whether the same key appears in other responses, such as profile or settings endpoints. A positive result is the same secret key returned in more than one place.
- Test whether the leaked key can be used to invite accounts or change organisation settings. A positive result is a successful action performed with the key alone.
What happened, in plain words
A security researcher was testing a social website. The site's real name is hidden in the report, so it is called XYZ.com. On this site you can follow other users, organisations and tags, much like following someone on a social network.
The site also lets you create an organisation and invite people into it by sharing a secret key. That key works like a password for the invitation: whoever has it can join.
The researcher found that the follow action, when repeated in a slightly different way, sent back far more information than it should. Instead of a short "done" message, it returned the full profile of the person being followed, including their email address and their secret key. The same trick worked on organisations, so the researcher could read an organisation's secret key and use it to join that organisation without an invitation.
The researcher reported it and the site fixed the problem within an hour.
Background ideas you need first
A few everyday ideas make the rest of this easy to follow.
- A request and a response. When you click something on a website, your browser sends a request to the site's computer (the server) and gets a response back. Think of it as posting a letter and receiving a reply.
- An API. Many websites are built so that the page you see is filled in by small requests that exchange data rather than whole web pages. That data exchange is often called an API (application programming interface). It is like a waiter taking your order to the kitchen and bringing back a plate, rather than you walking into the kitchen yourself.
- JSON. The data in these exchanges is often written in JSON, a simple text format of names and values in curly brackets, for example
{"outcome":"followed"}. It is just a tidy way of writing "the result was: followed". - The browser console. Every modern browser has a built-in developer console. It shows the requests the page makes and the responses it gets. It is a window into the conversation between your browser and the server.
- Replaying a request. If you can see a request in the console, you can often send the very same request again, for example by opening it in a new browser tab. This is called replaying it. It is like keeping a copy of a letter and posting it a second time.
- Authentication and session. When you log in, the site gives your browser a small piece of proof, often stored in a cookie, so it knows who you are on later requests. Being logged in is what lets you perform actions such as following someone.
- Information disclosure. This is the name for a bug where a system hands out data it should have kept private, such as email addresses, keys or settings. Nothing is broken or crashed; the problem is that too much is said.
- A secret key used as an invitation. Some sites do not send email invitations. Instead they give the organisation a secret key, and anyone who knows that key can join. The key is therefore as sensitive as a password.
The setup
The researcher watched the traffic in the browser console. No special tools are described. The only thing needed to repeat the test is to be logged in, because following someone is an action only a logged-in user can perform.
Finding the leak
After about an hour of exploring, the researcher reached a point where data was being disclosed. Following any user produced a small JSON response in the console that simply said:
{"outcome":"followed"}
This is the server saying "the follow worked". There is nothing private in it: no name, no email, no key. On its own it looks completely harmless.
Request:
follow any user
Response:
Response when you follow the user
The two images show the request the page sends when you follow a user, and the short response it gets back.
The interesting part came next. The researcher replayed the request from the Chrome console by opening the follow request in a new tab. The response to that replay was not the short message. It disclosed all the information of the user profile.
The URL looked like:
https://XYZ.com/follow
This is the address the follow action is sent to. Opening it directly in a tab sends the same kind of request again, but outside the page's normal flow, and the server answered with much more than it should.
The disclosed information about the user was:
- Email (which the author notes may be a GitHub or Twitter email)
- Secret Key
- All the profile settings, such as notification settings. The author did not test the payment section but expected that card information would be disclosed too.
Email and Secret Key Disclose
The image is captioned 'Email and Secret Key Disclose'.
At this point the researcher did not know what the secret key could be used for, and looked for a developer section of the site that would explain it. There was none.
Using the leak
Step 1: Replay the follow request
The follow request, replayed outside the console by opening it in a new tab, returned the full profile data of the followed user instead of the short {"outcome":"followed"} message. That response contained the user's email, the secret key and the profile settings.
The reason to do this is simple: the page's own request hides the interesting data, so the researcher sent the same request a different way to see whether the server behaved differently. It did.
Step 2: Find a use for the secret key
Exploring the site's settings, the researcher found that a user can create an organisation and invite users to it by sharing the secret key.

Organisation member
The image shows the organisation member area.
That connected the leaked key to a concrete action: the key is the invitation credential. In other words, holding the key is the same as holding an invitation.
Step 3: Confirm the leaked key is the invitation key
The site also lets a user follow an organisation, and the earlier behaviour showed that following a user discloses that user's information. The researcher applied the same technique to an organisation and it disclosed the organisation's secret key as well.
Organisation Secret Key
The image shows the organisation's secret key appearing in the response.
With that key, no invitation was needed to join the organisation. The researcher states that an attacker could change the organisation settings, post an article, invite any user to the organisation (given the secret key) and delete the organisation.
Why it happened
The report shows two different responses to the follow action: a short status message in the console and, when the request is replayed in a new tab, the full profile object including the secret key. The report does not explain why. The report does not show the server-side code, so the exact reason is not stated; .
The secret key doubles as the organisation invitation credential, so any disclosure of it is equivalent to an invitation.
What it means
An authenticated user who can follow another user or an organisation can obtain that account's email, secret key and profile settings. For an organisation, the leaked secret key allows joining it without an invitation and then changing its settings, posting articles, inviting other users and deleting the organisation. The author did not test the payment section, so the claim about card data is an expectation rather than a confirmed result.
The fix
The researcher contacted the site and reports that the issue was patched within an hour.
Other places to look
- Replay other state-changing requests (follow, like, subscribe) in a new tab and compare the response with the in-page response. A positive result is a fuller object containing email, tokens or settings.
- Follow an organisation rather than a user and inspect the response for invitation or API keys. A positive result is a key that can be used to join the organisation.
- Check whether the same key appears in other responses, such as profile or settings endpoints. A positive result is the same secret key returned in more than one place.
- Test whether the leaked key can be used to invite accounts or change organisation settings. A positive result is a successful action performed with the key alone.
Glossary
- API: the way one piece of software asks another for data or actions; here, the small data exchanges between the browser and the site.
- Authentication: proving who you are to a site, usually by logging in.
- Browser console: a built-in browser tool that shows requests, responses and errors, and lets you run small commands.
- Cookie: a small piece of data a site stores in your browser, often used to remember that you are logged in.
- Endpoint: a specific address on a server that accepts a particular kind of request, such as the follow address.
- Information disclosure: a bug where a system reveals data that should have stayed private.
- JSON: a plain text format for data, written as names and values in curly brackets.
- Organisation: a group account on the site that users can join and that has its own settings and members.
- Replay: sending the same request again, for example by opening it in a new tab.
- Request: a message your browser sends to a server asking for something or asking it to do something.
- Response: the server's reply to a request.
- Secret key: a private string of characters used as a credential, here also used as an invitation to join an organisation.
- Session: the period during which a site remembers that you are logged in.
- Token: a piece of data used as proof of identity or permission, similar in role to a cookie or key.