File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
lib/semmle/javascript/frameworks
test/library-tests/frameworks/Express Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -618,6 +618,10 @@ module Express {
618
618
or
619
619
kind = "body" and
620
620
this = ref .getAPropertyRead ( "body" )
621
+ or
622
+ // `req.path`
623
+ kind = "url" and
624
+ this = ref .getAPropertyRead ( "path" )
621
625
)
622
626
}
623
627
Original file line number Diff line number Diff line change @@ -1109,6 +1109,7 @@ test_RequestInputAccess
1109
1109
| src/express.js:55:12:55:25 | req.params.foo | parameter | src/express.js:53:23:57:1 | functio ... res);\\n} |
1110
1110
| src/express.js:61:12:61:25 | req.params.foo | parameter | src/express.js:59:23:63:1 | functio ... res);\\n} |
1111
1111
| src/express.js:67:12:67:25 | req.params.foo | parameter | src/express.js:65:27:69:1 | functio ... res);\\n} |
1112
+ | src/express.js:73:12:73:19 | req.path | url | src/express.js:71:23:75:1 | functio ... res);\\n} |
1112
1113
| src/inheritedFromNode.js:7:2:7:8 | req.url | url | src/inheritedFromNode.js:4:15:8:1 | functio ... .url;\\n} |
1113
1114
| src/params.js:4:35:4:39 | value | parameter | src/params.js:4:18:12:1 | (req, r ... }\\n} |
1114
1115
| src/params.js:5:17:5:28 | req.query.xx | parameter | src/params.js:4:18:12:1 | (req, r ... }\\n} |
You can’t perform that action at this time.
0 commit comments