Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35123

DOM XSS vulnerability in history.js

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Apache Flex 4.16.0
    • None
    • None
    • Patch

    Description

      Template file history.js contains a DOM XSS vulnerability. While it looks like it would be difficult to exploit, it should be addressed.

      The code in question is in a block specific to ancient versions of Safari (<= 2.0.4), so I propose that block could safely be removed entirely.

      The vulnerable line is:

      getFormElement().innerHTML = '<form name="historyForm" action="'file'#' + flexAppUrl + '" method="GET"></form>';

      The variables 'file' and 'flexAppUrl' are being passed unescaped into HTML subcontext.

      I'm attaching a patch that would remove the Safari-specific handling, including the vulnerable line.

      Attachments

        Activity

          People

            jmclean Justin Mclean
            anopanen Aron Nopanen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified