How I Was Able To TakeOver Any Account On One Of Europe's Largest Media Companies
An IDOR vulnerability in a media company's SSO site allowed an attacker to change any user's account information, including password, by manipulating the UID and email in a profile update request. The attacker first obtained UIDs by appending .json to a group join endpoint, which leaked all member UIDs.
Published on medium.com
Welcome back, I have not produced a writeup in over a week due to hunting for further vulnerabilities on Hall Of Fame sites, many of which are currently triaged and I am waiting permission to disclose (many exciting writeups pending).
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
The target was the Single Sign On (SSO) site of a large European media company. The researcher deliberately withholds the company name, referring to it only as redacted.com. The SSO account was the gateway to many other sites operated under the same company, so an account on it carried weight beyond a single application.
The feature that mattered was the reset password flow. The researcher is explicit that this is not a reset password takeover: the reset password page simply exposed an endpoint that reflected the account's UID, a value around 32 characters long. The other feature that mattered was a group feature, where users could request to join a group.
Setup
The only precondition described is the ability to register an account on the SSO site. That registration gave the researcher SSO access to further sites under the company. No specific tools, versions or special roles are mentioned in the report.
Finding it
While testing functions on the SSO site, the researcher noticed that the reset password flow contained an endpoint reflecting the account UID, roughly 32 characters in length.
The first instinct was brute force: generate 1000 similar tokens and try them. That attempt was blocked with a 403, and changing the user agent header and the IP address did not bypass the block. The researcher then recalled another report where a researcher advised never giving up on seemingly hard to guess UIDs and instead looking for a place where they leak. A search through further API endpoints did not leak any UIDs, so the issue was parked as an informative and hunting resumed.
The breakthrough came from the group feature. When requesting to join a group, appending .json to the endpoint revealed all UIDs of members within the group.
Exploitation
Step 1: leak UIDs through the group endpoint
Requesting to join a group and appending .json to the endpoint returned the UIDs of every member of that group. This turned an unguessable 32 character identifier into a harvestable value.
Step 2: resolve UIDs to PII through changeEmail
Feeding those UIDs into the changeEmail endpoint revealed all PII associated with the account, including password hashes. At this point the researcher had usernames, password hashes, UIDs and email addresses.
Step 3: change the victim's account details
The researcher reported to the VDP at this stage but continued. Cracking the password hashes would take time, and there was a faster route. The endpoint that allowed a user to change their own profile information took the UID and email address to verify which account was being changed. By substituting the UID and email address of a valid victim account, the researcher could change all information on that account, including its password.
Step 4: reflected XSS via an open redirect
As a bonus, reflected XSS was also possible through an open redirect vulnerability.
Root cause
The core mistake is an IDOR in the profile change endpoint: the account to be modified was selected by client supplied UID and email address rather than being bound to the authenticated session. Supplying another user's UID and email was enough to pass the check and act on that account.
The UID itself was long enough that brute force was impractical, and the 403 response blocked the attempt even when the user agent and IP were changed. What defeated that defence was disclosure: the group join endpoint, with .json appended, exposed the UIDs of all group members, so no guessing was needed. The changeEmail endpoint then widened the leak to full PII and password hashes. The report does not describe the server side checks behind these endpoints beyond the UID and email verification on the profile change.
Impact
An attacker with a registered SSO account could take over any account whose UID and email address they could obtain. The SSO account itself granted access to many further sites under the company. The group endpoint supplied the UIDs, and the changeEmail endpoint supplied the matching email addresses and password hashes, so the two leaks together were sufficient to target a victim. The researcher characterises the vulnerability as critical. The report does not state how many accounts or groups were affected, nor whether the issue was rewarded.
Fix
The change needed is to stop trusting client supplied identifiers for authorisation: the profile change endpoint should act only on the account bound to the authenticated session, and the group join endpoint should not return member UIDs in its JSON response.
Variants to test
- Append
.json,.xmlor similar format extensions to join, membership and listing endpoints, and check whether the response contains identifiers that the HTML view hides. A positive result is a response body listing member UIDs or other internal identifiers. - Take an identifier from one endpoint and feed it into profile, email or password change endpoints. A positive result is a response containing another user's PII or a successful change to an account you do not own.
- Test whether profile change endpoints verify the account by client supplied UID and email rather than by session. A positive result is a successful modification when both values belong to a different account.
- Attempt to brute force long identifiers and observe the rate limiting behaviour, including whether changing the user agent or source IP lifts the block. A positive result is a bypass of the 403.
- Look for open redirects on the SSO site and test whether they can be chained into reflected XSS. A positive result is script execution in the victim's browser via the redirect parameter.
What happened, in plain words
A security researcher found a way to take over any account on the Single Sign On (SSO) site of a large European media company. The company's name is withheld in the report, which calls it redacted.com. An SSO site is the one login page that lets you into many other websites run by the same organisation, so an account there is a key to more than one door.
The researcher registered a normal account on that SSO site. While exploring what the site could do, they found that the reset password page contained a hidden request (an endpoint) that handed back the account's UID, a long identifier of about 32 characters. They tried to guess other people's UIDs by brute force, which means trying many values quickly, but the server blocked them with a 403 error. Changing the browser's user agent header (a label the browser sends to say what it is) and changing the IP address did not get around the block.
Then they found a group feature. When you ask to join a group, adding .json to the end of the request made the server return a machine-readable list of every member's UID. That turned an unguessable value into something you could simply collect. Feeding those UIDs into the changeEmail endpoint returned all the personal information (PII) tied to each account, including password hashes. Finally, the endpoint that lets you edit your own profile trusted the UID and email address you sent it to decide whose account to change. Sending a victim's UID and email let the researcher change everything on that account, including the password. As a bonus, a reflected XSS was possible through an open redirect.
This is a beginner's walkthrough of the same story, in the same order, with every concept explained from zero.
Background: the pieces you need to know
Before the steps, a few everyday ideas. You do not need to install anything to follow along; a browser and a computer are enough to understand it.
- Website and server. Your browser asks a server for a page, and the server sends it back. Most of what you see is built from many small requests like this.
- API and endpoint. An API is a way for programs to talk to a server without a human clicking buttons. An endpoint is one specific address in that API, like a counter in a shop where you ask for one particular thing. When the report says "an endpoint that reflected my UID", it means one of these counters answered with the UID back to the researcher.
- UID. A unique identifier: a long string of characters that the system uses internally to name one account. Think of it as the number on a cloakroom ticket. It is not meant to be secret in the way a password is, but it should not be handed out freely either.
- Token. A short piece of text that stands in for something, such as proof that you are logged in. A session cookie is a token your browser stores and sends with each request so the server remembers who you are. The report also uses "token" loosely for the UID-like values it tried to guess.
- Brute force. Trying many possible values one after another until one works, like trying every key on a keyring. It only works when there are few possibilities.
- 403. An HTTP status code meaning "forbidden". The server understood the request but refused to carry it out. Rate limiting is when a server blocks or slows you after too many attempts.
- User agent header. A line your browser sends with every request saying what browser and operating system it is. Changing it is a common trick to look like a different client.
- IP address. The numeric address your computer uses on a network. Changing it can make requests look like they come from somewhere else.
- JSON. A text format for data, made of names and values in curly braces and square brackets. Appending
.jsonto a web address often asks the server for the raw data behind a page instead of the pretty HTML version. - PII. Personally Identifiable Information: data that identifies a real person, such as a name, email address or phone number.
- Password hash. A password is not usually stored as plain text. It is scrambled by a one-way function into a hash. You cannot read the password back from the hash, but you can guess passwords and hash the guesses to see if they match. That guessing process is called cracking.
- IDOR. Insecure Direct Object Reference. It means the server lets you name an object (an account, a file, an order) directly by its identifier, and does not check that the object belongs to you. Like a hotel that gives you a key card and lets you type any room number into the door.
- Account takeover. Getting control of someone else's account, usually by changing their password or email so the real owner is locked out.
- XSS. Cross-site scripting: tricking a site into running JavaScript that an attacker supplied, in a victim's browser. Reflected XSS means the malicious script is bounced straight back from a request, for example through a parameter in a URL.
- Open redirect. A link on a site that will send the visitor to any address supplied in the URL, even an address the site does not control.
- VDP. Vulnerability Disclosure Program: a formal way to report a security problem to a company, often without a bounty payment.
The setup
The only precondition described is being able to register an account on the SSO site. That registration gave the researcher SSO access to further sites under the company. No specific tools, versions or special roles are mentioned in the report.
Finding it
While testing functions on the SSO site, the researcher noticed that the reset password flow contained an endpoint reflecting the account UID, roughly 32 characters in length. The report is explicit that this is not a reset password takeover: the reset password page simply exposed the UID.
The first instinct was brute force: generate 1000 similar tokens and try them. That attempt was blocked with a 403, and changing the user agent header and the IP address did not bypass the block. The researcher then recalled another report where a researcher advised never giving up on seemingly hard to guess UIDs and instead looking for a place where they leak. A search through further API endpoints did not leak any UIDs, so the issue was parked as an informative and hunting resumed.
The breakthrough came from the group feature. When requesting to join a group, appending .json to the endpoint revealed all UIDs of members within the group.

Exploitation
Step 1: leak UIDs through the group endpoint
Requesting to join a group and appending .json to the endpoint returned the UIDs of every member of that group. This turned an unguessable 32 character identifier into a harvestable value.
Why this step: the researcher needed a supply of valid UIDs. Guessing was blocked, so the goal was to find a place where the site itself hands them out. The group join request is a normal feature, and adding .json asks for the data version of the response. The server answered with the member list, including the internal UIDs that the normal page would not show.
Step 2: resolve UIDs to PII through changeEmail
Feeding those UIDs into the changeEmail endpoint revealed all PII associated with the account, including password hashes. At this point the researcher had usernames, password hashes, UIDs and email addresses.
Why this step: a UID alone does not tell you who the person is or how to log in as them. The changeEmail endpoint was meant to help a logged-in user change their own email, but it accepted a UID and answered with the account's details. That converted anonymous identifiers into names, email addresses and password hashes.
Step 3: change the victim's account details
The researcher reported to the VDP at this stage but continued. Cracking the password hashes would take time, and there was a faster route. The endpoint that allowed a user to change their own profile information took the UID and email address to verify which account was being changed. By substituting the UID and email address of a valid victim account, the researcher could change all information on that account, including its password.
Why this step: cracking a hash means guessing passwords offline until one matches, which can take a long time. The profile change endpoint offered a shortcut. It decided whose account to edit from two values supplied by the client, the UID and the email address, instead of from the logged-in session. Sending a victim's pair made the server act on the victim's account, and the researcher could set a new password, which is the takeover.
Step 4: reflected XSS via an open redirect
As a bonus, reflected XSS was also possible through an open redirect vulnerability.
Why this matters: an open redirect lets a link on the trusted site send a visitor anywhere. If the destination can carry a script, the site can be made to reflect that script back to the victim's browser, which is reflected XSS. The report does not give the URL or parameter used for this.
Root cause
The core mistake is an IDOR in the profile change endpoint: the account to be modified was selected by client supplied UID and email address rather than being bound to the authenticated session. Supplying another user's UID and email was enough to pass the check and act on that account.
The UID itself was long enough that brute force was impractical, and the 403 response blocked the attempt even when the user agent and IP were changed. What defeated that defence was disclosure: the group join endpoint, with .json appended, exposed the UIDs of all group members, so no guessing was needed. The changeEmail endpoint then widened the leak to full PII and password hashes. The report does not describe the server side checks behind these endpoints beyond the UID and email verification on the profile change.
Impact
An attacker with a registered SSO account could take over any account whose UID and email address they could obtain. The SSO account itself granted access to many further sites under the company. The group endpoint supplied the UIDs, and the changeEmail endpoint supplied the matching email addresses and password hashes, so the two leaks together were sufficient to target a victim. The researcher characterises the vulnerability as critical.
Fix
The change needed is to stop trusting client supplied identifiers for authorisation: the profile change endpoint should act only on the account bound to the authenticated session, and the group join endpoint should not return member UIDs in its JSON response.
Variants to test
These are the same ideas generalised, so you can look for similar mistakes on sites you are allowed to test.
- Append
.json,.xmlor similar format extensions to join, membership and listing endpoints, and check whether the response contains identifiers that the HTML view hides. A positive result is a response body listing member UIDs or other internal identifiers. - Take an identifier from one endpoint and feed it into profile, email or password change endpoints. A positive result is a response containing another user's PII or a successful change to an account you do not own.
- Test whether profile change endpoints verify the account by client supplied UID and email rather than by session. A positive result is a successful modification when both values belong to a different account.
- Attempt to brute force long identifiers and observe the rate limiting behaviour, including whether changing the user agent or source IP lifts the block. A positive result is a bypass of the 403.
- Look for open redirects on the SSO site and test whether they can be chained into reflected XSS. A positive result is script execution in the victim's browser via the redirect parameter.
Glossary
- 403: an HTTP status code meaning the server understood the request but refused to carry it out.
- Account takeover: gaining control of another person's account, usually by changing their password or email.
- API: a way for programs to talk to a server, made of many endpoints.
- Brute force: trying many possible values until one works.
- changeEmail endpoint: the request in the report that returned account details, including PII and password hashes, when given a UID.
- Cracking: guessing passwords and hashing the guesses to match a stolen hash.
- Endpoint: one specific address in an API where a particular action or piece of data lives.
- Group feature: the site feature where a user can request to join a group; appending
.jsonto its request exposed member UIDs. - Hash: the scrambled, one-way form in which a password is stored.
- IDOR: Insecure Direct Object Reference; naming an object by its identifier without the server checking that it belongs to you.
- IP address: the numeric address a computer uses on a network.
- JSON: a text format for structured data, often requested by appending
.jsonto a web address. - Open redirect: a link on a site that will forward the visitor to any address supplied in the URL.
- PII: Personally Identifiable Information, data that identifies a real person.
- Rate limiting: blocking or slowing requests after too many attempts.
- Reflected XSS: cross-site scripting where the malicious script is bounced straight back from a request.
- Reset password flow: the pages and requests used when a user forgets their password; here it exposed the account UID.
- SSO: Single Sign On; one login that grants access to many sites.
- Token: a piece of text that stands in for something, such as proof of being logged in.
- UID: a unique identifier for an account, about 32 characters long in this report.
- User agent header: a line the browser sends describing itself.
- VDP: Vulnerability Disclosure Program; a formal channel for reporting security problems to a company.
- XSS: cross-site scripting; making a site run attacker-supplied JavaScript in a victim's browser.