← PHP / Laravel 목차

PHP-075 / 중급

설정 캐시/환경변수를 외부에 노출 (config:cache 파일)

A05:2021 Security Misconfiguration · CWE-200 Exposure of Sensitive Information

왜 문제가 될까요?

bootstrap/cache/config.php 가 공개되면 모든 설정 값이 드러난다.

이렇게 수정하세요

nginx
# public 만 문서 루트, bootstrap/storage 경로는 웹에서 차단

더 읽기