CWE Code: 269
Vulnerability Type: privilege_escalation
CVSS Score: 10.0
CWE Name:  Improper Privilege Management
Summary: due to differences in the erlang-based json parser and javascript-based json parser, it is possible in apache couchdb before 1.7.0 and 2.x before 2.1.1 to submit _users documents with duplicate keys for 'roles' used for access control within the database, including the special case '_admin' role, that denotes administrative users. in combination with cve-2017-12636 (remote code execution), this can be used to give non-admin users access to arbitrary shell commands on the server as the database system user. the json parser differences result in behaviour that if two 'roles' keys are available in the json, the second one will be used for authorising the document write, but the first 'roles' key is used for subsequent authorization for the newly created user. by design, users can not assign themselves roles. the vulnerability allows non-admin users to give themselves admin privileges.
Access Authentication: NONE
Access Complexity: LOW
Access Vector: NETWORK
Impact (C/I/A): COMPLETE/COMPLETE/COMPLETE
Published Date: 2017-11-14
Last Modified Date: 2019-10-03