[ 
https://issues.apache.org/jira/browse/HAWQ-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15036770#comment-15036770
 ] 

ASF GitHub Bot commented on HAWQ-190:
-------------------------------------

GitHub user hornn opened a pull request:

    https://github.com/apache/incubator-hawq/pull/151

    HAWQ-190. Mask special characters in path to avoid XSS attacks.

    When trying to access a wrong resource name in PXF, an error message with 
the wrong path is emitted.
    We mask any special characters in the returned message to avoid cross-site 
scripting attacks.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hornn/incubator-hawq HAWQ-190

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-hawq/pull/151.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #151
    
----
commit 5e56b1d1926fa34b55d51d3bbe87a8ef5f2942cd
Author: Noa Horn <[email protected]>
Date:   2015-12-02T22:27:26Z

    HAWQ-190. Mask special characters in path to avoid XSS attacks.
    
    When trying to access a wrong resource name in PXF, an error message with 
the wrong path is emitted.
    We mask any special characters in the returned message to avoid cross-site 
scripting attacks.

----


> XSS: Reflected: Invalid PathResource.java: Ln 99, 107
> -----------------------------------------------------
>
>                 Key: HAWQ-190
>                 URL: https://issues.apache.org/jira/browse/HAWQ-190
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: PXF, Security
>            Reporter: Goden Yao
>            Assignee: Goden Yao
>
> The method sendErrorMessage() in InvalidPathResource.java sends unvalidated 
> data to a web browser on line 107, which can result in the browser executing 
> malicious code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to