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

AuthUtil.isRedirectValid makes wrong assumptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Auth Core 1.1.0
    • Auth Core 1.1.0
    • Authentication
    • None

    Description

      The isRedirectValid method is assumed to be present to (a) not redirect outside of the scope of the Sling Web Container (by preventing absolute URLs to validate) and (b) not contain XSS strings (by checking the target with the request's resource resolver).

      The second part is flawed, though:

      • Completely ignores request context path
      • Uses resource resolve to validate path (and assume side-effect support of being XSS
        clean if a resource exists)
      • Doesn't really check for XSS violations if no resource resolver exists

      We should not check with the resource resolver but implement some light-weight string checks with sensitive characters like <, >, ', and "

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: