flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aron Nopanen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35123) DOM XSS vulnerability in history.js
Date Tue, 13 Sep 2016 22:31:21 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488653#comment-15488653

Aron Nopanen commented on FLEX-35123:

This was found on a penetration test against Adobe Flex SDK 4.6.0, but the same vulnerable
code appears to still be present in the latest version of the history.js file, at least on
the branches I looked at.

> DOM XSS vulnerability in history.js
> -----------------------------------
>                 Key: FLEX-35123
>                 URL: https://issues.apache.org/jira/browse/FLEX-35123
>             Project: Apache Flex
>          Issue Type: Bug
>            Reporter: Aron Nopanen
>         Attachments: 0001-Address-DOM-XSS-vulnerability.patch
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> 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

This message was sent by Atlassian JIRA

View raw message