Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-38295 PoC — Privilege escalation vulnerability when using HTML attachments

Source
Associated Vulnerability
Title: Privilege escalation vulnerability when using HTML attachments (CVE-2021-38295)
Description:In Apache CouchDB, a malicious user with permission to create documents in a database is able to attach a HTML attachment to a document. If a CouchDB admin opens that attachment in a browser, e.g. via the CouchDB admin interface Fauxton, any JavaScript code embedded in that HTML attachment will be executed within the security context of that admin. A similar route is available with the already deprecated _show and _list functionality. This privilege escalation vulnerability allows an attacker to add or remove data in any database or make configuration changes. This issue affected Apache CouchDB prior to 3.1.2
Description
A simple Python proof of concept for CVE-2021-38295.
Readme
# CVE-2021-38295-PoC
A simple Python proof of concept for CVE-2021-38295.

### Related Blog Post
[LINK TO BLOG]

### Usage:

```
Usage: cve-xxxx <host> <db> <user:pass>
```

Simply supply the script with a host, a database which your creds have access too, and the username password pair.
If everything works, you'll get a URL which links to the malicious attachment.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →