[ 
https://issues.apache.org/struts/browse/WW-2316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42632
 ] 

Jeromy Evans commented on WW-2316:
----------------------------------

It may need to be a separate flag from allowDynamicMethodCalls.  

Dynamic method calls allows the developer to call public no-param methods 
matching a certain name pattern  (eg do{1}) and hopefully they use this whilst 
aware of the venerabilities.

?method:METHOD_NAME provides access to any public no-param method.

I believe there are valid use-cases for the former option enabled without the 
latter. 



> ?method:METHOD_NAME vulnerability
> ---------------------------------
>
>                 Key: WW-2316
>                 URL: https://issues.apache.org/struts/browse/WW-2316
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.0.11, 2.1.0
>            Reporter: Dale Newfield
>
> In order to allow multiple form submission buttons result in different 
> behavior based on the button pressed, a specially named parameter is included 
> in the form submission that instructs the ActionMapper to call a method 
> indicated in the URL.  This special parameter can be used to implement a 
> credential escalation attack, though:  If a user has suffiicient credentials 
> to call a single method on an action, this provides a mechanism whereby they 
> could call any method on that action.  The "action!method.do" capability 
> introduces a similar vulnerability, and the "allowDynamicMethodCalls" option 
> closes that hole.  Besides needing to provide a different mechanism to allow 
> different form submission buttons to do different things, is there a large 
> downside to using this same option ("allowDynamicMethodCalls") to close this 
> hole as well?
> (Just to be explicit, that solution would wrap "if (allowDynamicMethodCalls) 
> {" and "}" around lines 186-188 in 
> org.apache.struts2.dispatcher.mapper.DefaultActionMapper.java .)
> http://www.nabble.com/forum/ViewPost.jtp?post=13710147&framed=y
> http://www.nabble.com/forum/ViewPost.jtp?post=13711925&framed=y

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to