Security Experts:

Connect with us

Hi, what are you looking for?



XSS Flaw in Gmail’s Dynamic Email Feature Earns Researcher $5,000

A researcher has earned $5,000 from Google for an interesting cross-site scripting (XSS) vulnerability found in the dynamic email feature added a few months ago to Gmail.

A researcher has earned $5,000 from Google for an interesting cross-site scripting (XSS) vulnerability found in the dynamic email feature added a few months ago to Gmail.

The dynamic email feature, also known as Accelerated Mobile Pages (AMP) for email or AMP4Email, enables the use of dynamic HTML content in emails, allowing users to conduct various tasks directly from within an email, such as responding to a Google Docs comment, filling out questionnaires, responding to an event invitation, and browsing a catalog. Google made the feature generally available in July.

Michał Bentkowski, chief security researcher at Securitum, analyzed AMP4Email and discovered that it can be abused for XSS attacks. While AMP4Email does include protections against these types of attacks, the researcher found a way to bypass them using a legacy feature called DOM Clobbering.

DOM Clobbering is a legacy feature in web browsers that has been known to allow XSS attacks. By using DOM Clobbering, the researcher showed how an attacker may be able to add malicious code to an email via AMP4Email and it would get executed on the victim’s side when they opened the message.

However, exploitation of the vulnerability as demonstrated by Bentkowski did not pose a serious risk as he was not able to bypass the content security policy (CSP) in AMP, which is designed to prevent XSS attacks. Furthermore, the expert told SecurityWeek that the attacker’s malicious code would get executed in a sandbox AMP domain rather than the Gmail domain.

Nevertheless, Google described the vulnerability as “awesome” and awarded the researcher a $5,000 bug bounty for his findings, which is the standard amount for XSS flaws.

“Google were still worried about this case because they didn’t want opening emails to execute arbitrary JavaScript (this could be used to send browser exploits),” Bentkowski told SecurityWeek.

The vulnerability was reported to Google on August 15 and it was patched sometime before October 12.

Related: JavaScript Library Introduced XSS Flaw in Google Search

Related: XSS Vulnerability Exposed Google Employees to Attacks

Related: Google Warns DoubleClick Customers of XSS Flaws

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Expert Insights

Related Content

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

IoT Security

Lexmark warns of a remote code execution (RCE) vulnerability impacting over 120 printer models, for which PoC code has been published.

Application Security

Drupal released updates that resolve four vulnerabilities in Drupal core and three plugins.

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Email Security

Microsoft is urging customers to install the latest Exchange Server updates and harden their environments to prevent malicious attacks.

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.


Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Application Security

A CSRF vulnerability in the source control management (SCM) service Kudu could be exploited to achieve remote code execution in multiple Azure services.