Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5ec26d commit ef52c46Copy full SHA for ef52c46
1 file changed
javascript/ql/src/semmle/javascript/security/TaintedObject.qll
@@ -63,6 +63,14 @@ module TaintedObject {
63
src = call.getASourceOperand() and
64
trg = call.getDestinationOperand().getALocalSource()
65
)
66
+ or
67
+ // Spreading into an object preserves deep object taint: `p -> { ...p }`
68
+ inlbl = label() and
69
+ outlbl = label() and
70
+ exists(ObjectLiteralNode obj |
71
+ src = obj.getASpreadProperty() and
72
+ trg = obj
73
+ )
74
}
75
76
/**
0 commit comments