Files
codeql/javascript/ql/test/library-tests/frameworks/fastify/RequestInputAccess.qll
2022-09-09 10:34:14 +02:00

12 lines
335 B
Plaintext

import javascript
query predicate test_RequestInputAccess(
Http::RequestInputAccess ria, string res, Fastify::RouteHandler rh, boolean isUserControlledObject
) {
ria.getRouteHandler() = rh and
res = ria.getKind() and
if ria.isUserControlledObject()
then isUserControlledObject = true
else isUserControlledObject = false
}