mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
add domNode.innerHTML += sink as a DOM sink
This commit is contained in:
committed by
erik-krogh
parent
74a79f8622
commit
e387ebaedd
@@ -208,7 +208,11 @@ class DomPropertyWrite extends DataFlow::Node instanceof DataFlow::PropWrite {
|
||||
/**
|
||||
* Gets the data flow node corresponding to the value being written.
|
||||
*/
|
||||
DataFlow::Node getRhs() { result = super.getRhs() }
|
||||
DataFlow::Node getRhs() {
|
||||
result = super.getRhs()
|
||||
or
|
||||
result = super.getWriteNode().(AssignAddExpr).getRhs().flow()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user