You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Igor Drobiazko (JIRA)" <ji...@apache.org> on 2010/04/29 08:57:55 UTC
[jira] Commented: (TAP5-1057) XSS vulnerability in calendar
component
[ https://issues.apache.org/jira/browse/TAP5-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862114#action_12862114 ]
Igor Drobiazko commented on TAP5-1057:
--------------------------------------
Escaping datefield value is inappropriate for localized dates, for example French months décembre or février.
> XSS vulnerability in calendar component
> ---------------------------------------
>
> Key: TAP5-1057
> URL: https://issues.apache.org/jira/browse/TAP5-1057
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: François Facon
> Attachments: datefield_js.patch, datefield_js.patch
>
>
> The calendar component provided in tapestry 5.1.0.5 could be used to allow code injection by malicious web users into any page that uses datefield .
> To reproduce the vulnerability, put js code like <script>alert("T5 is great"); </script> in any datefield and click on the related calendar bitma
> After quick search in the DateField.js, it seems like the field value is not escaping
> escaping with a change like var value = escape($F(this.field)); the field value seems solve this vulnerability.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.