🇰🇷 한글 설명
Thelia v2.6.1의 번역 편집기에서 경로 탐색 및 PHP 코드 주입 취약점이 발견되었습니다. 인증된 사용자가 이를 악용하여 웹 서버 권한으로 임의의 PHP 파일을 생성하고 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
해커가 관리자 권한을 이용해 서버의 원래 폴더가 아닌 엉뚱한 곳에 악성 파일을 저장할 수 있습니다. 이 파일을 실행하면 서버를 마음대로 조종할 수 있게 됩니다.
🇺🇸 원문 (English)
Thelia v2.6.1 contains path traversal and PHP code injection vulnerabilities in its translation editor that can be chained to achieve remote code execution. The `item_name` parameter, used to build the translation file's write path, does not sanitize directory traversal sequences such as `../`. This enables an authenticated user with `UPDATE`-level permissions on `admin.configuration.language` to write files outside the expected `templates/` directory, including to web‑accessible paths. Separately, the translation‑writing logic does not escape `\` in user‑supplied values, allowing inputs to break out of the PHP string literal and inject executable code into the translation file. Chained together, these flaws allow a malicious PHP file to be written to a web-accessible path and executed with the web‑server’s privileges.
⚔️ 공격 벡터
인증된 사용자가 item_name 파라미터에 경로 탐색 문자(../)와 PHP 주입 코드를 결합하여 공격
🛡️ 대응 방법
Thelia를 최신 보안 패치가 적용된 버전으로 업데이트하거나 입력값 검증 로직을 수정해야 합니다.
🔧 검증 코드
출력된 버전 정보가 v2.6.1인지 확인하여 취약 여부를 판단합니다.
composer show thelia/thelia | grep 'versions'