Files
codeql/javascript/ql/test/library-tests/frameworks/fastify/RequestInputAccess.qll
2020-05-21 13:42:28 +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
}