← Java / Spring 목차

JAVA-056 / 중급

정적 리소스/설정 디렉터리의 Git 노출 (.git)

A05:2021 Security Misconfiguration · CWE-538 Insertion of Sensitive Information into Externally-Accessible File

왜 문제가 될까요?

/.git/config 등으로 소스와 이력을 복원한다.

이렇게 수정하세요

text
jar 만 배포, 정적 경로는 src/main/resources/static 로 한정, .git 차단

더 읽기