CodeQL library for JavaScript
codeql/javascript-all 0.6.1 ( changelog , source )
Search

Predicate XssThroughDom :: unsafeAttributeName

Gets an attribute name that could store user-controlled data.

Attributes such as “id”, “href”, and “src” are often used as input to HTML. However, they are either rarely controlable by a user, or already a sink for other XSS vulnerabilities. Such attributes are therefore ignored.

Import path

import semmle.javascript.security.dataflow.XssThroughDomCustomizations
string unsafeAttributeName ( )