CVE-2017-12635 Due to differences in the Erlang-based JSON parser and JavaScript-based JSON parser, it is possible…
설명
Erlang 기반 JSON 파서와 JavaScript 기반 JSON 파서의 차이로 인해 Apache CouchDB에서 1.7.0 및 2.x 이전 2.1.1에서 관리 사용자를 나타내는 특수 사례 '_admin' 역할을 포함하여 데이터베이스 내에서 액세스 제어에 사용되는 'roles'에 대한 중복 키를 가진 _users 문서를 제출할 수 있습니다. CVE-2017-12636(Remote Code Execution)과 함께 사용하면 관리자가 아닌 사용자가 데이터베이스 시스템 사용자로서 서버에서 임의의 셸 명령에 액세스할 수 있습니다. JSON 파서의 차이점으로 인해 JSON에서 두 개의 'roles'키를 사용할 수 있는 경우 두 번째 키가 문서 쓰기 권한을 부여하기 위해 사용되지만 첫 번째 'roles'키는 새로 만든 사용자에 대한 후속 인증에 사용됩니다. 설계에 따라 사용자는 스스로 역할을 할당할 수 없습니다. 이 취약점은 관리자가 아닌 사용자가 자신에게 관리자 권한을 부여할 수 있도록 합니다.
기계 번역
원문 보기
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.
영향 받는 제품 제품 1개
-
Apache Software Foundation
Apache CouchDB
영향 받는 버전
- 1.2.0 이상 1.6.1 이하
- 2.0.0 이상 2.1.0 이하
해결 버전
해결된 버전 정보가 없습니다.
참고 자료 6건
- lists.apache.org https://lists.apache.org/thread.html/6c405bf3f8358e6314076be9f48c89a2e0ddf00539906291ebdf0c67%40%3Cdev.couchdb.apache.org%3E (새 창)
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/01/msg00026.html (새 창)
- security.gentoo.org https://security.gentoo.org/glsa/201711-16 (새 창)
- exploit-db.com https://www.exploit-db.com/exploits/44498/ (새 창)
- exploit-db.com https://www.exploit-db.com/exploits/45019/ (새 창)
- securityfocus.com http://www.securityfocus.com/bid/101868 (새 창)