HexBrain

Ruby on Rails · Report #1327196

Content Security Policy is only active for HTML responses but not for image/svg+xml

Validstatus
20upvotes
28 Jul 2023disclosed

How it was found

Note: ActiveStorage prevents this by filtering via ActiveStorage.content_types_allowed_inline

Impact

The attacker can trick victim users to execute Java Script in the scope of their active session by uploading the malicious file to the server and sending a link to that file to the victim.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original