-
Notifications
You must be signed in to change notification settings - Fork 4
Input sanitization
Douglas Naphas edited this page Feb 20, 2019
·
2 revisions
We sanitize inputs using field-specific whitelisting. Only whitelisted characters are allowed in front-end input boxes. The back end rejects posts whose fields contain characters off the whitelist.
The following fields have the indicated whitelists applied:
- Room Code: [A-Z]
- Game Name: [-A-Za-z ,0-9]
- Lib: [-A-Za-z ,0-9."']
Run the same sanitization function on the front and back end.
Sanitization must be idempotent.
Issue 116 is open to enhance XSS sanitization.