mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Accept an alert
This commit is contained in:
@@ -11,7 +11,7 @@ export function MyComponent() {
|
||||
const query = window.location.search.substring(1);
|
||||
request('https://example.com/api/' + query + '/id'); // $ Alert[js/client-side-request-forgery]
|
||||
request('https://example.com/api?q=' + query);
|
||||
request('https://example.com/api/' + window.location.search); // likely OK - but currently flagged anyway
|
||||
request('https://example.com/api/' + window.location.search); // $ Alert[js/client-side-request-forgery] - likely OK - but currently flagged anyway
|
||||
|
||||
const fragment = window.location.hash.substring(1);
|
||||
request('https://example.com/api/' + fragment + '/id'); // $ Alert[js/client-side-request-forgery]
|
||||
|
||||
Reference in New Issue
Block a user