Juniper Networks
Solutions
Products & Services
Company
Partners
Support
Education

Signature Detail

Security Intelligence Center
Signatures
Print

This site is deprecated. Please CLICK HERE for latest updates

Short Name

HTTP:APACHE:JSON-PRIV-ESC

Severity

Major

Recommended

Yes

Recommended Action

Drop

Category

HTTP

Keywords

Apache CouchDB JSON Remote Privilege Escalation

Release Date

2018/06/19

Update Number

3075

Supported Platforms

idp-4.0+, isg-3.0+, j-series-9.5+, mx-11.4+, srx-12.1+, srx-branch-12.1+, vmx-17.4+, vsrx-12.1+, vsrx3bsd-18.2+

HTTP: Apache CouchDB JSON Remote Privilege Escalation


This signature detects an attempt to exploit a privilege escalation vulnerability which has been reported in CouchDB. A remote, unauthenticated attacker could exploit this vulnerability by sending a crafted HTTP request to a vulnerable server. Successful exploitation could result in an unauthorized user gaining access to CouchDB.

Extended Description

Due to differences in the Erlang-based JSON parser and JavaScript-based JSON parser, it is possible in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to submit _users documents with duplicate keys for 'roles' used for access control within the database, including the special case '_admin' role, that denotes administrative users. In combination with CVE-2017-12636 (Remote Code Execution), this can be used to give non-admin users access to arbitrary shell commands on the server as the database system user. The JSON parser differences result in behaviour that if two 'roles' keys are available in the JSON, the second one will be used for authorising the document write, but the first 'roles' key is used for subsequent authorization for the newly created user. By design, users can not assign themselves roles. The vulnerability allows non-admin users to give themselves admin privileges.

Affected Products

  • Apache couchdb 0.10.0
  • Apache couchdb 0.10.1
  • Apache couchdb 0.10.2
  • Apache couchdb 0.11.0
  • Apache couchdb 0.11.1
  • Apache couchdb 0.11.2
  • Apache couchdb 0.8.0
  • Apache couchdb 0.8.1
  • Apache couchdb 0.9.0
  • Apache couchdb 0.9.1
  • Apache couchdb 0.9.2
  • Apache couchdb 1.0.0
  • Apache couchdb 1.0.1
  • Apache couchdb 1.0.2
  • Apache couchdb 1.0.3
  • Apache couchdb 1.0.4
  • Apache couchdb 1.1.0
  • Apache couchdb 1.1.1
  • Apache couchdb 1.1.2
  • Apache couchdb 1.2.0
  • Apache couchdb 1.2.1
  • Apache couchdb 1.2.2
  • Apache couchdb 1.3.0
  • Apache couchdb 1.3.1
  • Apache couchdb 1.4.0
  • Apache couchdb 1.5.0
  • Apache couchdb 1.5.1
  • Apache couchdb 1.6.0
  • Apache couchdb 1.6.1
  • Apache couchdb 2.0.0

References

  • BugTraq: 101868
  • CVE: CVE-2017-12635

Site Map
RSS Feeds
Careers
Accessibility
Feedback
Privacy Policy
Legal Notices
Copyright © 1999-2010 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out