Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.2.6, 2.3.2, 2.4
-
None
-
security, xss, patch
-
Trivial
-
Description
The org.apache.commons.httpclient.util.URIUtil used in com.xpn.xwiki.util.Util is unsafe to use for URL escaping, because it does not escape the ' (apostrophe character). This can lead to XSS e.g. if used inside JavaScript or HTML tag attributes, since it is legitimate to use apostrophes there too.
The default java.net.URLEncoder or org.apache.velocity.tools.generic.EscapeTool is much better in this respect.
Attachments
Issue Links
- is duplicated by
-
XWIKI-5448 Specials characters do not work with access right
- Closed