You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2019/10/01 12:36:00 UTC

[jira] [Commented] (AMBARI-25387) Ambari-Web UI hosts Tab is vulnerable to XSS attack

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

Hudson commented on AMBARI-25387:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #580 (See [https://builds.apache.org/job/Ambari-branch-2.7/580/])
AMBARI-25387 Ambari-Web UI hosts Tab is vulnerable to XSS attack (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=76108a9a2347132a759a3bef273b9e674309b321])
* (edit) ambari-web/app/views/common/helpers/format_word_break_view.js


> Ambari-Web UI hosts Tab is vulnerable to XSS attack
> ---------------------------------------------------
>
>                 Key: AMBARI-25387
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25387
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: trunk, 2.6.2, 2.7.3
>            Reporter: Akhil Naik
>            Assignee: Akhil Naik
>            Priority: Major
>              Labels: pull-request-available, security
>         Attachments: Screen Shot 2019-10-01 at 4.02.07 PM.png
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Problem Statement : Ambari-Web UI hosts Tab is vulnerable to XSS attack
> Issue reproduction : 
> 1) Execute the Following CURL command to edit the Rack INFO . 
> {code:java}
> curl -u admin:admin -H "X-Requested-By:ambari" -i -X PUT http://ambari-server:8080/api/v1/clusters/asnaik/hosts -d '{"RequestInfo":{"context":"Set Rack","query":"Hosts/host_name.in(abc.openstacklocal)"},"Body":{"Hosts":{"rack_info":"/default-rack/<IMG SRC='x' onerror=javascript:alert(domain);>"}}}'
> {code}
> where abc.openstacklocal is the host i want to change the rack info
> (please note <IMG SRC='x' onerror=javascript:alert(domain);> we cannot add in UI via edit rack_info as in UI we checks for special characters)
> Login to Ambari-UI -> navigate to Hosts and go to host : abc.openstacklocal
> XSS will be injected to DOM and following Alert will be displayed.
>  !Screen Shot 2019-10-01 at 4.02.07 PM.png! 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)