kcve.ai취약점 정보 · 내 서버 확인

CVE-2017-7692 SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows post-authentication remote…

설명

SquirrelMail 1.4.22 (및 20170427_0200-SVN 이전의 다른 버전)는 포펜 호출에서 잘못 처리 된 sendmail.cf 파일을 통해 사후 인증 원격 코드 실행을 허용합니다. 이 취약점을 악용하여 원격 서버에서 임의의 셸 명령을 실행할 수 있습니다. 문제는 실행하기 전에 sendmail 명령을 살균하기 위해 escapeshellcmd()를 사용하는 initStream 함수를 사용하는 Deliver_SendMail.class.php에 있습니다. 이 경우 escapeshellcmd()의 사용은 정확하지 않습니다. 이 경우 임의의 명령 매개 변수를 삽입 할 수 있도록 공백을 탈출하지 않기 때문입니다. 문제는 sendmail 명령 줄 내에서 -f$envelopefrom에 있습니다. 따라서 대상 서버가 sendmail을 사용하고 SquirrelMail이 명령줄 프로그램으로 사용하도록 구성된 경우 sendmail을 임의의 명령의 실행을 트리거하는 공격자가 제공하는 구성 파일을 사용하도록 속일 수 있습니다. 악용을 위해 공격자는 sendmail.cf 파일을 이메일 첨부 파일로 업로드하고 "옵션 > 개인 정보 > 이메일 주소" 설정에서 -C 옵션으로 sendmail.cf 파일 이름을 삽입해야 합니다.

기계 번역

원문 보기

SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injection of arbitrary command parameters. The problem is in -f$envelopefrom within the sendmail command line. Hence, if the target server uses sendmail and SquirrelMail is configured to use it as a command-line program, it's possible to trick sendmail into using an attacker-provided configuration file that triggers the execution of an arbitrary command. For exploitation, the attacker must upload a sendmail.cf file as an email attachment, and inject the sendmail.cf filename with the -C option within the "Options > Personal Informations > Email Address" setting.

영향 받는 제품 제품 1개

  • squirrelmail

    squirrelmail

    영향 받는 버전

    • 1.4.22

    해결 버전

    해결된 버전 정보가 없습니다.

참고 자료 5건

‹ 목록

운영 중인 서버의 점검 지원 범위가 궁금하면

도입 문의