We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d674e7 commit 95f994aCopy full SHA for 95f994a
javascript/ql/src/Security/CWE-918/examples/RequestForgeryBad.js
@@ -1,7 +1,7 @@
1
import http from 'http';
2
3
const server = http.createServer(function(req, res) {
4
- const target = new URL(req.url).searchParams.get("target");
+ const target = new URL(req.url, "http://example.com").searchParams.get("target");
5
6
// BAD: `target` is controlled by the attacker
7
http.get('https://' + target + ".example.com/data/", res => {
0 commit comments