Turning List-Unsubscribe into an SSRF/XSS Gadget
The List-Unsubscribe email header can be abused in some email clients to trigger XSS and SSRF. The text cites Horde Webmail and Nextcloud Mail App as real-world examples of these risks.
security.lauritz-holtmann.de
Published on security.lauritz-holtmann.de
The List-Unsubscribe SMTP header is standardized but often overlooked during security assessments. It allows email clients to provide an easy way for end-users to unsubscribe from mailing lists.
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 mail clients process the List-Unsubscribe header value without properly validating or sanitising it before using it in a request or rendering context.
Impact
An attacker could use a crafted email header to cause script execution or server-side requests in affected mail clients, though the text gives no exploitation detail.
What the attacker needed
Attacker can send email to victim; victim uses affected mail client
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.
Emails can carry hidden instructions called headers, and one of them, List-Unsubscribe, tells the mail program where to send an unsubscribe request. If the mail program trusts that address too much, an attacker who sends an email can make the program run harmful script or fetch an internal address. The text says this happened in two mail apps but gives no technical detail.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.