Skip to content

Commit 643eb64

Browse files
committed
onload
1 parent 500d502 commit 643eb64

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fallctf-2024/src/web/web.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,13 @@ If I had set `USER INPUT` to `<script>alert("Hello!")</script>`, then the websit
144144
```
145145

146146
More details on XSS: https://portswigger.net/web-security/cross-site-scripting
147+
148+
A useful resource for receiving requests is [webhook.site](https://webhook.site/). For example, if you need to extract some data from a website, you can have your XSS payload send a request to your webhook.site URL with the data you need.
149+
150+
Be careful when exfiltrating data to make sure the data on the page you are trying to extract is actually loaded.
151+
152+
```js
153+
window.addEventListener('load', () => {
154+
// ... your code here
155+
});
156+
```

0 commit comments

Comments
 (0)