Skip to content
Business logic Write-up Intermediate

Tale of Zendesk 0 day and a potential 25K $ bounty

Zendesk's default support portal sanitised the subject field but not the description, and when a ticket was created without a subject, the description was used as the subject without sanitisation, allowing template injection. An attacker could create a ticket with a victim in CC and exfiltrate the victim's name, phone, role, custom fields and other data.

Rikesh Baniya Follow

Published on rikeshbaniya.medium.com

In this blog, I will share how I found template injection affecting Zendesk customers with default configuration.

Rikesh Baniya, on rikeshbaniya.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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the description-to-subject fallback copied unsanitised user input into the subject field, bypassing the sanitisation applied to the original subject.

Impact

An attacker could exfiltrate the CCed user's name, phone, role, custom fields and internal notes, potentially including addresses, billing information and PII, but only against programs that allowed email CCing and did not use a static subject line.

What the attacker needed

Default Zendesk portal; email CCing enabled; no static subject line; victim's email address

The fix

Zendesk fixed the issue, and programs could also mitigate by disabling email CCing for end users or using a static subject line.

How it was found

  1. Find a default Zendesk portal that does not require a subject field.
  2. Submit a ticket with a malicious template in the description and no subject.
  3. Observe that the template is rendered in the ticket.
  4. Send an email to the Zendesk support address with no subject, a malicious template in the body, and the victim in CC.
  5. Receive an email reply showing the rendered template with the victim's data.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Zendesk is a helpdesk system that lets companies manage support tickets. It uses placeholders like {{ticket.ccs[0].name}} to fill in details about people copied on a ticket. The bug was that the subject line was cleaned of dangerous placeholders, but if you left the subject empty, the description was copied into the subject without cleaning, so your placeholders ran and revealed the CCed person's private details.

What is Business logic?

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

More by Rikesh Baniya

View all

1 more disclosed report, best first.

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.