Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 88844200BFC for ; Sat, 14 Jan 2017 13:23:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 872CE160B51; Sat, 14 Jan 2017 12:23:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D8F67160B28 for ; Sat, 14 Jan 2017 13:23:39 +0100 (CET) Received: (qmail 43264 invoked by uid 500); 14 Jan 2017 12:23:39 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 43253 invoked by uid 99); 14 Jan 2017 12:23:39 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2017 12:23:38 +0000 Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id BB79B1A0A86 for ; Sat, 14 Jan 2017 12:23:38 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id v96so62656677ioi.0 for ; Sat, 14 Jan 2017 04:23:38 -0800 (PST) X-Gm-Message-State: AIkVDXIGmVm/e+WItquosrXx15wRj489iNQ1Cv2BNMtvF8UA940fnL5IruA4HLR8lKoZM0/656YciaxoMZqI2g== X-Received: by 10.107.164.5 with SMTP id n5mr23023553ioe.202.1484396617902; Sat, 14 Jan 2017 04:23:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.27.82 with HTTP; Sat, 14 Jan 2017 04:23:37 -0800 (PST) From: Paul King Date: Sat, 14 Jan 2017 22:23:37 +1000 X-Gmail-Original-Message-ID: Message-ID: Subject: [CVE-2016-6814] Apache Groovy Information Disclosure To: dev@groovy.codehaus.org, security@apache.org, announce@apache.org, users@groovy.apache.org Content-Type: multipart/alternative; boundary=001a113c40ca1dc1ba05460d0557 archived-at: Sat, 14 Jan 2017 12:23:40 -0000 --001a113c40ca1dc1ba05460d0557 Content-Type: text/plain; charset=UTF-8 Severity: Important Vendor: The Apache Software Foundation Versions Affected: * Unsupported Codehaus versions of Groovy from 1.7.0 to 2.4.3 * Apache Groovy 2.4.4 to 2.4.7 * Fixed in version 2.4.8 Impact: Remote execution of untrusted code, DoS Description: When an application with Groovy on classpath uses standard Java serialization mechanisms, e.g. to communicate between servers or to store local data, it is possible for an attacker to bake a special serialized object that will execute code directly when deserialized. All applications which rely on serialization and do not isolate the code which deserializes objects are subject to this vulnerability. This is similar to CVE-2015-3253 but this exploit involves extra wrapping of objects and catching of exceptions which are now safe guarded against. Mitigation: Users of Groovy relying on (de)serialization with the affected versions should apply one of the following mitigations: * Isolate the code doing the (de)serialization * Upgrade to Apache Groovy 2.4.8 or later * Users of older versions of Groovy can apply the following patch to the `MethodClosure` class (`src/main/org/codehaus/groovy/runtime/MethodClosure.java`): ``` public class MethodClosure extends Closure { + private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException { + if (ALLOW_RESOLVE) { + stream.defaultReadObject(); + } + throw new UnsupportedOperationException(); + } ``` Credit: This vulnerability was discovered by: * Sam Thomas of Pentest Limited working with Trend Micro's Zero Day Initiative History: * 2016-09-20 Original advisory * 2017-01-12 Updated information on affected versions References: * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6814 * http://groovy-lang.org/security.html --001a113c40ca1dc1ba05460d0557 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Severity: Important

Vendor: = The Apache Software Foundation

Versions Affected:<= /div>

* Unsupported Codehaus versions of Groovy from 1.7= .0 to 2.4.3
* Apache Groovy 2.4.4 to 2.4.7
* Fixed in v= ersion 2.4.8

Impact:

Remo= te execution of untrusted code, DoS

Description:

When an application with Groovy on classpath uses s= tandard
Java serialization mechanisms, e.g. to communicate betwee= n servers
or to store local data, it is possible for an attacker = to bake a special
serialized object that will execute code direct= ly when deserialized.
All applications which rely on serializatio= n and do not isolate the
code which deserializes objects are subj= ect to this vulnerability.
This is similar to CVE-2015-3253 but t= his exploit involves extra
wrapping of objects and catching of ex= ceptions which are now safe
guarded against.

=
Mitigation:

Users of Groovy relying on (de)se= rialization with the affected versions
should apply one of the fo= llowing mitigations:

* Isolate the code doing the = (de)serialization
* Upgrade to Apache Groovy 2.4.8 or later
=
* Users of older versions of Groovy can apply the following patch to t= he
`MethodClosure` class (`src/main/org/codehaus/groovy/runtime/M= ethodClosure.java`):

```
public class Me= thodClosure extends Closure {
+ =C2=A0 =C2=A0private void readObj= ect(java.io.ObjectInputStream stream) throws
IOException, ClassNo= tFoundException {
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0if (ALLOW_RESOLVE)= {
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0stream.defaultReadO= bject();
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0}
+ =C2=A0 =C2=A0= =C2=A0 =C2=A0throw new UnsupportedOperationException();
+ =C2=A0= =C2=A0}
```

Credit:

This vulnerability was discovered by:

* Sam = Thomas of Pentest Limited working with Trend Micro's Zero Day Initiativ= e

History:

* 2016-09-20 O= riginal advisory
* 2017-01-12 Updated information on affected ver= sions

References:


--001a113c40ca1dc1ba05460d0557--