mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
JS: fixup
This commit is contained in:
@@ -132,9 +132,7 @@ module Fastify {
|
||||
string kind;
|
||||
|
||||
RequestInputAccess() {
|
||||
exists(DataFlow::PropRead read, string name |
|
||||
this = read and read = rh.getARequestSource().ref().getAPropertyRead(name)
|
||||
|
|
||||
exists(string name | this = rh.getARequestSource().ref().getAPropertyRead(name) |
|
||||
kind = "parameter" and
|
||||
name = ["params", "query"]
|
||||
or
|
||||
@@ -150,7 +148,8 @@ module Fastify {
|
||||
override predicate isUserControlledObject() {
|
||||
kind = "body" and
|
||||
(
|
||||
usesFastifyPlugin(rh, DataFlow::moduleImport(["fastify-xml-body-parser", "fastify-formbody"]))
|
||||
usesFastifyPlugin(rh,
|
||||
DataFlow::moduleImport(["fastify-xml-body-parser", "fastify-formbody"]))
|
||||
or
|
||||
usesMiddleware(rh,
|
||||
any(ExpressLibraries::BodyParser bodyParser | bodyParser.producesUserControlledObjects()))
|
||||
|
||||
Reference in New Issue
Block a user