Community
Participate
Working Groups
I20110222-0800 Currently UrlUtil.HtmlEncode() only encodes "&", ">", "<", "\"" and "'" It should be encoding most non alphanumeric characters since XSS exploits always rely on non alpha characters and the current set may not be sufficient to prevent all variations of XSS attacks.
Created attachment 189655 [details] Patch
Patch committed to HEAD, Fixed
Patch applied to 3.5 maintenance stream
Removing the security flag since this bug does not reveal any mode of exploit.
Created attachment 189868 [details] Patch for 3.4 maintenance stream I have applied this patch to the 3.4 maintenance stream
I had applied this patch to the 3.4 and 3.5 maintenance streams because of vulnerabilities detected by the Appscan tool. These turned out to be false positives. I still think it is a good idea to encode more characters but since this change does not address a known threat I have backed the change out of the 3.4 and 3.5 maintenance streams. HEAD will continue to contain the fix.