CVE-2018-11769: Apache CouchDB Remote Code Execution ( Versions 1.x and ≤2.1.2)
CouchDB administrators could change configuration settings through the HTTP API that were meant to be blocked by a blacklist, letting them escalate to the operating system user running CouchDB. This effectively gave an admin arbitrary remote code execution, bypassing earlier mitigations.
seclists.org
Published on seclists.org
CouchDB administrative users can configure the database server via HTTP(S). Due to insufficient validation of administrator-supplied configuration settings via the HTTP API, it is possible for a CouchDB administrator user to escalate their privileges to that of the operating system’s user under which CouchDB runs, by…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the blacklist of forbidden configuration settings was incomplete, so administrator-supplied settings via the HTTP API were not sufficiently validated.
Impact
A CouchDB administrator could escalate to the operating system user and gain arbitrary remote code execution, bypassing mitigations for earlier CVEs; the advisory rates severity as Low.
What the attacker needed
Administrator access to CouchDB; HTTP API reachable
The fix
It was fixed by upgrading to CouchDB 2.2.0, or in place by removing the _config route from default.ini or blocking the /_config or /_node/*/_config routes at a reverse proxy.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
CouchDB is a database that can be managed over the web. Its administrators were supposed to be stopped from changing certain dangerous settings, but the block list was incomplete, so an admin could change them anyway. That let an admin run commands on the server as the operating system user, which is more power than a database admin should have.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.