[ 
https://issues.apache.org/jira/browse/AMBARI-20823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Magyar updated AMBARI-20823:
-----------------------------------
    Attachment: AMBARI-20823.patch

> Remove user input from invalid renderer error message
> -----------------------------------------------------
>
>                 Key: AMBARI-20823
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20823
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 1.5.0
>            Reporter: Robert Levas
>            Assignee: Attila Magyar
>            Priority: Critical
>             Fix For: 2.5.1
>
>         Attachments: AMBARI-20823.patch
>
>
> Remove user input from invalid renderer error message to avoid potential XSS 
> attacks. 
> The user input data returned in the exception thrown at
> {code:title=org/apache/ambari/server/api/resources/BaseResourceDefinition.java:135}
>       throw new IllegalArgumentException("Invalid renderer name: " + name +
>           " for resource of type: " + m_type);
> {code}
> should be removed and the error message changed to:
> {noformat}
> Invalid renderer name for resource of type <resource type>.m
> {noformat}
> or simply
> {noformat}
> Invalid renderer name.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to