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.
Published on rikeshbaniya.medium.com
In this blog, I will share how I found template injection affecting Zendesk customers with default configuration.
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
- Find a default Zendesk portal that does not require a subject field.
- Submit a ticket with a malicious template in the description and no subject.
- Observe that the template is rendered in the ticket.
- Send an email to the Zendesk support address with no subject, a malicious template in the body, and the victim in CC.
- 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.