File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
javascript/ql/src/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module UnsafeHtmlConstruction {
38
38
39
39
/**
40
40
* A sink for unsafe HTML constructed from library input.
41
- * This sink somehow transforms its input into a value that can cause XSS if it ends up in a XSS sink.
41
+ * This sink transforms its input into a value that can cause XSS if it ends up in a XSS sink.
42
42
*/
43
43
abstract class Sink extends DataFlow:: Node {
44
44
/**
@@ -165,6 +165,7 @@ module UnsafeHtmlConstruction {
165
165
MarkdownSink ( ) {
166
166
exists ( DataFlow:: Node pred , DataFlow:: Node succ , Markdown:: MarkdownStep step |
167
167
step .step ( pred , succ ) and
168
+ step .preservesHtml ( ) and
168
169
this = pred and
169
170
succ = isUsedInXssSink ( xssSink )
170
171
)
@@ -176,7 +177,7 @@ module UnsafeHtmlConstruction {
176
177
/**
177
178
* Holds if there is a path without unmatched return steps from `source` to `sink`.
178
179
*/
179
- predicate requireMatchedReturn ( DataFlow:: SourcePathNode source , DataFlow:: SinkPathNode sink ) {
180
+ predicate hasPathWithoutUnmatchedReturn ( DataFlow:: SourcePathNode source , DataFlow:: SinkPathNode sink ) {
180
181
exists ( DataFlow:: MidPathNode mid |
181
182
source .getASuccessor * ( ) = mid and
182
183
sink = mid .getASuccessor ( ) and
You can’t perform that action at this time.
0 commit comments