Skip to content

Commit f52f5b6

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

File tree

1 file changed

+4
-0
lines changed
  • javascript/ql/test/query-tests/Security/CWE-079/ReflectedXss/app/blah

1 file changed

+4
-0
lines changed
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)