
悪意のある Content-Type ヘッダーを介して Apache Struts2 S2-045 (CVE-2017-5638) のリモートコード実行脆弱性を悪用する概念実証エクスプロイト。
#CNVD-ID CNVD-2017-02474 発行日 2017-03-07 危険レベル 高 (AV:N/AC:L/Au:N/C:C/I:C/A:C) 影響製品 Apache struts >=2.3.5、<=2.3.31 Apache struts >=2.5、<=2.5.10 CVE ID CVE-2017-5638 脆弱性説明 Apache Strutsは、エンタープライズJava Webアプリケーションを作成するためのオープンソースフレームワークです。 Apache Struts2にはS2-045リモートコード実行脆弱性が存在します。リモートの攻撃者はこの脆弱性を利用して、Webサーバーの制御を直接取得することができます。
#脆弱性タイプ 汎用ソフトウェア/ハードウェア脆弱性
#URL参照リンク https://cwiki.apache.org/confluence/display/WW/S2-045 脆弱性解決策 Apache Struts公式は、リリースされた新しいバージョンでこの脆弱性を修正しました。Jakarta Multipart parserモジュールを使用しているユーザーは、Apache Strutsバージョン2.3.32または2.5.10.1にアップグレードすることを推奨します: #https://cwiki.apache.org/confluence/display/WW/S2-045
#概要 Possible Remote Code Execution when performing file upload based on Jakarta Multipart parser. この文書を読むべき対象 All Struts 2 developers and users 脆弱性の影響 Possible RCE when performing file upload based on Jakarta Multipart parser 最大セキュリティ評価 高 推奨事項 Upgrade to Struts 2.3.32 or Struts 2.5.10.1 影響を受けるソフトウェア:Struts 2.3.5 - Struts 2.3.31, Struts 2.5 - Struts 2.5.10 報告者 Nike Zheng dot zheng at dbappsecurity dot com dot cn> CVE識別子 CVE-2017-5638 問題 It is possible to perform a RCE attack with a malicious Content-Type value. If the Content-Type value isn't valid an exception is thrown which is then used to display an error message to a user. 解決策 If you are using Jakarta based file upload Multipart parser, upgrade to Apache Struts version 2.3.32 or 2.5.10.1. You can also switch to a different implementation of the Multipart parser. 後方互換性 No backward incompatibility issues are expected. 回避策 Implement a Servlet filter which will validate Content-Type and throw away request with suspicious values not matching multipart/form-data.