CVE-2021-21425 Unauthenticated Arbitrary YAML Write/Update leads to Code Execution
인증되지 않은 임의의 YAML 쓰기/업데이트로 코드 실행
설명
Grav Admin Plugin is an HTML user interface that provides a way to configure Grav and create and modify pages. In versions 1.10.7 and earlier, an unauthenticated user can execute some methods of administrator controller without needing any credentials. Particular method execution will result in arbitrary YAML file creation or content change of existing YAML files on the system. Successfully exploitation of that vulnerability results in configuration changes, such as general site information change, custom scheduler job definition, etc. Due to the nature of the vulnerability, an adversary can change some part of the webpage, or hijack an administrator account, or execute operating system command under the context of the web-server user. This vulnerability is fixed in version 1.10.8. Blocking access to the `/admin` path from untrusted sources can be applied as a workaround.
Grav Admin Plugin은 Grav를 구성하고 페이지를 만들고 수정하는 방법을 제공하는 HTML 사용자 인터페이스입니다. 1.10.7 이하 버전에서는 인증되지 않은 사용자가 자격 증명 없이 관리자 컨트롤러의 일부 방법을 실행할 수 있습니다. 특정 메서드 실행은 시스템에서 기존 YAML 파일의 임의 YAML 파일 생성 또는 콘텐츠 변경을 초래합니다. 이 취약점을 성공적으로 악용하면 일반 사이트 정보 변경, 사용자 지정 스케줄러 작업 정의 등과 같은 구성 변경이 발생합니다. 이 취약점의 특성상, 공격자는 웹 페이지의 일부를 변경하거나 관리자 계정을 하이재킹하거나 웹 서버 사용자의 컨텍스트에 따라 운영 체제 명령을 실행할 수 있습니다. 이 취약점은 버전 1.10.8에서 수정되었습니다. 신뢰할 수 없는 소스에서 `/admin' 경로에 대한 접근을 차단하는 것은 해결 방법으로 적용될 수 있습니다.
영향 받는 제품 제품 2개
-
getgrav
grav-plugin-admin
영향 받는 버전
- 1.10.7 이하
해결 버전
해결 버전은 설명 참고
-
NVD 기준 해결 버전 있음
getgrav
grav-plugin-admin
영향 받는 버전
- 1.10.8 미만
해결 버전
- 1.10.8 이상
참고 자료 4건
- packetstormsecurity.com http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html (새 창)
- packetstormsecurity.com http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html (새 창)
- github.com https://github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj (새 창)
- pentest.blog https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/ (새 창)