mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
JS: Comment about manually applying taint steps
This commit is contained in:
@@ -43,6 +43,8 @@ module SecondOrderCommandInjectionConfig implements DataFlow::StateConfigSig {
|
||||
) {
|
||||
TaintedObject::step(src, trg, inlbl, outlbl)
|
||||
or
|
||||
// We're not using a taint-tracking config because taint steps would then apply to all flow states.
|
||||
// So we use a plain data flow config and manually add the default taint steps.
|
||||
inlbl.isTaint() and
|
||||
TaintTracking::defaultTaintStep(src, trg) and
|
||||
inlbl = outlbl
|
||||
|
||||
@@ -39,6 +39,8 @@ module TemplateObjectInjectionConfig implements DataFlow::StateConfigSig {
|
||||
) {
|
||||
TaintedObject::step(src, trg, inlbl, outlbl)
|
||||
or
|
||||
// We're not using a taint-tracking config because taint steps would then apply to all flow states.
|
||||
// So we use a plain data flow config and manually add the default taint steps.
|
||||
inlbl.isTaint() and
|
||||
TaintTracking::defaultTaintStep(src, trg) and
|
||||
inlbl = outlbl
|
||||
|
||||
Reference in New Issue
Block a user