Skip to content

Commit 285c659

Browse files
committed
add src as a potential unsafe DOM property name for js/xss-through-dom
1 parent 4882945 commit 285c659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/XssThroughDomCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module XssThroughDom {
3030
/**
3131
* Gets a DOM property name that could store user-controlled data.
3232
*/
33-
string unsafeDomPropertyName() { result = ["innerText", "textContent", "value", "name"] }
33+
string unsafeDomPropertyName() { result = ["innerText", "textContent", "value", "name", "src"] }
3434

3535
/**
3636
* A source for text from the DOM from a JQuery method call.

0 commit comments

Comments
 (0)