mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Update TaintedTextWithQuotes.md
This commit is contained in:
parent
f2f5f1eaa2
commit
eb3e395138
@ -32,7 +32,7 @@ Passing `');alert('injection');//` as a `GET` param here would would cause the `
|
||||
|
||||
## Mitigations
|
||||
|
||||
- Sanitize user-input by using functions such as `htmlentities` or use an allowlist.
|
||||
- Sanitize user input by using functions such as `htmlentities` with the `ENT_QUOTES` flag or use an allowlist.
|
||||
- Set all cookies to `HTTPOnly`.
|
||||
- Consider using Content Security Policy (CSP), to limit the risk of XSS vulnerabilities.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user