Outlook for Android XSS
A cross-site scripting vulnerability in Outlook for Android allowed an attacker to run JavaScript by sending an email containing a phone number that matched a regular expression, which was then converted into a link without escaping. An attacker could execute code on the victim's device when the email was opened.
cyberark.com
Published on cyberark.com
Outlook for Android is the most popular e-mail application for organizations. CyberArk Labs discovered a cross-site scripting vulnerability that allows an attacker to run JavaScript code through e-mail messages.
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 phone-number linkification function replaced the message content with an unescaped version after converting digits to a link.
What the attacker needed
Victim uses Outlook for Android; victim opens the malicious email
How it was found
- Send an email containing a payload with a phone number that matches the regular expression.
- The victim opens the email in Outlook for Android.
- The app's emailRenderer script linkifies the phone number and inserts the unescaped content.
- The injected JavaScript executes, for example vibrating the phone or loading a remote script.
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.
Cross-site scripting (XSS) is a flaw where a program inserts user-supplied text into a web page without properly escaping it, so the text is treated as code. Here, the email app turned a phone number into a clickable link but forgot to escape the surrounding text, letting an attacker hide JavaScript in an email. When the victim opened the email, that script ran inside the app.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.