Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1262

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0.5
    • 5.2.0
    • tapestry-core
    • 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.

      Attachments

        Issue Links

          Activity

            People

              ccordenier Christophe Cordenier
              ccordenier Christophe Cordenier
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: