Stored XSS in Email Notifications on Insightly CRM
An email subject field in Insightly CRM's notification module was not sanitised, allowing an attacker to inject a stored cross-site scripting payload. When any group member viewed their inbox, the payload executed in their browser, enabling cookie theft and session hijacking.
Published on medium.com
We usually expect rich text fields to be filtered, but this time a simple email subject line turned into a full-blown stored XSS vulnerability.
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 email subject was stored and later rendered in the notification list without proper output encoding or sanitisation.
Impact
The stored XSS automatically executes when viewing notifications, affects every user in the same group, and could allow attackers to steal cookies, hijack sessions, or impersonate users, potentially leading to organisation-wide compromise.
What the attacker needed
Two accounts in the same group; email services enabled on both accounts; victim views the email list page
The fix
The issue was fixed by the Insightly team after responsible disclosure.
How it was found
- Create two accounts and add them to the same group.
- Enable email services on both accounts.
- From one account, send an email with a malicious payload as the subject.
- Log in as the second user and navigate to the email list page.
- As soon as the notifications load, the payload executes in the victim's browser session.
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.
This is a stored cross-site scripting (XSS) bug. A user could send an email with a malicious subject line, and the CRM saved that subject without cleaning it. Later, when other users in the same group opened their email list, the malicious code ran in their browsers, letting the attacker steal their login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.