Skip to content

Conversation

pixelbitie
Copy link

Adds the following input sanitations and validations to increase integrity:
Usernames: length must be in range (3, 20), only alphanumeric
Passwords: Basic password security enforcement - length must be in range (8, 20), must have at least lowercase letter, uppercase letter, number, and special character
Categories & Subcategories: length must be less than 50, only alphanumeric and spaces allowed
Messages: length must be less than 500, blacklisted characters ' " ; - /
This blacklist should be easy to modify, but for now this should be sufficient for any possible integrations in the future that might have XSS vulnerabilities.

Resolves #48

Adds the following input sanitations and validations to increase integrity:
Usernames: length must be in range (3, 20), only alphanumeric
Passwords: Basic password security enforcement - length must be in range (8, 20), must have at least lowercase letter, uppercase letter, number, and special character
Categories & Subcategories: length must be less than 50, only alphanumeric and spaces allowed
Messages: length must be less than 500, blacklisted characters ' " ; - / \
Blacklist should be easy to modify, but for now this should be sufficient for any possible integrations in the future that might have XSS vulnerabilities.
Resolves ComputerScienceSoceityNITS#48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input Sanitization & Validation
1 participant