Skip to content
Business logic Write-up Intermediate

Another “TicketTrick” story

The support ticket reference ID used by Uber's Salesforce-based helpdesk was predictable, allowing an attacker to guess a valid reference and concatenate a new email into an existing ticket. This could let an attacker send emails from a corporate address to sign up for third-party services and phish internal users.

Rojan Rijal Follow

Published on sites.google.com

Few months ago, researcher Inti De Ceukelaire disclosed a well written research blog on a vulnerability type that he named TicketTrick. With this trick, he was able to use support emails to get variety of different emails from other companies.

Rojan Rijal (@uraniumhacker), on sites.google.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. 7 min read.

Context

Uber for Business is the part of Uber that lets companies organise rides for events and for staff travelling to offices. It has its own support team for business users, separate from the regular Uber support, so the email address and the live chat are different from the consumer side.

This write-up is about a variant of the vulnerability class that Inti De Ceukelaire named TicketTrick. In the original research, support emails were used to obtain a variety of different emails from other companies, for example to create Slack and Yammer accounts. After that blog came out, reports of this bug type increased, and new variants appeared. The variant described here lives in the reference ID that Uber for Business support puts on its ticket emails, and in how Salesforce Service Cloud concatenates emails into an existing case.

Setup

The researcher does manual reconnaissance on Uber every week, looking at new changes and newly launched features. Uber for Business was one of the applications he wanted to look into. He notes that the application is heavily monitored by Uber's MIR team: when he was testing IDOR and other attacks to get information about other accounts, his account was banned right away.

While testing, his account stopped working and he could no longer sign in. He contacted the business support team through the live chat feature. Uber told him the account was suspended for security reasons and asked him to send HR documents to prove he worked for the company he had signed up with. After the chat ended, he received an email asking him to send the file over email.

To understand the reference ID, he also signed up for a trial version of Salesforce and read the Salesforce documentation and help forum articles about case concatenation and reference ID generation.

Finding it

In the email that followed the live chat, there was not only a case ID but also a reference ID. That was the detail that looked interesting.

His first thought was Zendesk, because Uber uses it for regular support (at least they used to; he could not confirm whether they still did). To understand the reference ID, he sent another email to business support, this time from a different email address. He got an automated reply that also included a reference ID, and compared the two:

Text
ref:_00Do0aYry._5001JasMIX:ref vs ref:_00Do0aYry._5001Jas9FN:ref

Most of the ticket reference is identical; only the last digit differs (MIX versus 9FN).

He later found out that the support system is Salesforce, not Zendesk, by checking the live chat logs of his previous support request: the URL of the support was linked to Salesforce's live agent feature. Reading the Salesforce documentation and comparing features, he concluded that Uber was using Salesforce Service Cloud to generate cases for its support agents.

Exploitation

Step 1: Reuse an existing reference ID from another email address

Because the reference IDs were technically not that different, he tried an attack: change the reference ID and send a new email from another email address using a reference ID that already existed:

Text
ref:_00Do0aYry._5001JasMIX:ref

Soon after this, he received an email from Business Support with the subject ID of the report that was referenced. The new email had been concatenated into the existing ticket.

He filed a vulnerability report through Uber's bug bounty program. After some investigation, Uber decided that the reference ID might be hard to brute force and closed the report as Informative. He agreed with that assessment, but the behaviour was interesting enough that he spent more time understanding how the system worked.

Step 2: Work out how the reference ID is generated

From the Salesforce documentation and help forum articles, he learned how the reference ID is built:

  1. The first part is the Salesforce organisation ID, which never changes. For Uber it is 00Do0aYry.
  2. The 5001 stays frequent throughout the case because it is the first four digits of the case ID. It is unlikely to change for every case, so an attacker does not have to worry about it either.
  3. Across his multiple tests, Jas stayed the same because it is part of the last six digits of the case ID.
  4. The only part that changed was the last three digits of the reference ID.

Step 3: Confirm that a reference ID is valid

Salesforce checks for the reference ID in two places in an email: the subject and the body. If either contains the reference ID, the support request is concatenated successfully.

In Uber's case it is even easier to tell, because Uber has an auto reply set up. If you send an email with the reference ID and you do not get the auto reply saying that a new ticket was generated, then your email has successfully concatenated with an existing ticket.

Based on his testing, he could go through all iterations of the three-character alphanumeric string and all of them would work. Jas changes to another string only after the three alphanumeric characters after it run out, so it changes only after around 46656 tickets have been filed.

With this explanation written up, he went back to Uber to show that the bug was not hard to exploit. Uber changed the state to Triaged and started investigating.

Step 4: Chain it into TicketTrick

Because the email concatenates if the reference ID appears in the subject or the body, the original TicketTrick technique applies: use corporate emails from the support platform to access internal resources. He realised he could do the same attack and sign up on any page, especially on sites where Uber might have a corporate account.

Slack did not work, because Uber does not allow signup on their corporate Slack and only workspace owners can add users. One place he was able to attack was Google, where you can sign up for an account with a custom domain. This does not give much access to internal files, because the account is not under the same GSuite, but it allows you to request file access. Since the request comes through a @uber.com email, it would be easy to phish users and gain access to internal Uber documents.

Root cause

Salesforce Service Cloud builds a case from an incoming email and concatenates a new email into an existing case when the reference ID appears in the subject or the body. The reference ID is not a secret: it is derived from the organisation ID, the first four digits of the case ID, part of the last six digits of the case ID, and a short varying suffix. Only the last three digits vary between adjacent tickets, and the preceding Jas segment changes only after around 46656 tickets have been filed. so the search space an attacker has to walk is small.

The initial triage decision rested on the assumption that the reference ID would be hard to brute force. The researcher's analysis of the ID structure, and his testing showing that all iterations of the three-digit string would work, showed that this assumption did not hold. The auto reply behaviour also gives an attacker a clean oracle: no auto reply means the email was concatenated into an existing ticket.

Impact

An attacker who can guess or enumerate a valid reference ID can inject an email into another party's existing support ticket. Combined with the TicketTrick technique, this lets the attacker obtain a corporate email address from the support platform and use it to sign up on third-party services where the target company has a corporate account.

In this case, Slack was not usable because Uber does not allow signup on its corporate Slack and only workspace owners can add users. Google was usable: signing up with a custom domain does not give access to internal files because the account is not in the same GSuite, but it allows the attacker to request file access, and because the request comes from a @uber.com address it would be easy to phish users and gain access to internal Uber documents.

Fix

Uber first closed the report as Informative. After the researcher explained the reference ID structure and showed that it was not hard to exploit, Uber triaged the bug. Uber then had two options: add a fix on their own side, which would be more complex than the bug itself, or work with Salesforce on a resolution Salesforce could make on its side. Uber chose the second route, because it would help not only Uber but any company using Salesforce's service. The report does not describe the specific change that was made.

Variants to test

  1. Look for reference IDs in automated support replies and compare two tickets opened from different addresses. A positive result is a reference ID where only a short suffix differs between tickets.
  2. Send an email with a guessed reference ID in the subject or the body. A positive result is the absence of the new-ticket auto reply, or a reply carrying the subject of the referenced ticket.
  3. Enumerate the varying suffix across its full range. A positive result is that every value in the range concatenates, and the preceding segment changes only after the suffix space is exhausted.
  4. Use the concatenated corporate address to sign up on services where the target has a corporate account. A positive result is a signup that accepts the corporate domain, or a file-access request that reaches the target's users from a corporate address.
  5. Check whether the platform restricts signup to workspace owners or domain administrators. A positive result is a service that accepts the corporate address without that restriction.

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. 16 min read.

What happened, in plain words

A security researcher spent his free time poking at Uber's websites to learn how they work. One of the parts he was curious about was Uber for Business, a version of Uber made for companies: it lets a business book rides for events, or for staff travelling to the office. Business customers get their own support team, separate from normal Uber support, with a different email address and a different live chat.

While he was testing, his own account stopped working and he could not sign in any more. He went to the business live chat to ask why. Uber told him the account had been suspended for security reasons, and asked him to send HR documents proving he worked for the company he had signed up with. After the chat, an email arrived asking him to send the file by email.

That email contained something that caught his eye: not just a case ID (a number that identifies his support conversation) but also a reference ID, a short string that looked like a code. He started wondering what that code was for and whether he could play with it.

He sent another email to business support from a different email address, got an automated reply with its own reference ID, and compared the two. They were almost identical, apart from the last digit. So he tried sending an email that carried the reference ID of his earlier ticket. It worked: his new email was added to the old ticket instead of opening a new one.

He reported this to Uber's bug bounty programme (a scheme where companies pay people for reporting security problems). Uber looked at it and decided the code would be too hard to guess, so they closed the report as Informative, meaning "thanks, but we do not consider this a security issue". He partly agreed, but he was not convinced. He spent more time reading about the software Uber was using for support, Salesforce Service Cloud, and worked out exactly how the reference ID is built. It turned out only the last three digits really change between tickets, and the preceding segment changes only after around 46656 tickets have been filed, so guessing is feasible.

He wrote all of this up and sent it back to Uber. This time they changed the report's status to Triaged (accepted as a real bug, being investigated). He then showed how the trick could be chained into the original TicketTrick technique: use the support system to send yourself an email from a company address, then use that address to sign up for other services. Slack did not work, because Uber only lets workspace owners add users. Google did work: you can create an account with a custom domain, and although that does not give access to Uber's internal files, it lets you request access to them, and the request arrives from a @uber.com address, which makes it easy to trick people into granting it.

Uber chose to fix the problem together with Salesforce rather than on their own side, so that every company using Salesforce would benefit. The report does not describe the specific change that was made.

Background: what TicketTrick is

A few months before this story, a researcher called Inti De Ceukelaire published a blog post about a type of bug he named TicketTrick. The idea is simple. Many companies run a helpdesk: you send an email to [redacted], and a ticket is created for you. The helpdesk software replies automatically from a company email address. If you can make the helpdesk send a reply to an address you control, you end up receiving an email that genuinely comes from the company's domain. You can then use that email to sign up for other services where the company has a corporate account, such as Slack or Yammer.

Think of it like a hotel reception desk. If you can convince reception to post a letter on hotel stationery to your home address, the letter looks official even though you wrote the contents yourself. The helpdesk is the reception desk, and the automatic reply is the letter on hotel stationery.

After that blog post, many people started reporting this kind of bug, and new variants appeared. The variant in this story is about the reference ID that Uber for Business puts on its ticket emails, and about how Salesforce Service Cloud joins emails into an existing case.

Setting the scene

Every week the researcher did manual reconnaissance on Uber. Reconnaissance just means looking around: opening pages, clicking through features, reading what the site sends back, without using automated scanners. It helps you learn the application, and even when you find no bug you learn something new. For a company like Uber, which ships new features almost every week, there is always something new to look at.

Uber for Business was one of the applications he really wanted to dig into. He also noticed it was heavily monitored by Uber's MIR team (their security monitoring group): when he tried IDOR attacks and other techniques to read information about other accounts, his account was banned straight away. An IDOR (Insecure Direct Object Reference) is when a website lets you change a number in a URL or request and see someone else's data, for example changing account=123 to account=124. It is like a hotel where room 124 opens with the key to room 123.

So he came back to Uber for Business to look for anything new. That is when his account stopped working and he could not sign in. To find out why, he used the live chat support feature. Business users have their own support team, so both the email address and the chat are different from normal Uber support. Uber told him the account was suspended for security reasons and asked for HR documents proving he worked for the company he had signed up with.

To understand the reference ID later on, he also signed up for a trial version of Salesforce and read Salesforce's documentation and help forum articles about how emails are joined into cases and how reference IDs are generated. A trial is a free, temporary copy of a product you can use to learn how it behaves.

Finding the interesting detail

In the email that followed the live chat, there was not only a case ID but also a reference ID. That was the detail that looked interesting.

His first thought was that Uber used Zendesk, another helpdesk product, because Uber uses it for regular support (at least they used to; he could not confirm whether they still did). To understand the reference ID, he sent another email to business support, this time from a different email address. He got an automated reply that also included a reference ID, and compared the two:

Text
ref:_00Do0aYry._5001JasMIX:ref vs ref:_00Do0aYry._5001Jas9FN:ref

What this shows: two reference IDs, one from each ticket, separated by vs (versus). Each one is wrapped in ref: at the start and :ref at the end, which is a marker the helpdesk software uses to recognise the code inside an email. Reading them side by side, almost everything is identical: _00Do0aYry._5001Jas appears in both. Only the last digit differs, MIX in the first and 9FN in the second. That is the clue: if only the last digit changes between two tickets, the code is not very random.

He later found out the support system was Salesforce, not Zendesk, by checking the live chat logs of his previous support request: the URL of the support page was linked to Salesforce's live agent feature. Reading the Salesforce documentation and comparing features, he concluded that Uber was using Salesforce Service Cloud to generate cases for its support agents. A "case" in Salesforce is simply a support ticket.

Exploitation

Step 1: Reuse an existing reference ID from another email address

Because the reference IDs were technically not that different, he tried an attack: change the reference ID and send a new email from another email address using a reference ID that already existed:

Text
ref:_00Do0aYry._5001JasMIX:ref

What this shows: the reference ID taken from his first ticket, ref:_00Do0aYry._5001JasMIX:ref, now placed in an email sent from a different address. The idea is that the helpdesk reads this code, recognises it as belonging to an existing ticket, and adds the new email to that ticket instead of creating a fresh one.

Soon after this, he received an email from Business Support with the subject ID of the report that was referenced. In other words, the new email had been joined into the existing ticket. The helpdesk had treated a stranger's email as a continuation of someone else's conversation.

He filed a vulnerability report through Uber's bug bounty programme. A bug bounty programme is a scheme where a company invites outside researchers to report security problems and rewards them for it. After some investigation, Uber decided that the reference ID might be hard to brute force and closed the report as Informative. Brute forcing means trying every possible value until one works, like trying every combination on a padlock. He agreed with that assessment, but the behaviour was interesting enough that he spent more time understanding how the system worked.

Step 2: Work out how the reference ID is generated

From the Salesforce documentation and help forum articles, he learned how the reference ID is built:

  1. The first part is the Salesforce organisation ID, which never changes. For Uber it is 00Do0aYry. An organisation ID is like a company's account number inside Salesforce: every customer of Salesforce gets one, and it stays the same forever.
  2. The 5001 stays frequent throughout the case because it is the first four digits of the case ID. It is unlikely to change for every case, so an attacker does not have to worry about it either.
  3. Across his multiple tests, Jas stayed the same because it is part of the last six digits of the case ID.
  4. The only part that changed was the last three digits of the reference ID.

So the code is not a secret random token. It is built from pieces that barely move: a fixed company ID, a chunk of the case number that stays the same for a long run of tickets, and a short three-character suffix. Think of a bus ticket number: the route code and the year are printed on every ticket, and only a short counter at the end goes up. If you know the route and the year, you only have to guess the counter.

Step 3: Confirm that a reference ID is valid

Salesforce checks for the reference ID in two places in an email: the subject and the body. If either contains the reference ID, the support request is joined to the existing case successfully. The subject is the title line of an email; the body is the text inside it.

In Uber's case it is even easier to tell, because Uber has an auto reply set up. If you send an email with the reference ID and you do not get the auto reply saying that a new ticket was generated, then your email has successfully joined an existing ticket. The auto reply acts as a signal: its absence tells you that you guessed right. In security terms this is an oracle, a way of asking the system a yes/no question and getting a reliable answer.

Based on his testing, he found that all iterations of the three-digit string would work. Jas changes to another string only after the three alphanumeric characters after it run out, so it changes only after around 46656 tickets have been filed. The preceding segment changes only after around 46656 tickets have been filed, which is small enough to try one by one.

With this explanation written up, he went back to Uber to show that the bug was not hard to exploit. Uber changed the state to Triaged and started investigating.

Step 4: Chain it into TicketTrick

Because the email is joined if the reference ID appears in the subject or the body, the original TicketTrick technique applies: use corporate emails from the support platform to access internal resources. He realised he could do the same attack and sign up on any page, especially on sites where Uber might have a corporate account.

Slack did not work, because Uber does not allow signup on their corporate Slack and only workspace owners can add users. One place he was able to attack was Google, where you can sign up for an account with a custom domain. This does not give much access to internal files, because the account is not under the same GSuite (Google's suite of business apps, where all accounts of one company live together and share files), but it allows you to request file access. Since the request comes through a @uber.com email, it would be easy to phish users and gain access to internal Uber documents. Phishing means sending a message that looks trustworthy so the recipient clicks or grants something they should not; here the trust comes from the fact that the request appears to come from a company address.

Root cause

Salesforce Service Cloud builds a case from an incoming email and joins a new email into an existing case when the reference ID appears in the subject or the body. The reference ID is not a secret: it is derived from the organisation ID, the first four digits of the case ID, part of the last six digits of the case ID, and a three-character alphanumeric suffix. Only the last three digits vary between adjacent tickets, and the preceding Jas segment changes only after around 46656 tickets have been filed, so the search space an attacker has to walk is small.

The initial triage decision rested on the assumption that the reference ID would be hard to brute force. The researcher's analysis of the ID structure, and his testing showing that all iterations of the three-digit string would work, showed that this assumption did not hold. The auto reply behaviour also gives an attacker a clean oracle: no auto reply means the email was joined into an existing ticket.

Impact

An attacker who can guess or enumerate a valid reference ID can inject an email into another party's existing support ticket. Combined with the TicketTrick technique, this lets the attacker obtain a corporate email address from the support platform and use it to sign up on third-party services where the target company has a corporate account.

In this case, Slack was not usable because Uber does not allow signup on its corporate Slack and only workspace owners can add users. Google was usable: signing up with a custom domain does not give access to internal files because the account is not in the same GSuite, but it allows the attacker to request file access, and because the request comes from a @uber.com address it would be easy to phish users and gain access to internal Uber documents.

Fix

Uber first closed the report as Informative. After the researcher explained the reference ID structure and showed that it was not hard to exploit, Uber triaged the bug. Uber then had two options: add a fix on their own side, which would be more complex than the bug itself, or work with Salesforce on a resolution Salesforce could make on its side. Uber chose the second route, because it would help not only Uber but any company using Salesforce's service.

Lessons learned

Two things stand out from a report that went from Informative to Triaged:

  1. If you believe a report should be considered valid, do not go straight back at the company saying they are wrong. Explain clearly why the report should be considered valid and why they should change their decision, inside the report itself. Many researchers believe companies do not listen to their comments, but that is never true. In this case he went away, researched Salesforce and its feature completely, then came back and explained how it could be exploited.
  2. Be patient. After he provided the necessary information, Uber replied that they would look into it internally and let him know. It was a complex bug, so he knew it would take time. He made sure not to keep asking for updates and waited about two weeks at the least before asking whether a decision had been made. That helped Uber too, because it gave them time to discuss the bug internally, understand its impact and triage it at the severity they saw as accurate.

When a report involves multiple vendors or companies, do not rush things. Even after Uber triaged the bug, they could take one of two routes: add a fix on their own side, which would be more complex than the bug itself, or talk with Salesforce and work on a resolution Salesforce could make on their side. Uber chose the second, because it would help not only Uber but any company using Salesforce's service. Once he knew Salesforce and Uber were working on a fix together, he gave them enough time instead of asking constantly for updates. As researchers, we have to understand that while it is easy for us to submit a bug and ask for updates, companies need time to work internally and make sure the patch actually fixes the bug and does not introduce new ones.

Variants to test

  1. Look for reference IDs in automated support replies and compare two tickets opened from different addresses. A positive result is a reference ID where only a short suffix differs between tickets.
  2. Send an email with a guessed reference ID in the subject or the body. A positive result is the absence of the new-ticket auto reply, or a reply carrying the subject of the referenced ticket.
  3. Enumerate the varying suffix across its full range. A positive result is that every value in the range joins the ticket, and the preceding segment changes only after the suffix space is exhausted.
  4. Use the joined corporate address to sign up on services where the target has a corporate account. A positive result is a signup that accepts the corporate domain, or a file-access request that reaches the target's users from a corporate address.
  5. Check whether the platform restricts signup to workspace owners or domain administrators. A positive result is a service that accepts the corporate address without that restriction.

Glossary

  • Uber for Business: the part of Uber that lets companies organise rides for events and for staff travelling to offices, with its own support team.
  • Bug bounty programme: a scheme where a company invites outside researchers to report security problems and rewards them for it.
  • Informative: a report status meaning the company has read the report but does not consider it a security issue.
  • Triaged: a report status meaning the company has accepted the report as a real bug and is investigating it.
  • TicketTrick: a technique, named by Inti De Ceukelaire, that uses a company's helpdesk to obtain emails from the company's own domain and use them to sign up on other services.
  • Helpdesk / support platform: the software a company uses to receive support emails and manage them as tickets.
  • Ticket / case: a single support conversation, identified by a case ID.
  • Case ID: the number that identifies a support ticket.
  • Reference ID: a short code placed in support emails so the helpdesk can recognise which ticket an email belongs to.
  • Salesforce Service Cloud: the Salesforce product that builds cases from incoming emails and joins emails into existing cases.
  • Salesforce organisation ID: the fixed identifier of a company's account inside Salesforce; for Uber it is 00Do0aYry.
  • Zendesk: another helpdesk product, which the researcher first suspected Uber was using.
  • Manual reconnaissance: looking around an application by hand, opening pages and features, without automated scanners.
  • MIR team: Uber's security monitoring group, which watches for suspicious testing on their applications.
  • IDOR (Insecure Direct Object Reference): a bug where changing an identifier in a request lets you see another user's data.
  • Brute force: trying every possible value until one works.
  • Oracle: any behaviour of a system that reliably tells an attacker whether a guess was right or wrong.
  • Auto reply: an automatic email a helpdesk sends when it creates a new ticket; its absence can signal that an email joined an existing ticket.
  • Subject: the title line of an email.
  • Body: the text inside an email.
  • Alphanumeric: made of letters and digits only.
  • Custom domain: signing up for an account using an email address on a company's own domain rather than a personal one.
  • GSuite: Google's suite of business apps, where all accounts of one company live together and share files.
  • Phishing: sending a message that looks trustworthy so the recipient clicks or grants something they should not.
  • Patch: a change that fixes a bug in software.

More by Rojan Rijal

View all

20 more disclosed reports, best first.

More from Uber

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.