-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoded "script" Elements don't get scrubbed #64
Comments
Those are not necessarily mutually exclusive. But I have to be impolite and ask a question in return:
Is this really what Phoenix should do? I will have to check ... |
I'm not sure either, but what I can do is simply replace the |
@PJUllrich So, I did a quick check and the result is not consistent with I understood from your description: Am I testing the "right" |
@rrrene I DMed you on Twitter :) |
Hello there,
first of all, thank you very much for this super useful library ❤️🙏
I'm running into an "issue" (I'm unsure whether it's an issue or intended behaviour) that some elements don't get scrubbed if their
<
and>
signs are encoded. For example:If I render the second string in my html with
raw(@safe_content)
, it becomes<script>alert('xss');</script>
again.Now, I'm unsure about the implications of this. In my case, the string is user input and I render the content as described in my HEEX template because it can contain code snippets. What do you think? Is there a possible vulnerability here or does everything work as intended? :)
The text was updated successfully, but these errors were encountered: