kcve.ai취약점 정보 · 내 자산 확인

CVE-2023-48292 XWiki Admin Tools Application Run Shell Command allows CSRF RCE attacks

XWiki 관리자 도구 응용 프로그램 실행 쉘 명령은 CSRF RCE 공격을 허용합니다

설명

The XWiki Admin Tools Application provides tools to help the administration of XWiki. Starting in version 4.4 and prior to version 4.5.1, a cross site request forgery vulnerability in the admin tool for executing shell commands on the server allows an attacker to execute arbitrary shell commands by tricking an admin into loading the URL with the shell command. A very simple possibility for an attack are comments. When the attacker can leave a comment on any page in the wiki it is sufficient to include an image with an URL like `/xwiki/bin/view/Admin/RunShellCommand?command=touch%20/tmp/attacked` in the comment. When an admin views the comment, the file `/tmp/attacked` will be created on the server. The output of the command is also vulnerable to XWiki syntax injection which offers a simple way to execute Groovy in the context of the XWiki installation and thus an even easier way to compromise the integrity and confidentiality of the whole XWiki installation. This has been patched by adding a form token check in version 4.5.1 of the admin tools. Some workarounds are available. The patch can be applied manually to the affected wiki pages. Alternatively, the document `Admin.RunShellCommand` can also be deleted if the possibility to run shell commands isn't needed.

XWiki 관리 도구 응용 프로그램은 XWiki의 관리를 돕기 위해 도구를 제공합니다. 버전 4.4부터 버전 4.5.1 이전까지, 서버에서 셸 명령을 실행하기 위한 관리 도구의 교차 사이트 요청 위조 취약점을 통해 공격자는 쉘 명령을 사용하여 URL을 로드하도록 관리자를 속여 임의의 셸 명령을 실행할 수 있습니다. 공격의 아주 간단한 가능성은 의견입니다. 공격자가 위키의 어느 페이지에라도 댓글을 남길 수 있다면 코멘트에 `/xwiki/bin/view/Admin/RunShellCommand?command=touch%20/tmp/attacked'와 같은 URL을 가진 이미지를 포함시키는 것으로 충분합니다. 관리자가 댓글을 볼 때, 서버에서 `/tmp/attacked` 파일이 생성됩니다. 명령의 출력은 또한 XWiki 신택스 주입에 취약하며, 이는 XWiki 설치의 맥락에서 Groovy를 실행하는 간단한 방법을 제공하며 따라서 전체 XWiki 설치의 무결성과 기밀성을 손상시키는 훨씬 쉬운 방법을 제공합니다. 이것은 관리 도구의 버전 4.5.1에서 양식 토큰 검사를 추가하여 패치되었습니다. 일부 workarounds가 가능합니다. 패치는 영향을 받는 위키 페이지에 수동으로 적용할 수 있습니다. 쉘 명령을 실행할 가능성이 없는 경우 문서 `Admin.RunShellCommand`도 삭제할 수 있습니다.

영향 받는 제품 제품 1개

  • xwiki-contrib

    application-admintools

    해결 버전 있음

    영향 받는 버전

    • 4.4 이상 4.5.1 미만

    해결 버전

    • 4.5.1 이상

참고 자료 3건

‹ 목록

점검 지원 범위 문의

도입 문의