Tapestry 5
  1. Tapestry 5
  2. TAP5-1262

XSS vulnerability in calendar component (apply to 5.1.0.x)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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.

        Issue Links

          Activity

          Christophe Cordenier created issue -
          Christophe Cordenier made changes -
          Field Original Value New Value
          Link This issue is a clone of TAP5-1057 [ TAP5-1057 ]
          Hide
          Christophe Cordenier added a comment -

          Patch applied to 5.1.0.x too

          Show
          Christophe Cordenier added a comment - Patch applied to 5.1.0.x too
          Christophe Cordenier made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 5.1.0.8 [ 12314520 ]
          Resolution Fixed [ 1 ]
          Jochen Kemnade made changes -
          Fix Version/s 5.1.0.8 [ 12314520 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          5d 35m 1 Christophe Cordenier 06/Sep/10 07:57

            People

            • Assignee:
              Christophe Cordenier
              Reporter:
              Christophe Cordenier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development