mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
JS: add enumeration taint flow to Remote Property Injection query
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
import javascript
|
||||
import RemotePropertyInjectionCustomizations::RemotePropertyInjection
|
||||
private import semmle.javascript.DynamicPropertyAccess
|
||||
|
||||
/**
|
||||
* A taint-tracking configuration for reasoning about remote property injection.
|
||||
@@ -24,6 +25,10 @@ module RemotePropertyInjectionConfig implements DataFlow::ConfigSig {
|
||||
node = StringConcatenation::getRoot(any(ConstantString str).flow())
|
||||
}
|
||||
|
||||
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||
node1 = node2.(EnumeratedPropName).getSourceObject()
|
||||
}
|
||||
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user