Skip to content

Commit 96e415a

Browse files
committed
JS: Track express route handlers into arrays
1 parent 246d904 commit 96e415a

File tree

1 file changed

+3
-0
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+3
-0
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Express.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ module Express {
215215
or
216216
Http::routeHandlerStep(result, succ) and
217217
t = t2
218+
or
219+
DataFlow::SharedFlowStep::storeStep(result, succ, DataFlow::PseudoProperties::arrayElement()) and
220+
t = t2.continue()
218221
)
219222
}
220223

0 commit comments

Comments
 (0)