[Code 개선] #4. [Security] 안전한 파일 업로드 핸들링 및 한국어 파일명 보존 로직 구현 #42
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
1. 목표
업로드된 파일의 경로 탐색 공격을 방지하고, 서버 저장 시 보안성을 높이면서도 사용자에게는 원래의 한국어 파일명을 제공할 수 있는 구조를 구축합니다.
2. 상세 원인 및 배경
file.filename을 그대로 사용하여 저장하므로../../etc/passwd와 같은 위험한 파일명으로 시스템 파일 접근이 가능할 수 있습니다.secure_filename사용 시 한국어가 모두 제거되는 사용자 불편이 있습니다.Original: Kyeongmin/test#34