mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
add taint through the qs library
This commit is contained in:
@@ -292,6 +292,20 @@ module querystring {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A taint step through a call to [qs](https://npmjs.com/package/qs)
|
||||
*/
|
||||
private class QsStep extends TaintTracking::SharedTaintStep {
|
||||
override predicate uriStep(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(API::CallNode call |
|
||||
call = API::moduleImport("qs").getMember(["parse", "stringify"]).getACall()
|
||||
|
|
||||
pred = call.getArgument(0) and
|
||||
succ = call
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides steps for the `goog.Uri` class in the closure library.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user