Skip to content

Commit 1eabb6c

Browse files
Napalyserik-krogh
andauthored
Update javascript/ql/test/experimental/Security/CWE-918/check-regex.js
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 70cf1a5 commit 1eabb6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/test/experimental/Security/CWE-918/check-regex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ app.get('/check-with-axios', req => {
5858
axios.get(baseURL + req.params.tainted); // OK
5959
}
6060
if (!isValidPathMatchAll(req.params.tainted) ) {
61-
axios.get(baseURL + req.params.tainted); // SSRF
61+
axios.get(baseURL + req.params.tainted); // NOT OK - SSRF
6262
} else {
6363
axios.get(baseURL + req.params.tainted); // OK
6464
}

0 commit comments

Comments
 (0)