-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
Describe the bug
Image uploads are not currently validated for potential XSS attacks, posing a security risk. While we are using Angular 7, which has some mechanisms to control these attacks, there is a need to update to an external library for more robust protection.
Expected behavior
All uploaded images, particularly SVGs and images, should undergo rigorous validation to prevent any possibility of XSS (Cross-Site Scripting) attacks.
Possible solution
- Implement server-side validation to check and sanitize the SVG files being uploaded.
- Use a robust library like DOMPurify in the frontend to sanitize SVG content.
- Employ Content Security Policy (CSP) headers to add an extra layer of protection.
- Regularly audit and update security measures to address new potential threats.
Metadata
Metadata
Labels
No labels
Type
Projects
Status
✅ Done