🇰🇷 한글 설명
HortusFox (hortusfox-web) 6.3 이하 버전의 PlantAttachmentModel에서 제한 없는 파일 업로드 취약점이 발견되었습니다. 인증된 사용자가 /plants/attachments/add 경로를 통해 임의의 확장자를 가진 파일을 업로드할 수 있으며, 이를 통해 저장형 XSS 공격이나 PHP 코드를 실행하여 서버 권한을 탈취할 수 있습니다.
💡 쉬운 설명
로그인한 사용자가 서버에 허용되지 않은 파일을 마음대로 올릴 수 있는 보안 구멍이 있습니다. 해커가 악성 파일을 올리면 웹사이트를 조작하거나 서버를 직접 제어할 위험이 있습니다.
🇺🇸 원문 (English)
HortusFox (hortusfox-web) through 6.3 contains an unrestricted file upload vulnerability in PlantAttachmentModel that allows authenticated users to store files with client-supplied extensions under public/attachments/. Attackers can upload HTML or SVG files via /plants/attachments/add for stored cross-site scripting, or PHP files where .htaccess is unenforced to execute code.
📍 영향받는 시스템
HortusFox (hortusfox-web) 6.3 이하 버전
⚔️ 공격 벡터
/plants/attachments/add 엔드포인트를 통한 악성 파일(HTML, SVG, PHP 등) 업로드
🛡️ 대응 방법
파일 업로드 시 확장자 검증 로직을 강화하고, 업로드 디렉토리 내에서 스크립트 실행 권한을 제거하십시오.
🔧 검증 코드
명령어 결과에 PlantAttachmentModel이 포함되어 있고 버전이 6.3 이하인 경우 취약할 가능성이 높습니다.
grep -r "PlantAttachmentModel" /path/to/hortusfox-web/ || echo 'Model not found'