File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
javascript/ql/test/query-tests/Security/CWE-601/ClientSideUrlRedirect Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ | tst16.js:5 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
2+ | tst16.js:6 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
3+ | tst16.js:7 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
Original file line number Diff line number Diff line change 1+ import queryString from 'query-string' ;
2+ import querystringify from 'querystringify' ;
3+
4+ function foo ( ) {
5+ location . href = queryString . parse ( location . search ) . data ; // NOT OK
6+ location . href = queryString . extract ( location . search ) ; // NOT OK
7+ location . href = querystringify . parse ( location . search ) . data ; // NOT OK
8+ }
You can’t perform that action at this time.
0 commit comments