OWASP/owasp-java-encoder

Create an encodeForEmail() function

skotfred opened this issue · 4 comments

It would seem that a rule for email would not completely match any of the existing rules. Additionally, this seems to be a value that is an obvious choice for reflected attacks.

Obviously this is an edge case, but one example would be for cases where a user enters "example@<script>alert('xss');</script>domain.com" as it could be reflected back to the output.

Normal encoding will work here, politely closing this out.