Bug 1415511 - Security Hardening - Prevent Deserialization Attacks from using Groovy MethodClosure private readObject method
Summary: Security Hardening - Prevent Deserialization Attacks from using Groovy Method...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Core Server, Security
Version: JON 3.3.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER02
: JON 3.3.8
Assignee: Simeon Pinder
QA Contact: Filip Brychta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-22 23:14 UTC by Jason Shepherd
Modified: 2017-02-16 18:46 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-02-16 18:46:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:0285 0 normal SHIPPED_LIVE Red Hat JBoss Operations Network 3.3.8 bug fix update 2017-02-16 23:44:22 UTC

Description Jason Shepherd 2017-01-22 23:14:16 UTC
Description of problem:

CVE-2016-6814 does not affect JON Directly. However we should take a defence in depth approach by applying the following patch to the Groovy version included with JON 3.3.7 if we do another release.


Additional info:

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();
+    }

Ref: http://groovy-lang.org/security.html

Comment 6 Simeon Pinder 2017-01-27 06:16:25 UTC
Moving to ON_QA as available to test with the following brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=535315

NOTE: jon-server-patch-3.3.0.GA.zip maps to jon-server-3.3.0.GA-update-08.zip whic is JON 3.3.8 ER02 build.

Comment 9 errata-xmlrpc 2017-02-16 18:46:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2017-0285.html


Note You need to log in before you can comment on or make changes to this bug.