mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: JsonParserTaintStep
This commit is contained in:
@@ -579,14 +579,12 @@ module TaintTracking {
|
||||
/**
|
||||
* A taint propagating data flow edge arising from JSON parsing.
|
||||
*/
|
||||
private class JsonParserTaintStep extends AdditionalTaintStep, DataFlow::CallNode {
|
||||
JsonParserCall call;
|
||||
|
||||
JsonParserTaintStep() { this = call }
|
||||
|
||||
private class JsonParserTaintStep extends SharedTaintStep {
|
||||
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
pred = call.getInput() and
|
||||
succ = call.getOutput()
|
||||
exists(JsonParserCall call |
|
||||
pred = call.getInput() and
|
||||
succ = call.getOutput()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user