🇰🇷 한글 설명
TextPattern CMS 4.8.7에서 인증된 공격자가 파일 업로드 기능을 통해 악성 PHP 파일을 업로드하여 원격 코드 실행(RCE)을 수행할 수 있는 취약점입니다. 업로드된 파일은 /textpattern/files/ 경로에 저장되며, GET 파라미터를 통해 시스템 함수로 전달되어 임의의 명령어 실행이 가능합니다.
💡 쉬운 설명
TextPattern CMS에서 관리자 권한 사용자가 파일 업로드 기능을 악용하여 악의적인 프로그램 코드를 웹사이트에 심을 수 있습니다. 심어진 코드는 웹사이트를 통해 실행되어 서버를 완전히 제어할 수 있게 됩니다.
🇺🇸 원문 (English)
TextPattern CMS 4.8.7 contains a remote code execution vulnerability that allows authenticated attackers to execute arbitrary commands by uploading malicious PHP files through the file upload functionality. Attackers can upload a PHP shell via the Files section in the content area and execute commands by accessing the uploaded file at /textpattern/files/ with GET parameters passed to the system function.
📍 영향받는 시스템
TextPattern CMS 버전 4.8.7 및 그 이전 버전
⚔️ 공격 벡터
인증된 사용자가 Content > Files 섹션에서 PHP 파일을 업로드 후 /textpattern/files/ 경로로 접근하여 GET 파라미터를 통해 명령어 실행
🛡️ 대응 방법
TextPattern CMS를 최신 버전으로 업그레이드하고, 파일 업로드 기능에 대한 접근 제한 및 PHP 파일 실행 방지 설정 적용
🔧 검증 코드
403 Forbidden 또는 404가 나타나면 안전하고, 디렉토리 목록이 보이면 검증 필요
curl -s https://target.com/textpattern/files/ 2>&1 | grep -E '(index of|forbidden|404)' || echo 'Potential vulnerability'