New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 919107 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Trusted Types allow .setAttribute('onclick', 'xss')

Project Member Reported by jakubvrana@google.com, Jan 4

Issue description

Chrome Version: 71.0.3578.98 (Official Build) (64-bit)
OS: gLinux

What steps will reproduce the problem?
(1) Enforce Trusted Types.
(2) div.setAttribute('onclick', 'alert(1)').

What is the expected result?
Error: This document requires a Trusted Type assignment.

What happens instead?
Sets the handler.

img.setAttribute('src', 'a.jpg') throws the error as expected.

 
Status: Started (was: Assigned)
Cc: koto@google.com
Status: Fixed (was: Started)

Sign in to add a comment