We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1479586 + 8fe2319 commit 649979dCopy full SHA for 649979d
javascript/ql/src/semmle/javascript/frameworks/Express.qll
@@ -415,9 +415,6 @@ module Express {
415
)
416
417
or
418
- kind = "body" and
419
- this.asExpr() = rh.getARequestBodyAccess()
420
- or
421
exists(string propName |
422
// `req.url` or `req.originalUrl`
423
kind = "url" and
@@ -432,6 +429,9 @@ module Express {
432
429
this.(DataFlow::PropRef).accesses(request, "cookies")
433
430
434
431
+ kind = "body" and
+ this.asExpr() = rh.getARequestBodyAccess()
+ or
435
exists(RequestHeaderAccess access | this = access |
436
rh = access.getRouteHandler() and
437
kind = "header"
0 commit comments