You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Bilwa S T (Jira)" <ji...@apache.org> on 2020/07/02 13:53:00 UTC

[jira] [Commented] (YARN-10336) RM page should throw exception when command injected in RM REST API to get applications

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

Bilwa S T commented on YARN-10336:
----------------------------------

This should be handled same way as how NodesPage is handled if NodeState given is not valid. The only difference is here we catch Illegal Argument Exception thrown by "YarnApplicationState.valueOf(stateString)"  . I think we shouldn't catch exception here.

> RM page should throw exception when command injected in RM REST API to get applications
> ---------------------------------------------------------------------------------------
>
>                 Key: YARN-10336
>                 URL: https://issues.apache.org/jira/browse/YARN-10336
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Rajshree Mishra
>            Assignee: Bilwa S T
>            Priority: Major
>         Attachments: CommandInject.jpg, RM_UI.jpg
>
>
> Using a web application attacking, we see that injecting commands like ACCEPTED, FAILED and FINISHED to RM REST API does not throw an exception. Refer images.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org