OWASP/owasp-java-encoder

Grave accent issue

fraenku opened this issue · 3 comments

In regards to the issue with the grave accent issue described here https://www.owasp.org/index.php/OWASP_Java_Encoder_Project#tab=Grave_Accent_Issue
I found out that ESAPI.encoder.encodeForHTMLAttribute() is converting the ` in its hexadecimal-form:

`
Why owasp-java-encoder is not doing the same? Wouldn't this prevent the possible xss-attack in IE?

Thanks for the quick answer, I understand the point :-)

What is your opinon in regards to the widely used
<c:out value="${bean.userControlledValue}"/>-tag included in JSTL?

Is it save enough since it does not offer any context-sensitive encoding? At least according to
https://www.cvedetails.com/product/31268/Apache-Standard-Taglibs.html?vendor_id=45
no issue has been reported so far (which surprises me...)