nugawiki

./categories/os

Webshell 대응 (업로드·Apache·PHP)

업데이트 2026-07-21 조회수

Webshell 대응

  • 업로드: whitelist 확장자만 서버 검증
  • 저장 경로 실행권한 제거, 파일명 난수화, 확장자 제거/변경, Docroot 밖 이동

Apache (업로드 디렉터리 PHP 비활성)

<Directory /path/to/upload>
  php_admin_value engine Off
</Directory>

PHP

disable_functions = system,exec,shell_exec,passthru,phpinfo,show_source,popen,proc_open
allow_url_fopen = Off

업로드 서버와 웹 서버 물리 분리 권장.

./comments