[
https://issues.apache.org/jira/browse/COLLECTIONS-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15000335#comment-15000335
]
Thomas Neidhart edited comment on COLLECTIONS-580 at 11/11/15 1:07 PM:
-----------------------------------------------------------------------
There are also other vulnerable classes that allow an attacker to create a
quite simple DOS attack.
A gadget like that will result in an infinite loop:
{code}
final Transformer[] transformers = new Transformer[] {
new ConstantTransformer(Runtime.class),
new ClosureTransformer(
new WhileClosure(TruePredicate.INSTANCE,
new TransformerClosure(CloneTransformer.INSTANCE), false)),
{code}
was (Author: tn):
There are also other vulnerable classes that allow an attacker to create a
quite simple DOS attack.
A gadget like that will result in an infinite loop:
{code}
final Transformer[] transformers = new Transformer[] {
new ConstantTransformer(Runtime.class),
new ClosureTransformer(
new WhileClosure(TruePredicate.INSTANCE,
new
TransformerClosure(CloneTransformer.INSTANCE), false)),
{code}
> Arbitrary remote code execution with InvokerTransformer
> -------------------------------------------------------
>
> Key: COLLECTIONS-580
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-580
> Project: Commons Collections
> Issue Type: Bug
> Affects Versions: 3.0, 4.0
> Reporter: Philippe Marschall
> Attachments: COLLECTIONS-580.patch
>
>
> With {{InvokerTransformer}} serializable collections can be build that
> execute arbitrary Java code.
> {{sun.reflect.annotation.AnnotationInvocationHandler#readObject}} invokes
> {{#entrySet}} and {{#get}} on a deserialized collection. If you have an
> endpoint that accepts serialized Java objects (JMX, RMI, remote EJB, ...) you
> can combine the two to create arbitrary remote code execution vulnerability.
> I don't know of a good fix short of removing {{InvokerTransformer}} or making
> it not Serializable. Both probably break existing applications.
> This is not my research, but has been discovered by other people.
> https://github.com/frohoff/ysoserial
> http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)