Vulnerability Note VU#845332
OrientDB and Studio prior to version 2.1.1 contain multiple vulnerabilities
Original Release date: 03 Sep 2015 | Last revised: 03 Sep 2015

Overview
Studio for OrientDB Server Community Edition version prior to version 2.1.1 contains several vulnerabilities.

Description
CWE-352: Cross-Site Request Forgery (CSRF) – CVE-2015-2912
The Studio web interface to OrientDB contains a CSRF vulnerability. An attacker can perform actions with the same permissions as a victim user, provided the victim has an active session and is induced to trigger the malicious request.

The version of Studio bundled with OrientDB Community Edition version 2.0.3 has been reported as vulnerable. Other versions prior to version 2.0.15 and 2.1.1 may also be vulnerable.

CWE-330: Use of Insufficiently Random Values – CVE-2015-2913

OrientDB prior to version 2.1.0 utilizes the Java library java.util.Random for Session IDs. However, this class is not random enough for security-related use. An attacker may be able to use this value to determine the internal state of the random number generator and predict future values.

CWE-20: Improper Input Validation – CVE-2015-2918

OrientDB Studio web management interface does not by default enforce the same-origin policy in X-Frame-Options response headers. An attacker can conduct clickjacking attacks via a crafted web page.

Impact
An unauthenticated remote attacker may perform actions with the same permissions of a victim user. An authenticated user may be able to gain administrative privileges to the database by manipulating the Session ID.

Solution
Apply an update

OrientDB has released versions 2.0.15 and 2.1.1 to address CVE-2015-2912 and CVE-2015-2913.

Affected users are encouraged to update as soon as possible.

The update addresses CVE-2015-2912 by disabling JSONP by default. Consider your threat model, mitigations, and needs before re-enabling this functionality.

CVE-2015-2913 is addressed by using java.security.SecureRandom to generate random numbers.

Set HTTP additional X-Frame-Options header

Setting the additional X-Frame-Options header prevents clickjacking attacks (CVE-2015-2918). To enable this, use the following command line argument when starting the server:

   -Dnetwork.http.additionalResponseHeaders="X-FRAME-OPTIONS: DENY"

or add this value to the server’s orientdb-server-config.xml file.

Alternately, you may consider the following workarounds:
Disable OrientDB Studio

Consider disabling Studio if it is not required. Disabling Studio prevents these issues from being accessible.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate UpdatedOrient TechnologiesAffected10 Jun 201518 Aug 2015If you are a vendor and your product is affected, let
us know.

CVSS Metrics (Learn More)

Group
Score
Vector

Base
6.0
AV:N/AC:M/Au:S/C:P/I:P/A:P

Temporal
5.1
E:POC/RL:U/RC:UR

Environmental
3.8
CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

https://github.com/orientechnologies/orientdb/commit/668ece96be210e742a4e2820a3085b215cf55104
https://github.com/orientechnologies/orientdb/issues/4824

Credit

Thanks to Raffaela Frank for reporting this vulnerability to us.
This document was written by Garret Wassermann.

Other Information

CVE IDs:
CVE-2015-2912
CVE-2015-2913
CVE-2015-2918

Date Public:
31 Aug 2015

Date First Published:
03 Sep 2015

Date Last Updated:
03 Sep 2015

Document Revision:
48

FeedbackIf you have feedback, comments, or additional information about this vulnerability, please send us email.

Leave a Reply