Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f52f5b6

Browse files
committed
JS: Add test with route.ts outside 'api'
1 parent 0414555 commit f52f5b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • javascript/ql/test/query-tests/Security/CWE-079/ReflectedXss/app/blah
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export async function GET(req: Request) {
2+
const url = req.url; // $ MISSING: Source
3+
return new Response(url, { headers: { "Content-Type": "text/html" } }); // $ MISSING: Alert
4+
}

0 commit comments

Comments
 (0)