Skip to content
Account takeover Write-up Intermediate

Zendesk Email Spoofing: From Support Ticket to Slack

Zendesk did not verify the sender of email replies to support tickets, so an attacker could spoof a reply from the requester and add their own address to the CC list, gaining read access to the ticket. This was chained with email-verified OAuth sign-in (Sign in with Apple) to access internal Slack workspaces at companies that routed support email into Zendesk on their main domain.

masimshahzad Follow

Published on masimshahzad.medium.com

Bug Bounty

Muhammad Asim Shahzad, on masimshahzad.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

Zendesk is a hosted helpdesk platform. Companies route their support mail into it, and Zendesk threads each inbound reply into the right ticket using a reply address built from the ticket number. Ticket numbers are sequential. Zendesk's collaboration feature makes anyone CC'd on a reply a participant in the ticket, with access to the full history.

The bug described here is a missing sender authentication check on inbound email. A reply that merely claimed to come from the requester was accepted, CC list included. Combined with email-verified OAuth sign-in, that turned a support ticket into a route into internal Slack workspaces.

The research is by Daniel (hackermondev), 15 at the time, who reports more than $50,000 in bounties from affected companies in 2024. Zendesk first rejected the report as out of scope, then fixed it and paid nothing. Zendesk confirmed a fix on 2 July 2024.

AI-generated illustration From the original on masimshahzad.medium.com

Setup

No special tooling is described. The preconditions are properties of the target rather than of an attacker's environment:

  1. The company routes support@ on its main domain into Zendesk.
  2. That same main domain gates access to Slack.
  3. The attacker knows or can guess a ticket number, which is feasible because ticket numbers are sequential.
  4. The attacker knows the requester's email address and a nearby ticket number, which together were enough to become a reader.

Finding it

The observation is that Zendesk threads replies into tickets by reply address derived from the ticket number, and that the collaboration feature grants read access to the full ticket history to anyone CC'd on a reply. The missing control is sender verification: a reply that claimed to come from the requester was accepted, including its CC list. A requester's address plus a nearby ticket number was therefore enough to become a reader of someone else's ticket.

The escalation reuses Inti De Ceukelaire's 2017 TICKETTRICK idea. Many companies route support@ on their main domain into Zendesk, and that is the same domain that gates Slack. Slack had hardened its own verification emails, but its Sign in with Apple path relied on Apple's verification mail. Apple's code landed in the support mailbox, became a ticket, and the spoofing bug exposed it: an Apple ID verified at the company domain, then accepted by Slack.

Exploitation

Step 1: Become a participant in someone else's ticket

Send a reply that claims to come from the requester, addressed to the ticket's reply address, with the attacker's own address in CC. Because the sender is not authenticated, Zendesk accepts the message and adds the CC'd address as a participant, which grants read access to the full ticket history.

Step 2: Read the ticket contents

As a participant, the attacker can read everything in the ticket. Tickets hold account details and sometimes credentials.

Step 3: Catch a verification email in the support mailbox

Apple's verification code landed in the support mailbox, became a ticket, and the spoofing bug exposed it.

Step 4: Verify the Apple ID at the company domain and sign in to Slack

An Apple ID was verified at the company domain, and Slack accepted that verified identity. Slack's Sign in with Apple path accepts that verified identity and lets the attacker into the workspace, reaching internal channels at companies that trusted their email domain for access.

Root cause

The design flaw is that inbound mail can change who is allowed to read a ticket without any check that the mail actually came from the requester. Sender verification is absent, so a claimed From address and a nearby sequential ticket number are sufficient. Existing defences did not stop it because Slack had hardened its own verification emails but delegated the Sign in with Apple path to Apple's verification mail, and that mail arrived in a mailbox whose trust boundary was broken.

Impact

An outsider could read other customers' support tickets, including account details and sometimes credentials, and then walk into the company's internal Slack. The researcher reports hundreds of vulnerable instances, and many companies disabled email collaboration as a result. The chain only reaches Slack at companies that trusted their email domain for access. The researcher reports more than $50,000 in total bounties from affected companies; Zendesk paid nothing and, per the researcher, cited a disclosure-guideline breach. Severity is not reported.

Fix

Zendesk's fix was a stricter spam score for mail threading into existing tickets, and suspension of Apple verification emails. The report does not describe the implementation further.

The author's own recommendations for Zendesk-style email trust gaps:

  1. Authenticate before you mutate. Only DMARC-aligned mail should change who can read a ticket.
  2. Use unguessable reply tokens, not sequential IDs.
  3. Keep shared mailboxes off your SSO domain, or block sign-ups with role addresses.
  4. Do not let "verified email" alone grant workspace access.

The author's illustrative handler, reproduced as published:

Python
def handle_inbound(msg):    ticket = tickets.by_reply_token(msg.to_token)          if ticket is None:        if is_account_verification_mail(msg):            return quarantine(msg, "verification_mail")        return create_ticket(msg)    auth = verify_sender(msg)                              if not auth.aligned or msg.from_addr not in ticket.participants:        return quarantine(msg, "unauthenticated_reply")        ticket.add_comment(msg)    for addr in set(msg.cc) - ticket.participants:        ticket.pending_cc.add(addr)

Variants to test

  1. Sequential reply addresses on other helpdesks. Send a reply claiming the requester's address to a nearby ticket number with your own address in CC. A positive result is that you appear as a participant and can read the history.
  2. CC-based privilege grants. On any ticketing system, check whether a CC on an inbound reply adds a reader without sender authentication. A positive result is a new participant you control.
  3. Verification mail landing in shared mailboxes. Trigger account verification for a domain whose support@ feeds a helpdesk. A positive result is the code appearing as a readable ticket.
  4. OAuth paths that trust email verification. Test sign-in methods whose verification is delegated to a third party whose mail reaches a shared mailbox. A positive result is a session on the target workspace.
  5. Role addresses on the SSO domain. Attempt sign-up with addresses such as support@ on the SSO domain. A positive result is an account that inherits the domain's trust.

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

What happened, in plain words

Zendesk is a hosted helpdesk platform: companies route their support email into it, and Zendesk threads replies into tickets. When a customer replies to a ticket notification, Zendesk uses a special reply address that contains the ticket number to file the reply under the right ticket. Ticket numbers are sequential (1, 2, 3, ...), so they are easy to guess. Zendesk also has a collaboration feature: anyone CC'd on a reply becomes a participant in the ticket and can read the entire conversation.

The bug was that Zendesk did not check whether an incoming reply really came from the person it claimed to be from. If an attacker sent a reply that claimed to come from the customer and CC'd their own address, Zendesk accepted it and added the attacker as a participant, giving them read access to the whole ticket. Because ticket numbers are sequential, an attacker who knew a customer's email address and could guess a nearby ticket number could read that customer's support ticket.

The escalation reused an idea from Inti De Ceukelaire's 2017 TICKETTRICK research. Many companies route support@ on their main domain into Zendesk, and that same domain is used to control access to Slack. Slack had strengthened its own verification emails, but its "Sign in with Apple" option relied on Apple's verification email. Apple's verification code arrived in the support mailbox, became a ticket, and the spoofing bug exposed it. An Apple ID was verified at the company domain, and Slack accepted that verified identity, letting the attacker into the company's internal Slack.

The research is by Daniel (hackermondev), who was 15 at the time. He reports more than $50,000 in bounties from affected companies in 2024. Zendesk first rejected the report as out of scope, then fixed it and paid nothing. Zendesk confirmed a fix on 2 July 2024.

AI-generated illustration From the original on masimshahzad.medium.com

AI-generated illustration

Context

Zendesk is a hosted helpdesk platform. Companies route their support mail into it, and Zendesk threads each inbound reply into the right ticket using a reply address built from the ticket number. Ticket numbers are sequential. Zendesk's collaboration feature makes anyone CC'd on a reply a participant in the ticket, with access to the full history.

The bug described here is a missing sender authentication check on inbound email. A reply that merely claimed to come from the requester was accepted, CC list included. Combined with email-verified OAuth sign-in, that turned a support ticket into a route into internal Slack workspaces.

The research is by Daniel (hackermondev), 15 at the time, who reports more than $50,000 in bounties from affected companies in 2024. Zendesk confirmed a fix on 2 July 2024.

Setup

No special tooling is described. The preconditions are properties of the target rather than of an attacker's environment:

  1. The company routes support@ on its main domain into Zendesk.
  2. That same main domain gates access to Slack.
  3. The attacker knows or can guess a ticket number, which is feasible because ticket numbers are sequential.
  4. The attacker knows the requester's email address, which is enough to claim it as the sender.

Finding it

The observation is that Zendesk threads replies into tickets by reply address derived from the ticket number, and that the collaboration feature grants read access to the full ticket history to anyone CC'd on a reply. The missing control is sender verification: a reply that claimed to come from the requester was accepted, including its CC list. A requester's address plus a nearby ticket number was therefore enough to become a reader of someone else's ticket.

The escalation reuses Inti De Ceukelaire's 2017 TICKETTRICK idea. Many companies route support@ on their main domain into Zendesk, and that is the same domain that gates Slack. Slack had hardened its own verification emails, but its Sign in with Apple path relied on Apple's verification mail. Apple's code landed in the support mailbox, became a ticket, and the spoofing bug exposed it: an Apple ID verified at the company domain, then accepted by Slack.

Exploitation

Step 1: Become a participant in someone else's ticket

Send a reply that claims to come from the requester, addressed to the ticket's reply address, with the attacker's own address in CC. Because the sender is not authenticated, Zendesk accepts the message and adds the CC'd address as a participant, which grants read access to the full ticket history.

Step 2: Read the ticket contents

As a participant, the attacker can read everything in the ticket. Tickets hold account details and sometimes credentials.

Step 3: Catch a verification email in the support mailbox

Trigger a Sign in with Apple flow for the target company's domain. Apple's verification code is delivered to the support mailbox, becomes a ticket, and is exposed by the same spoofing bug.

Step 4: Verify the Apple ID at the company domain and sign in to Slack

With the code in hand, the attacker completes Apple ID verification at the company domain. Slack's Sign in with Apple path accepts that verified identity and lets the attacker into the workspace, reaching internal channels at companies that trusted their email domain for access.

Root cause

The design flaw is that inbound mail can change who is allowed to read a ticket without any check that the mail actually came from the requester. Sender verification is absent, so a claimed From address and a nearby sequential ticket number are sufficient. Existing defences did not stop it because Slack had hardened its own verification emails but delegated the Sign in with Apple path to Apple's verification mail, and that mail arrived in a mailbox whose trust boundary was broken. The report does not describe any DMARC or SPF enforcement on the Zendesk inbound path.

Impact

An outsider could read other customers' support tickets, including account details and sometimes credentials, and then walk into the company's internal Slack. The researcher reports hundreds of vulnerable instances, and many companies disabled email collaboration as a result. The chain only reaches Slack at companies that trusted their email domain for access. The researcher reports more than $50,000 in total bounties from affected companies; Zendesk paid nothing and, per the researcher, cited a disclosure-guideline breach. Severity is not reported.

Fix

Zendesk's fix, as quoted in the researcher's disclosure, was a stricter spam score for mail threading into existing tickets, and suspension of Apple verification emails. The report does not describe the implementation further.

The author's own recommendations for Zendesk-style email trust gaps:

  1. Authenticate before you mutate. Only DMARC-aligned mail should change who can read a ticket.
  2. Use unguessable reply tokens, not sequential IDs.
  3. Keep shared mailboxes off your SSO domain, or block sign-ups with role addresses.
  4. Do not let "verified email" alone grant workspace access.

The author's illustrative handler, reproduced as published:

Python
def handle_inbound(msg):    ticket = tickets.by_reply_token(msg.to_token)          if ticket is None:        if is_account_verification_mail(msg):            return quarantine(msg, "verification_mail")        return create_ticket(msg)    auth = verify_sender(msg)                              if not auth.aligned or msg.from_addr not in ticket.participants:        return quarantine(msg, "unauthenticated_reply")        ticket.add_comment(msg)    for addr in set(msg.cc) - ticket.participants:        ticket.pending_cc.add(addr)

Variants to test

  1. Sequential reply addresses on other helpdesks. Send a reply claiming the requester's address to a nearby ticket number with your own address in CC. A positive result is that you appear as a participant and can read the history.
  2. CC-based privilege grants. On any ticketing system, check whether a CC on an inbound reply adds a reader without sender authentication. A positive result is a new participant you control.
  3. Verification mail landing in shared mailboxes. Trigger account verification for a domain whose support@ feeds a helpdesk. A positive result is the code appearing as a readable ticket.
  4. OAuth paths that trust email verification. Test sign-in methods whose verification is delegated to a third party whose mail reaches a shared mailbox. A positive result is a session on the target workspace.
  5. Role addresses on the SSO domain. Attempt sign-up with addresses such as support@ on the SSO domain. A positive result is an account that inherits the domain's trust.

Glossary

  • Zendesk: A hosted helpdesk platform that companies use to manage customer support emails and turn them into tickets.
  • Ticket: A record of a customer support conversation, containing the original message, replies, and any attachments or account details.
  • Reply address: A special email address generated by Zendesk that includes the ticket number, used to route replies back to the correct ticket.
  • Sequential ticket numbers: Ticket numbers that increase by one for each new ticket, making them predictable.
  • CC: Carbon copy; an email field that adds additional recipients who receive a copy of the message.
  • Participant: In Zendesk, anyone who is CC'd on a reply to a ticket becomes a participant and can read the full ticket history.
  • Sender authentication: The process of verifying that an email actually came from the address it claims to be from.
  • Spoofing: Pretending to be someone else, for example by forging the From address in an email.
  • OAuth: An open standard for access delegation, commonly used to let users sign in to third-party services using an account from another provider (e.g. "Sign in with Apple").
  • Sign in with Apple: An OAuth-based sign-in method that lets users authenticate using their Apple ID.
  • Slack: A messaging platform for teams, often used for internal communication.
  • Workspace: A Slack term for a company's or team's isolated instance of Slack, containing channels and users.
  • SSO (Single Sign-On): An authentication scheme that allows a user to log in with a single set of credentials to access multiple applications.
  • DMARC: An email authentication protocol that uses SPF and DKIM to verify that an email comes from the domain it claims to be from, and tells receivers what to do with failing emails.
  • SPF: Sender Policy Framework, an email validation system that checks if an email was sent from an authorised server for a domain.
  • CWE-290: Authentication Bypass by Spoofing; a weakness where an attacker can bypass authentication by spoofing a trusted entity.
  • CWE-345: Insufficient Verification of Data Authenticity; a weakness where data is accepted without verifying its origin or integrity.
  • CVE: Common Vulnerabilities and Exposures; a unique identifier for publicly known security vulnerabilities.
  • Bounty: A financial reward paid by a company or program for reporting a security vulnerability.
  • Out of scope: A term in bug bounty programs indicating that a particular vulnerability or asset is not eligible for rewards.
  • TICKETTRICK: A 2017 research by Inti De Ceukelaire that exploited helpdesk systems to gain access to internal systems via email spoofing.
  • Quarantine: To isolate or hold a suspicious email or message for further inspection, preventing it from being processed normally.
  • Handler: A function or piece of code that processes incoming messages or events.
  • Reply token: A unique, unguessable string used in a reply address to identify the ticket, instead of a sequential number.
  • Role address: An email address that represents a function or department (e.g. support@) rather than an individual person.
  • Session: A period of interaction between a user and a system, often maintained by a cookie or token after authentication.

More by masimshahzad

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.