🇰🇷 한글 설명
PHP Content Architect(NoAh) 0.9 pre 1.2 이하 버전의 템플릿 디렉터리에서 경로 조작 문자(../)를 통한 디렉터리 이동으로 서버의 임의 파일을 원격에서 읽을 수 있는 취약점입니다. css_file.php, js_file.php, xml_file.php의 filepath 파라미터에서 발생합니다.
💡 쉬운 설명
웹사이트에서 파일을 불러올 때 경로 검증이 부족해서, 공격자가 특수 문자(../)를 사용해 서버의 민감한 파일(설정파일, 데이터베이스 정보 등)을 읽을 수 있는 문제입니다. 마치 폴더를 타고 올라가서 보안이 없는 다른 폴더의 파일을 볼 수 있게 되는 것입니다.
🇺🇸 원문 (English)
Multiple directory traversal vulnerabilities in PHP Content Architect (aka NoAh) 0.9 pre 1.2 and earlier allow remote attackers to read arbitrary files via a .. (dot dot) in the filepath parameter to (1) css_file.php, (2) js_file.php, or (3) xml_file.php in noah/modules/nosystem/templates/.
📍 영향받는 시스템
PHP Content Architect (NoAh) 버전 0.9 pre 1.2 및 이전 버전
⚔️ 공격 벡터
공격자가 css_file.php?filepath=../../etc/passwd 같은 형태로 ../ 문자를 반복 사용해 서버 파일 시스템 접근
🛡️ 대응 방법
NoAh 최신 버전으로 업그레이드하거나, 경로 입력값에 대해 ../ 및 절대경로를 차단하는 입력 검증 추가
🔧 검증 코드
명령 실행 후 /etc/passwd 파일 내용(root:x:0:0:...)이 출력되면 취약점 존재. 접근 거부 또는 파일 없음 메시지가 나오면 패치됨
curl -s 'http://target/noah/modules/nosystem/templates/css_file.php?filepath=../../etc/passwd' | head -1