Uploaded image for project: 'Lucee Development'
  1. LDEV-1662

cflocation output html with plain text url (XSS possibility)

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.5.5.014, 5.2.5.20, 5.2.6.34
    • Fix Version/s: 5.2.7.28
    • Labels:
      None
    • Sprint:
      March 2018

      Description

      cflocation outputs HTML with the unescaped URL.

      If you have URL rewrite with cflocation, like e.g. Mura, and you go to https://domein.tldl/"></a><script>alert("XSS")</script> the following HTML will be send to the client:

      <html>
        <head>
          <title>Document Moved</title>
        </head>
        <body>
          <h1>Object Moved</h1>
          <a HREF="/"></a>
          <script>alert("XSS")</script>/">here</a>
      </body>
      </html>
      

      Although it will never be executed because of the location http header, it is bad practice. We should not output the url in the html.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              jzuijlek Jonathan van Zuijlekom
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: