Webmail CSS Attacks Expose a New Risk for AI-Powered Email Tools
A researcher showed that email styling code can steal passwords and manipulate AI tools across several major webmail services.
Overview
A researcher named Gareth Heyes showed that standard styling code can be used to steal passwords and hijack user sessionsAn active logged-in period of communication between a user or device and a server in popular email services. This affects users of Outlook, Gmail, Fastmail, Proton Mail, Yahoo Mail, and AOL Mail because these platforms allow styling code to run inside their trusted interfaces. The core issue is that email clients assume styling code cannot reach outside the message, but Heyes found ways to break that assumption. He used two methods: abusing features the webmail already permits or exploiting gaps between what the sanitizerA software filter or compiler check that cleans untrusted input or catches memory bugs during testing approves and what the browser actually renders. In one specific attack on Outlook, the code disguised a dropdown menu as a password field to capture what the victim typed in real time. This means that ordinary people using these email services are at risk of having their accounts taken over or their data stolen simply by opening a malicious email.
Terms in this story
- sessions
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- sanitizer
- A software filter or compiler check that cleans untrusted input or catches memory bugs during testing. Web apps run user comments through an HTML sanitizer to strip out script tags, and developers compile system programs with an address sanitizer to catch buffer overflows before release.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- attack chains
- The full sequence of steps an intruder takes from initial break-in to final goal. Incident reports map out the full attack chain, such as a phishing email that drops a loader, steals domain credentials, and finally deploys ransomware across servers.
- spoof
- Forging the sender address, caller ID, or domain name on a message to impersonate someone else. Criminals use spoofing to make a phone call display a bank's real customer service number or make an email header look like it came from a company executive.
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
- DOM
- The structured tree of objects a web browser builds in memory to represent a web page. Web scripts read and edit the DOM to update a page without reloading it, and cross-site scripting in the DOM happens when a script writes untrusted input straight into that tree.
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- hex
- Base 16, where each byte is written as 2 characters from 0 to 9 and a to f. Security tools display file hashes, memory addresses, and raw network packets in hex because every byte fits neatly into a pair of readable characters. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Security Affairs website. Cite the article, not this page.
Read the full article on Security Affairs (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
...demonstrated something that should make every webmail team a little nervous... Found by reading the article; these words are close to its own - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......attacks on major webmail services can steal credentials, hijack sessions and manipulate AI tools..." Found in the opening sentences - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"......look nice, can be weaponized to steal passwords, hijack sessions, and..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......CSS Attacks Expose a New Risk for AI-Powered Email Tools..." Found in the headline
How a story is connected to the course, and every objective, week and job role