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

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Napalys Klicius
2024-11-11 15:40:22 +01:00
committed by GitHub
parent 70cf1a57bc
commit 1eabb6cbdd

View File

@@ -58,7 +58,7 @@ app.get('/check-with-axios', req => {
axios.get(baseURL + req.params.tainted); // OK
}
if (!isValidPathMatchAll(req.params.tainted) ) {
axios.get(baseURL + req.params.tainted); // SSRF
axios.get(baseURL + req.params.tainted); // NOT OK - SSRF
} else {
axios.get(baseURL + req.params.tainted); // OK
}