You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ri...@apache.org on 2017/02/10 17:01:48 UTC

[1/2] brooklyn-docs git commit: Security advisories

Repository: brooklyn-docs
Updated Branches:
  refs/heads/master 11414400e -> 9ce71a4a0


Security advisories


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/27b7e358
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/27b7e358
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/27b7e358

Branch: refs/heads/master
Commit: 27b7e358a5ed86d9bbaaaccb02990a4a3c177068
Parents: 1141440
Author: Richard Downer <ri...@apache.org>
Authored: Fri Feb 10 16:06:09 2017 +0000
Committer: Richard Downer <ri...@apache.org>
Committed: Fri Feb 10 17:00:33 2017 +0000

----------------------------------------------------------------------
 website/community/index.md                  | 22 +++++++++++++
 website/community/security/CVE-2016-8737.md | 40 ++++++++++++++++++++++++
 website/community/security/CVE-2016-8744.md | 38 ++++++++++++++++++++++
 website/community/security/CVE-2017-3165.md | 31 ++++++++++++++++++
 website/community/security/index.md         | 13 ++++++++
 5 files changed, 144 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/27b7e358/website/community/index.md
----------------------------------------------------------------------
diff --git a/website/community/index.md b/website/community/index.md
index a046f3c..d6c0572 100644
--- a/website/community/index.md
+++ b/website/community/index.md
@@ -6,6 +6,7 @@ usermanual-pdf-exclude: true
 children:
 - mailing-lists.md
 - irc.md
+- security/index.md
 - { link: 'https://issues.apache.org/jira/browse/BROOKLYN', title: 'Bug Tracker (JIRA)' }
 - { path: how-to-contribute-docs.md }
 ---
@@ -58,6 +59,25 @@ Find us on `#brooklyncentral` on Freenode, or click below for more information.
 </div>
 
 </div><!-- col -->
+
+<div class="col-md-6" markdown="1">
+<div class="panel panel-default">
+  <div class="panel-heading" markdown="1">
+#### [Security advisories](security/index.html)
+  </div>
+  <div class="panel-body" markdown="1">
+A list of security advisories covering Apache Brooklyn
+
+<div class="text-center"><a class="btn btn-primary" href="security/index.html" role="button">Security Advisories</a></div>
+  </div>
+</div>
+
+</div><!-- col -->
+</div><!-- row -->
+
+<div class="row">
+<div class="col-md-3" markdown="1">
+</div>
 <div class="col-md-6" markdown="1">
 
 <div class="panel panel-default">
@@ -72,4 +92,6 @@ Want to contribute code to our project? Head over to our developer's section. Wa
 </div>
 
 </div><!-- col -->
+<div class="col-md-3" markdown="1">
+</div>
 </div><!-- row -->

http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/27b7e358/website/community/security/CVE-2016-8737.md
----------------------------------------------------------------------
diff --git a/website/community/security/CVE-2016-8737.md b/website/community/security/CVE-2016-8737.md
new file mode 100644
index 0000000..34b222c
--- /dev/null
+++ b/website/community/security/CVE-2016-8737.md
@@ -0,0 +1,40 @@
+---
+layout: website-normal
+title: "CVE-2016-8737: Cross-site request forgery vulnerability in Apache Brooklyn"
+---
+
+## Severity
+Major
+
+## Vendor
+The Apache Software Foundation
+
+## Versions Affected
+Apache Brooklyn 0.9.0 and all prior versions
+
+## Description
+Apache Brooklyn's REST server is vulnerable to cross-site request forgery (CSRF), which could permit a malicious web site to produce a link which, if clicked whilst a user is logged in to Brooklyn, would cause the server to execute the attacker's commands as the user.  There is known to be a proof-of-concept exploit using this vulnerability.
+
+## Solution
+Upgrade to Apache Brooklyn 0.10.0. This includes commit [1](https://github.com/apache/brooklyn-server/pull/430) adding opt-in CSRF protection server-side and commit [2](https://github.com/apache/brooklyn-ui/pull/37) where the JS client opts-in.  
+
+## Temporary mitigation if you cannot upgrade to 0.10.0
+Do not visit websites with possible malicious content targeted at you in the same browser instance logged in to Brooklyn unless you have CSRF-POST protection installed in the browser (see [3](https://en.wikipedia.org/wiki/Cross-site_request_forgery#Client_side_safeguards)).  Do not share a Brooklyn server with untrusted users without an enhanced entitlements scheme.  Do not publicize the address of Brooklyn-based UIs.  If a link you click on takes you to Brooklyn unexpectedly, contact your security team immediately.
+
+## Example exploit
+Attacker puts something like this into their malicious site:
+
+    <form action="http://<Brooklyn>/v1/applications/oadP4rZU/entities/oadP4rZU/name?name=hacked" method="POST">
+
+If the user clicks on this when logged in, the name of that entity will be changed by the attacker.
+
+## Credit
+This vulnerability was discovered by Toshitsugu Yoneyama of Mitsui Bussan Secure Directions, Inc., and reported to JPCERT/CC who reported them to the Apache Software Foundation on his behalf.
+
+## References
+1. [https://github.com/apache/brooklyn-server/pull/430](https://github.com/apache/brooklyn-server/pull/430)
+2. [https://github.com/apache/brooklyn-ui/pull/37](https://github.com/apache/brooklyn-ui/pull/37)
+3. [https://en.wikipedia.org/wiki/Cross-site_request_forgery#Client_side_safeguards](https://en.wikipedia.org/wiki/Cross-site_request_forgery#Client_side_safeguards)
+
+## Other references
+JPCERT/CC JVN#55489964

http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/27b7e358/website/community/security/CVE-2016-8744.md
----------------------------------------------------------------------
diff --git a/website/community/security/CVE-2016-8744.md b/website/community/security/CVE-2016-8744.md
new file mode 100644
index 0000000..32cd5db
--- /dev/null
+++ b/website/community/security/CVE-2016-8744.md
@@ -0,0 +1,38 @@
+---
+layout: website-normal
+title: "CVE-2016-8744: Apache Brooklyn, SnakeYAML configuration potentially allows remote code execution"
+---
+
+## Severity
+Major
+
+## Vendor
+The Apache Software Foundation
+
+## Versions Affected
+Apache Brooklyn 0.9.0 and all prior versions
+
+## Description
+Apache Brooklyn uses the SnakeYAML library for parsing YAML inputs. SnakeYAML allows the use of YAML tags to indicate that SnakeYAML should unmarshal data to a Java type. In the default configuration, SnakeYAML will allow unmarshalling to any Java type available on the classpath. This could provide an authenticated user with a means to cause the JVM running Brooklyn to load and run Java code without detection by Brooklyn. Such code would have the privileges of the Java process running Brooklyn, including the ability to open files and network connections, and execute system commands. There is known to be a proof-of-concept exploit using this vulnerability.
+
+## Solution
+Upgrade to Apache Brooklyn 0.10.0. This changes the SnakeYAML configuration to limit unmarshalling to a white list of safe, basic, Java types. This change blocks YAML document inputs that use unsafe Java types.
+
+## Temporary mitigation if you cannot upgrade to 0.10.0
+Ensure your Apache Brooklyn instance is properly secured so that untrusted users cannot access Brooklyn's API. User authentication should be configured with strong passwords, and access limited to known trusted individuals. Configure SSL/TLS. Installations of Apache Brooklyn should not be exposed to the Internet without considering the security implications. (This is general good practice for Apache Brooklyn installations.)
+
+## Example exploit
+Consider this fragment of YAML:
+
+    !!java.util.Date
+    date: 25
+    month: 12
+    year: 2016
+
+If embedded into a YAML document and given to Apache Brooklyn's API endpoint for new applications, it would cause SnakeYAML to instantiate java.util.Date and call setter methods on the instance. Although the Date type in this example is relatively benign, Date could be replaced by any other class available on Brooklyn's classpath, which include classes that pose a security risk.
+
+## Credit
+This issue was discovered by Moritz Bechler of AgNO3 GmbH & Co. KG.
+
+## References
+[http://www.apache.org/security/index.html](http://www.apache.org/security/index.html)

http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/27b7e358/website/community/security/CVE-2017-3165.md
----------------------------------------------------------------------
diff --git a/website/community/security/CVE-2017-3165.md b/website/community/security/CVE-2017-3165.md
new file mode 100644
index 0000000..a9a86a7
--- /dev/null
+++ b/website/community/security/CVE-2017-3165.md
@@ -0,0 +1,31 @@
+---
+layout: website-normal
+title: "CVE-2017-3165: Cross-site vulnerabilities in Apache Brooklyn"
+---
+
+## Severity
+Major
+
+## Vendor
+The Apache Software Foundation
+
+## Versions Affected
+Apache Brooklyn 0.9.0 and all prior versions
+
+## Description
+Apache Brooklyn's REST server is vulnerable to cross-site scripting where one authenticated user can cause scripts to run in the browser of another user authorized to access the first user's resources.  This is due to improper escaping of server-side content.  There is known to be a proof-of-concept exploit using this vulnerability.
+
+## Solution
+Upgrade to Apache Brooklyn 0.10.0. This includes commit correctly escaping text and other content provided by a user to prevent untrusted javascript from executing in the browser.
+
+## Temporary mitigation if you cannot upgrade to 0.10.0
+Do not share a Brooklyn server with untrusted users without an enhanced entitlements scheme.
+
+## Example exploit
+Attacking user deploys an entity with a name `<script>alert(0);</script>`.  Any user browsing that entity will have the `alert(0);` script executed.
+
+## Credit
+This vulnerability was discovered by Toshitsugu Yoneyama of Mitsui Bussan Secure Directions, Inc., and reported to JPCERT/CC who reported them to the Apache Software Foundation on his behalf.
+
+## Other references
+JPCERT/CC JVN#55489964

http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/27b7e358/website/community/security/index.md
----------------------------------------------------------------------
diff --git a/website/community/security/index.md b/website/community/security/index.md
new file mode 100644
index 0000000..a503f2b
--- /dev/null
+++ b/website/community/security/index.md
@@ -0,0 +1,13 @@
+---
+layout: website-normal
+title: Security Advisories
+started-pdf-exclude: true
+usermanual-pdf-exclude: true
+children:
+---
+
+[CVE-2017-3165: Cross-site vulnerabilities in Apache Brooklyn](CVE-2017-3165.html)
+
+[CVE-2016-8737: Cross-site request forgery vulnerability in Apache Brooklyn](CVE-2016-8737.html)
+
+[CVE-2016-8744: Apache Brooklyn, SnakeYAML configuration potentially allows remote code execution](CVE-2016-8744.html)


[2/2] brooklyn-docs git commit: Closes #149

Posted by ri...@apache.org.
Closes #149

Add our security advisories to public website


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/9ce71a4a
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/9ce71a4a
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/9ce71a4a

Branch: refs/heads/master
Commit: 9ce71a4a0f99b290eeff335af721adffe267fca3
Parents: 1141440 27b7e35
Author: Richard Downer <ri...@apache.org>
Authored: Fri Feb 10 17:01:24 2017 +0000
Committer: Richard Downer <ri...@apache.org>
Committed: Fri Feb 10 17:01:24 2017 +0000

----------------------------------------------------------------------
 website/community/index.md                  | 22 +++++++++++++
 website/community/security/CVE-2016-8737.md | 40 ++++++++++++++++++++++++
 website/community/security/CVE-2016-8744.md | 38 ++++++++++++++++++++++
 website/community/security/CVE-2017-3165.md | 31 ++++++++++++++++++
 website/community/security/index.md         | 13 ++++++++
 5 files changed, 144 insertions(+)
----------------------------------------------------------------------