Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5946

XSSAPI#encodeForJSString is not restrictive enough

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • XSS Protection API 1.0.8
    • XSS Protection API 1.0.12
    • Extensions
    • None

    Description

      Since SLING-5445, XSSAPI#encodeForJSString is no longer properly encoding </script> and <!--. We should revert to using OWASP Encode#forJavaScript and handle - characters correctly for JSON too, by replacing them with \u002D

      Attachments

        1. SLING_5946.patch
          2 kB
          Vlad Bailescu

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              vladb Vlad Bailescu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: