CVE-2017-12635
Apache CouchDB Role Confusion Vulnerability
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.
INFO
Published Date :
Nov. 14, 2017, 8:29 p.m.
Last Modified :
Nov. 7, 2023, 2:38 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2017-12635 has a 31 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2017-12635
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
POC for CouchDB CVE-2017-12635
Python
Small & Fast Vulnerability Scanner Engine based on XRAY YAML Rule | 基于 XRAY YAML 规则的超轻量快速漏洞扫描引擎 | 可执行文件体积仅 2 MB
poc security vulnerability vulnerability-detection vulnerability-scanner web-security web-vulnerability-scanner
Batchfile Go ANTLR
Tiger是一款在攻防演练中对目标资产重点系统指纹识别、精准漏扫的工具。是一款打点神器。
None
在公网收集的gobypoc+部分自己加的poc
None
None
HVVExploitApply工具POC登记信息
None
Python Jupyter Notebook TeX
A curated list of my GitHub Stars
None
一个Vulhub漏洞复现知识库
vulnerability exploit
一个漏洞POC知识库 目前数量 1000+
poc
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2017-12635
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2017-12635
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference Apache Software Foundation https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67%40%3Cdev.couchdb.apache.org%3E [No types assigned] Removed Reference Apache Software Foundation https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67@%3Cdev.couchdb.apache.org%3E -
CWE Remap by [email protected]
Oct. 03, 2019
Action Type Old Value New Value Changed CWE CWE-264 CWE-269 -
CVE Modified by [email protected]
May. 13, 2019
Action Type Old Value New Value Added Reference https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbmu03935en_us [No Types Assigned] -
CVE Modified by [email protected]
Jul. 28, 2018
Action Type Old Value New Value Added Reference https://www.exploit-db.com/exploits/45019/ [No Types Assigned] -
CVE Modified by [email protected]
Apr. 26, 2018
Action Type Old Value New Value Added Reference https://www.exploit-db.com/exploits/44498/ [No Types Assigned] -
CVE Modified by [email protected]
Feb. 04, 2018
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2018/01/msg00026.html [No Types Assigned] -
Initial Analysis by [email protected]
Dec. 04, 2017
Action Type Old Value New Value Added CVSS V2 (AV:N/AC:L/Au:N/C:C/I:C/A:C) Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://security.gentoo.org/glsa/201711-16 No Types Assigned https://security.gentoo.org/glsa/201711-16 Third Party Advisory Changed Reference Type http://www.securityfocus.com/bid/101868 No Types Assigned http://www.securityfocus.com/bid/101868 Third Party Advisory, VDB Entry Changed Reference Type https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67@%3Cdev.couchdb.apache.org%3E No Types Assigned https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67@%3Cdev.couchdb.apache.org%3E Mailing List, Vendor Advisory Added CWE CWE-264 Added CPE Configuration OR *cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:* versions up to (excluding) 1.7.0 *cpe:2.3:a:apache:couchdb:2.0.0:*:*:*:*:*:*:* *cpe:2.3:a:apache:couchdb:2.0.0:rc1:*:*:*:*:*:* *cpe:2.3:a:apache:couchdb:2.0.0:rc2:*:*:*:*:*:* *cpe:2.3:a:apache:couchdb:2.0.0:rc3:*:*:*:*:*:* *cpe:2.3:a:apache:couchdb:2.0.0:rc4:*:*:*:*:*:* -
CVE Modified by [email protected]
Nov. 21, 2017
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/201711-16 [No Types Assigned] -
CVE Modified by [email protected]
Nov. 19, 2017
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/101868 [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2017-12635
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2017-12635
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
97.37 }} 0.46%
score
0.99924
percentile