Skip to content
Business logic Write-up Intermediate

DOS attack in Yahoo, How i was able to deny new users from service?

The programmatic user creation feature allowed changing the email to any address, which then blocked that email from being used for normal signup or password reset. An attacker could permanently deny service to any new user by pre-registering their email address.

Mostafa Mamdoh Follow

Published on hector0x.medium.com

Bounty$1,000 View original

Mostafa Mamdoh

Mostafa Mamdoh, on hector0x.medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Flurry is an American mobile analytics, monetisation and advertising company, and a subsidiary of Yahoo. The service has a sign-up flow at https://login.flurry.com/signup and an administration area at https://dev.flurry.com/admin/users that exposes a Sub-Users feature.

That feature does two things:

  • It lets an account invite a sub-user with customised permissions.
  • It lets an account create a programmatic user with API permissions.

Programmatic users are meant to be used only through API access tokens, and those tokens are generated through the account that created the user. Every programmatic user is issued a random email address in the @programmatic.flurry.com domain, and the report notes that programmatic user emails are restricted to that domain only.

The write-up describes how that restriction was bypassed to register arbitrary email addresses as programmatic users, and how the resulting state could be used to deny service to new users.

Setup

No special tooling or privileges were needed beyond a normal account. The researcher:

  1. Created an account regularly through https://login.flurry.com/signup.
  2. Found the Sub-Users feature at https://dev.flurry.com/admin/users.
  3. Created a programmatic user, which returned an access token and a random address in the form [redacted].
  4. Used Burp to intercept the request that creates the programmatic user.

Finding it

The programmatic user creation request is a JSON Patch style PATCH to ecto.flurry.com, carrying the new user object and a membership object. The email address is one of the attributes in that payload, and the server is supposed to constrain it to the @programmatic.flurry.com domain. Because the address is supplied by the client inside the request body, it is a natural candidate for tampering: change the value and see whether the server re-validates the domain.

Exploitation

Step 1: capture the programmatic user creation request

With Burp intercepting, the request to create a programmatic user looked like this:

HTTP
PATCH /pulse/v1/ HTTP/2Host: ecto.flurry.com[{“op”:”add”,”path”:”user”,”value”:{“type”:”user”,”id”:”5b1b8f87–9d79–4516–8576-f77e4411a46a”,”attributes”:{“email”:”354732_bd6adce9–2118–4fb9-a043–[redacted]”,”programmatic”:”true”}}},{“op”:”add”,”path”:”user/5b1b8f87–9d79–4516–8576-f77e4411a46a/memberships”,”value”:{“type”:”membership”,”id”:”f3ca1d13–12d1–4b0c-8faa-fc14ffb499a3",”attributes”:{“role”:”NONE”,”title”:*",”productRoles”:{“Analytics”:”VIEWER”,”AppSpot”:”VIEWER”,”AdAnalytics”:”NONE”,”RawDataDownload”:”DEV”,”GDPRDataSubjectRights”:”NONE”}},”relationships”:{“company”:{“data”:[{“type”:”company”,”id”:”354732"}]},”user”:{“data”:[{“type”:”user”,”id”:”5b1b8f87–9d79–4516–8576-f77e4411a46a”}]}}}}]

The payload contains two operations. The first adds a user object whose attributes.email is the generated @programmatic.flurry.com address and whose programmatic flag is "true". The second adds a membership for that user, with a role of NONE and product roles of VIEWER for Analytics and AppSpot, DEV for RawDataDownload, and NONE for AdAnalytics and GDPRDataSubjectRights, tied to the company and the user by id.

Step 2: change the email attribute

The researcher changed the value of email to an address such as [redacted] and replayed the request. The server accepted it:

HTTP
HTTP/2 200 OK[{“data”:{“type”:”user”,”id”:”482035",”attributes”:{“email”:”[redacted]”,”firstName”:null,”lastName”:null,”programmatic”:true},”relationships”:{“memberships”:{“data”:[{“type”:”membership”,”id”:”547510"}]}}}},{“data”:{“type”:”membership”,”id”:”547510",”attributes”:{“creationDate”:null,”limitAccess”:false,”limitedAccessProjects”:[],”primaryMembership”:false,”productRoles”:{“Analytics”:”VIEWER”,”AppSpot”:”VIEWER”,”AdAnalytics”:”NONE”,”RawDataDownload”:”DEV”,”GDPRDataSubjectRights”:”NONE”},”role”:”NONE”,”title”:”Cairo programmatic 90477"},”relationships”:{“company”:{“data”:{“type”:”company”,”id”:”354732"}},”user”:{“data”:{“type”:”user”,”id”:”482035"}}}}}]

The response is a 200 OK and echoes the created user with email set to [redacted] and programmatic set to true, plus the membership object. In other words, an arbitrary address had been registered as a programmatic user.

Step 3: observe the effect on normal sign-up

With [redacted] now taken by a programmatic user, the researcher tried to create an account normally with that address. The sign-up flow returned Email already exists. A password reset was attempted; after changing the password, the login returned Invalid email or password.

The account therefore could not be used through the normal sign-up and login path. The only way to use it was through an access token, and those tokens are mainly generated by another account.

Step 4: repeat against corporate addresses

The same tampering was repeated with addresses such as [administrator-admin-support-test-contact-it-security]@flurry.com. The researcher reports being able to deny a large common list of emails belonging to @flurry.com and @yahoo.com from using the service, again leaving the access token path as the only option.

Root cause

The server trusted the email attribute supplied in the JSON Patch body when creating a programmatic user. The domain restriction to @programmatic.flurry.com was not enforced on the submitted value, so a client could substitute any address. Because the created record is a real user record with programmatic: true, the normal sign-up flow then treats that address as already registered, while the normal login flow cannot authenticate it. The report does not describe the server-side code, so the exact location of the missing check is not stated.

Impact

An authenticated user with access to the Sub-Users feature could pre-register arbitrary email addresses as programmatic users. Any address so registered could no longer be used to sign up normally: sign-up reports Email already exists, and password reset followed by login reports Invalid email or password. The researcher states this allowed denial of the service permanently for any possible newly created accounts, and demonstrated it against a list of common @flurry.com and @yahoo.com addresses. The affected accounts could still be used through an access token generated by another account.

The report does not give a severity rating or CVSS score.

Fix

Variants to test

  1. Tamper with generated identifiers in bulk-creation endpoints. Create an object whose identifier or address is normally generated server-side, then substitute your own value in the request body. A positive result is a 200 response echoing your value instead of the generated one.
  2. Check domain or tenant restrictions on every attribute. Where a field is documented as restricted to a domain, suffix or namespace, submit a value outside it and look for acceptance in the response body.
  3. Test the sign-up and login flows after creating a shadow record. If an object can be created with an arbitrary address, try signing up with that address and observe whether the flow reports it as already existing while login fails.
  4. Try JSON Patch operations against other collections. The same add operation pattern may apply to other resources; a positive result is a created object with attacker-chosen attributes.
  5. Check whether the created record can be deleted or modified by the creator. If not, the denial is persistent; if it can, the impact is limited to the window before cleanup.

Timeline

  • 17 December 2019: bug reported
  • 21 December 2019: bug triaged
  • 28 January 2020: bug resolved
  • 12 February 2020: bounty rewarded, 1000 USD

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Mostafa Mamdoh found a way to block people from signing up for Flurry, a mobile analytics and advertising service owned by Yahoo. Flurry lets an account owner create special helper accounts called sub-users. One kind of sub-user is a "programmatic user", which is meant to be used only by software through an access token, and which is supposed to always get an email address ending in @programmatic.flurry.com.

The researcher found that the restriction could be bypassed. By editing one field in the request that creates the programmatic user, he could give it any email address he liked, such as a normal Gmail address or a corporate @flurry.com address. Once an address was taken this way, a real person could no longer sign up with it: the sign-up page said the email already existed, and logging in did not work either. In effect, a list of addresses could be locked out of the service permanently. He reported it on 17 December 2019, it was fixed on 28 January 2020, and he was paid 1000 USD on 12 February 2020.

Background: what Flurry is and what the feature does

Flurry is an American mobile analytics, monetisation and advertising company, and a subsidiary of Yahoo. "Analytics" here means collecting data about how people use mobile apps; "monetisation" means making money from those apps, for example through ads.

Flurry has two web addresses that matter for this story:

  • https://login.flurry.com/signup, the page where anyone creates a normal account.
  • https://dev.flurry.com/admin/users, an administration page for managing the users attached to an account.

On that administration page there is a feature called Sub-Users. It does two things:

  1. It lets an account invite a sub-user, a helper account, and choose exactly what that helper is allowed to do (its permissions).
  2. It lets an account create a programmatic user with API permissions.

Two terms need explaining before going further.

API stands for Application Programming Interface. Think of it as a service counter built for machines instead of people: a program sends a structured request to a specific address, and the server sends back a structured answer, usually in a format called JSON (text made of labelled values, like "email": "[redacted]"). Where a human clicks buttons on a website, a program talks to the API directly.

Access token is a long random string that acts like a temporary pass. Instead of typing a username and password every time, a program presents the token and the server accepts it as proof of identity. It is similar to a wristband you get at an event: show it at the door and you get in, without anyone checking your ID again.

Programmatic users are meant to be used only through the API, with an access token, and those tokens are generated through the account that created the user. Every programmatic user is issued a random email address in the @programmatic.flurry.com domain, and the report notes that programmatic user emails are restricted to that domain only. A "domain" is the part after the @ sign, the part that says which mail system an address belongs to.

The write-up describes how that restriction was bypassed so that arbitrary email addresses could be registered as programmatic users, and how the resulting state could be used to deny service to new users.

Setting up

No special tools or privileges were needed beyond a normal account. The researcher:

  1. Created an account in the ordinary way through https://login.flurry.com/signup.
  2. Found the Sub-Users feature at https://dev.flurry.com/admin/users.
  3. Created a programmatic user, which returned an access token and a random address in the form [redacted].
  4. Used Burp to intercept the request that creates the programmatic user.

Burp (Burp Suite) is a tool that sits between your browser and the website, like a post office that opens every letter before forwarding it. It lets you read a request after the browser has built it, change parts of it, and send it on again. This is how you test whether the server trusts what the browser sends.

Finding it

The request that creates a programmatic user is a PATCH request to ecto.flurry.com. PATCH is one of the standard HTTP methods, the verbs a browser uses to talk to a server: GET asks for something, POST usually creates something, and PATCH means "change part of an existing thing". The body of this request is written in a style called JSON Patch: a list of operations, each saying what to do (op), where to do it (path) and with what (value).

The request carries two objects: the new user, and a membership that links that user to a company. The email address is one of the attributes inside the user object. The server is supposed to constrain it to the @programmatic.flurry.com domain. Because the address is supplied by the client inside the request body, it is a natural candidate for tampering: change the value and see whether the server checks the domain again.

This is a trust boundary problem: the server accepts a value from the user that it should have validated itself. The everyday comparison is a form where you write your own reference number instead of being given one, and the clerk behind the desk never checks it against the list.

Exploitation

Step 1: capture the programmatic user creation request

With Burp intercepting, the request to create a programmatic user looked like this:

HTTP
PATCH /pulse/v1/ HTTP/2Host: ecto.flurry.com[{“op”:”add”,”path”:”user”,”value”:{“type”:”user”,”id”:”5b1b8f87–9d79–4516–8576-f77e4411a46a”,”attributes”:{“email”:”354732_bd6adce9–2118–4fb9-a043–[redacted]”,”programmatic”:”true”}}},{“op”:”add”,”path”:”user/5b1b8f87–9d79–4516–8576-f77e4411a46a/memberships”,”value”:{“type”:”membership”,”id”:”f3ca1d13–12d1–4b0c-8faa-fc14ffb499a3",”attributes”:{“role”:”NONE”,”title”:*",”productRoles”:{“Analytics”:”VIEWER”,”AppSpot”:”VIEWER”,”AdAnalytics”:”NONE”,”RawDataDownload”:”DEV”,”GDPRDataSubjectRights”:”NONE”}},”relationships”:{“company”:{“data”:[{“type”:”company”,”id”:”354732"}]},”user”:{“data”:[{“type”:”user”,”id”:”5b1b8f87–9d79–4516–8576-f77e4411a46a”}]}}}}]

Line by line, in plain words:

  • PATCH /pulse/v1/ HTTP/2Host: ecto.flurry.com is the start of the request: the method is PATCH, the path on the server is /pulse/v1/, the protocol version is HTTP/2, and the host (the server being addressed) is ecto.flurry.com. In the captured text the host line runs into the body, which is how it was pasted in the write-up.
  • The body is a list with two entries, each wrapped in { } and separated by a comma.
  • The first entry has "op":"add", meaning "add something", and "path":"user", meaning "to the collection of users". Its value is the new user object.
  • Inside that user object, "type":"user" says what kind of object it is, "id":"5b1b8f87–9d79–4516–8576-f77e4411a46a" is the unique identifier of this user, and "attributes" holds the details.
  • "email":"354732_bd6adce9–2118–4fb9-a043–[redacted]" is the generated address: a random-looking local part, then the restricted domain.
  • "programmatic":"true" marks this user as a programmatic one, the kind meant for API use only.
  • The second entry adds a membership at the path user/5b1b8f87–9d79–4516–8576-f77e4411a46a/memberships, so the membership is attached to that same user id.
  • The membership has its own id, f3ca1d13–12d1–4b0c-8faa-fc14ffb499a3, and attributes: "role":"NONE", a title, and a set of productRoles that say what the user may do in each part of the product. Analytics and AppSpot are VIEWER (can look), RawDataDownload is DEV, and AdAnalytics and GDPRDataSubjectRights are NONE (no access).
  • Finally, relationships ties the membership to a company with id 354732 and to the user with the id above. Think of it as a membership card that names both the club and the member.

Step 2: change the email attribute

The researcher changed the value of email to an address such as [redacted] and replayed the request. The server accepted it:

HTTP
HTTP/2 200 OK[{“data”:{“type”:”user”,”id”:”482035",”attributes”:{“email”:”[redacted]”,”firstName”:null,”lastName”:null,”programmatic”:true},”relationships”:{“memberships”:{“data”:[{“type”:”membership”,”id”:”547510"}]}}}},{“data”:{“type”:”membership”,”id”:”547510",”attributes”:{“creationDate”:null,”limitAccess”:false,”limitedAccessProjects”:[],”primaryMembership”:false,”productRoles”:{“Analytics”:”VIEWER”,”AppSpot”:”VIEWER”,”AdAnalytics”:”NONE”,”RawDataDownload”:”DEV”,”GDPRDataSubjectRights”:”NONE”},”role”:”NONE”,”title”:”Cairo programmatic 90477"},”relationships”:{“company”:{“data”:{“type”:”company”,”id”:”354732"}},”user”:{“data”:{“type”:”user”,”id”:”482035"}}}}}]

Line by line:

  • HTTP/2 200 OK is the server's answer: the request succeeded. 200 is the standard code for "fine, done".
  • The body is again a list of two objects, the user and the membership, this time as the server stored them.
  • The user object has a new id, 482035, and its attributes show "email":"[redacted]" and "programmatic":true. The arbitrary address was accepted.
  • firstName and lastName are null, meaning empty, because none were supplied.
  • The user's relationships point to a membership with id 547510.
  • The membership object repeats the same product roles as before, with role NONE and the title Cairo programmatic 90477.
  • Its relationships point back to the company 354732 and the user 482035.

In other words, an arbitrary address had been registered as a programmatic user. The server echoed back the value that was sent.

Step 3: observe the effect on normal sign-up

With [redacted] now taken by a programmatic user, the researcher tried to create an account normally with that address. The sign-up flow returned Email already exists. A password reset was attempted; after changing the password, the login returned Invalid email or password.

The account therefore could not be used through the normal sign-up and login path. The only way to use it was through an access token, and those tokens are mainly generated by another account. The comparison is a cloakroom that hangs a coat on a hook and then refuses to give it back: the address is occupied, but the person who owns it cannot get in.

Step 4: repeat against corporate addresses

The same tampering was repeated with addresses such as [administrator-admin-support-test-contact-it-security]@flurry.com. The researcher reports being able to deny a large common list of emails belonging to @flurry.com and @yahoo.com from using the service, again leaving the access token path as the only option.

Root cause

The server trusted the email attribute supplied in the JSON Patch body when creating a programmatic user. The domain restriction to @programmatic.flurry.com was not enforced on the submitted value, so a client could substitute any address. Because the created record is a real user record with programmatic: true, the normal sign-up flow then treats that address as already registered, while the normal login flow cannot authenticate it. The report does not describe the server-side code, so the exact location of the missing check is not stated.

Impact

An authenticated user with access to the Sub-Users feature could pre-register arbitrary email addresses as programmatic users. Any address so registered could no longer be used to sign up normally: sign-up reports Email already exists, and password reset followed by login reports Invalid email or password. The researcher states this allowed denial of the service permanently for any possible newly created accounts, and demonstrated it against a list of common @flurry.com and @yahoo.com addresses. The affected accounts could still be used through an access token generated by another account.

The report does not give a severity rating or CVSS score. CVSS is a standard scoring system for how serious a vulnerability is; it is simply not present here.

Fix

Variants to test

  1. Tamper with generated identifiers in bulk-creation endpoints. Create an object whose identifier or address is normally generated server-side, then substitute your own value in the request body. A positive result is a 200 response echoing your value instead of the generated one.
  2. Check domain or tenant restrictions on every attribute. Where a field is documented as restricted to a domain, suffix or namespace, submit a value outside it and look for acceptance in the response body.
  3. Test the sign-up and login flows after creating a shadow record. If an object can be created with an arbitrary address, try signing up with that address and observe whether the flow reports it as already existing while login fails.
  4. Try JSON Patch operations against other collections. The same add operation pattern may apply to other resources; a positive result is a created object with attacker-chosen attributes.
  5. Check whether the created record can be deleted or modified by the creator. If not, the denial is persistent; if it can, the impact is limited to the window before cleanup.

Timeline

  • 17 December 2019: bug reported
  • 21 December 2019: bug triaged
  • 28 January 2020: bug resolved
  • 12 February 2020: bounty rewarded, 1000 USD

Glossary

  • API: Application Programming Interface, a way for programs to talk to a service by sending structured requests and receiving structured answers.
  • Access token: a long random string that proves identity to an API, used instead of a username and password.
  • Attribute: a named detail inside an object, such as email or programmatic.
  • Burp (Burp Suite): a tool that intercepts traffic between a browser and a website so requests can be read, edited and replayed.
  • CVSS: a standard scoring system for the severity of a vulnerability; not given in this report.
  • Denial of service (DoS): making a service unusable for its intended users, here by occupying email addresses so nobody can register them.
  • Domain: the part of an email address after the @ sign, identifying the mail system it belongs to.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • HTTP method: the verb of a request, such as GET, POST or PATCH.
  • HTTP/2: a version of HTTP.
  • JSON: a text format for structured data, made of labelled values in braces and brackets.
  • JSON Patch: a way of describing changes to a JSON document as a list of operations with op, path and value.
  • Membership: an object that links a user to a company and defines what the user may do there.
  • Permissions: the specific actions an account is allowed to perform.
  • Programmatic user: an account meant to be used only by software through an API access token.
  • Request: the message a browser or program sends to a server.
  • Response: the message a server sends back.
  • Root cause: the underlying reason a vulnerability exists.
  • Sub-user: a helper account created under a main account, with its own permissions.
  • Tampering: changing a value in a request before sending it, to see whether the server accepts it.
  • Trust boundary: the line between data a system controls and data a user supplies; bugs happen when the system trusts the wrong side.
  • 200 OK: the HTTP status code meaning the request succeeded.

More by Mostafa Mamdoh

View all

4 more disclosed reports, best first.

More from Yahoo! / Verizon Media

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.