Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

파일 확장자 검증 if문 수정 #208

Closed
wants to merge 1 commit into from

Conversation

Jueuunn7
Copy link

💡 개요

S3에 이미지 파일 업로드시 이중 확장자 공격을 통해 확장자 검증 조건문을 쉽게 우회할 수 있습니다.

S3Util.java

splitFile.length < 2

해당 if문은 이중 확장자 공격에 취약하기 때문에 if문의 조건을 수정하였습니다.

poc는 다음과 같습니다.
shellscript.png.sh

📃 작업내용

> -> != 로 변경

파일 확장자 우회 취약점 패치
@Jueuunn7 Jueuunn7 closed this by deleting the head repository Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant