CVE-2023-45725 Apache CouchDB, IBM Cloudant: Privilege Escalation Using _design Documents
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Ubuntu
Description
Design document functions which receive a user http request object may expose authorization or session cookie headers of the user who accesses the document.
These design document functions are:
- list
- show
- rewrite
- update
An attacker can leak the session component using an HTML-like output, insert the session as an external resource (such as an image), or store the credential in a _local document with an "update" function.
For the attack to succeed the attacker has to be able to insert the design documents into the database, then manipulate a user to access a function from that design document.
Workaround: Avoid using design documents from untrusted sources which may attempt to access or manipulate request object's headers
Upgrade path
4 packages: 3 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/couchdb(Ubuntu 16.04) | = 1.6.0-0ubuntu7; All versions | No fix listed | No fix yet |
| Apache CouchDB | <= 3.3.2 | after 3.3.2 | Fixed |
| apache couchdb | <= 3.3.2 | after 3.3.2 | Fixed |
| apache IBM Cloudant | < 8413 | 8413 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache CouchDB | <= 3.3.2 | No fix listed |
| apache IBM Cloudant | < 8413 | 8413 |
| apache couchdb | <= 3.3.2 | No fix listed |
| ubuntu/couchdb(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/couchdb(Ubuntu:16.04) | = 1.6.0-0ubuntu7 | No fix listed |
References
- lists.apache.org issue-tracking mailing-list vendor-advisory
- docs.couchdb.org issue-tracking patch release-notes vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking