🇰🇷 한글 설명
Quick.Cart에서 테마 선택 메커니즘에 로컬 파일 포함 및 경로 조작 취약점이 발견되었습니다. 이 취약점으로 인해 특권 사용자가任意 파일 내용을 업로드할 수 있으며, 이는 원격 코드 실행으로 이어질 수 있습니다.
💡 쉬운 설명
Quick.Cart에서 테마를 선택할 때 파일을 포함시키거나 경로를 조작할 수 있는 취약점이 발견되었습니다. 이 취약점을 이용하면 공격자가 원격에서 코드를 실행할 수 있습니다. Quick.Cart 6.7 버전에서 확인되었으며, 다른 버전에서도 취약할 수 있습니다.
🇺🇸 원문 (English)
Quick.Cart is vulnerable to Local File Inclusion and Path Traversal issues in the theme selection mechanism. Quick.Cart allows a privileged user to upload arbitrary file contents while only validating the filename extension. This allows an attacker to include and execute uploaded PHP code, resulting in Remote Code Execution on the server.
The vendor was notified early about this vulnerability, but didn't respond with the details of vulnerability or vulnerable version range. Only version 6.7 was tested and confirmed as vulnerable, other versions were not tested and might also be vulnerable.
📍 영향받는 시스템
Quick.Cart 6.7 버전, 다른 버전도 가능
⚔️ 공격 벡터
테마 선택 메커니즘을 이용한 로컬 파일 포함 및 경로 조작
🛡️ 대응 방법
최신 버전의 Quick.Cart를 업데이트하거나, 파일 업로드 시 파일 내용을 검사하는 보안 패치 적용
🔧 검증 코드
로컬에서 Quick.Cart가 설치되어 있는 경우, Python을 이용하여 취약점을 점검할 수 있습니다. 위의 코드를 실행하기 전에, Quick.Cart의 URL과 테마 파일 경로를 확인해야 합니다. 또한, 이 코드는 취약점의 존재 여부만을 점검하며, 실제 공격에는 사용하지 말아야 합니다.
python -c "import requests; r = requests.get('http://localhost/quickcart/theme.php?theme=../../../../etc/passwd'); print('취약' if 'root:' in r.text else '양호')"