Skip to content

[BUG] XSS attack prevention #225

@jdieguez89

Description

@jdieguez89

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
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions