CVE-2019-9858 Remote code execution was discovered in Horde Groupware Webmail 5.2.22 and 5.2.17. Horde/Form/Type.…
설명
원격 코드 실행은 호드 그룹웨어 웹 메일 5.2.22 및 5.2.17에서 발견되었습니다. Horde/Form/Type.php는 이미지 업로드를 양식으로 처리하는 취약한 클래스를 포함합니다. 업로드 시 Horde_Form_Type_image 메서드가 호출되면 getImage() 및 _getUpload() 함수가 호출되며, 이 함수는 안전하지 않은 사용자 입력을 경로로 사용하여 이미지를 저장합니다. unsanitized POST 파라미터 object[photo][img][file]은 $upload[img][file] PHP 변수에 저장되어 공격자가 move_uploaded_file()에 전달된 $tmp_file을 조작하여 업로드된 파일을 저장할 수 있습니다. 매개 변수를 ../usr/share/horde/static/bd.php로 설정하면 웹 루트 안에 PHP 백도어를 작성할 수 있습니다. 정적/ 대상 폴더는 호드 설치에서 항상 쓰기 가능하기 때문에 백도어를 드롭할 수 있는 좋은 후보입니다. (고정화되지 않은 POST 파라미터는 양식에 의해 제출되지 않기 때문에 아마도 주목을 받지 못할 것입니다.
기계 번역
원문 보기
Remote code execution was discovered in Horde Groupware Webmail 5.2.22 and 5.2.17. Horde/Form/Type.php contains a vulnerable class that handles image upload in forms. When the Horde_Form_Type_image method onSubmit() is called on uploads, it invokes the functions getImage() and _getUpload(), which uses unsanitized user input as a path to save the image. The unsanitized POST parameter object[photo][img][file] is saved in the $upload[img][file] PHP variable, allowing an attacker to manipulate the $tmp_file passed to move_uploaded_file() to save the uploaded file. By setting the parameter to (for example) ../usr/share/horde/static/bd.php, one can write a PHP backdoor inside the web root. The static/ destination folder is a good candidate to drop the backdoor because it is always writable in Horde installations. (The unsanitized POST parameter went probably unnoticed because it's never submitted by the forms, which default to securely using a random path.)
영향 받는 제품 제품 2개
-
debian
debian linux
영향 받는 버전
- 8.0
- 9.0
해결 버전
해결된 버전 정보가 없습니다.
-
horde
groupware
영향 받는 버전
- 5.2.17
- 5.2.22
해결 버전
해결된 버전 정보가 없습니다.