
Burp SuiteのREST API向けRubyコマンドラインインターフェース
Burp SuiteのREST APIへのRubyコマンドラインインターフェース
burpcommander VERSION: 1.0.1 - UPDATED: 08/29/2018
-t, --target [IP Address] Defaults to 127.0.0.1
-p, --port [Port Number] Defaults to 1337
-k, --key [API Key] If you require an API key specify it here
-i, --issue-type-id [String] String to search for. Example: "1048832"
-n, --issue-name [String] String to search for. Example: "Command Injection"
-D, --DESCRIPTION Returns the description of a requested issue
-M, --METRICS Returns the scan_metrics for a given task_id
-I, --ISSUES [Optional Number] Returns the issue_events of a given task_id
-s, --scan [Complete URL] Example: https://scantarget.com
-S, --scan-id [Number] Returns ScanProgress for a given task_id
-U, --username [String] Username to supply for an authenticated scan
-P, --password [String] Password to supply for an authenticated scan
-x, --proxy [Proxy HOST:PORT] Example: 127.0.0.1:8080
--proxy-username [Proxy user] Proxy username (if any)
--proxy-password [Proxy pass] Proxy password (if any)
-v, --verbose Enables verbose output
./burpcommander.rb -k [API Key] -n "command injection" -D
オペレーティングシステムのコマンドインジェクションの脆弱性は、アプリケーションがユーザー制御可能なデータをシェルコマンドインタプリタによって処理されるコマンドに組み込む場合に発生します。ユーザーデータが厳密に検証されていない場合、攻撃者はシェルメタ文字を使用して実行されるコマンドを変更し、サーバーによって実行される任意の追加コマンドを注入する可能性があります。
OSコマンドインジェクションの脆弱性は通常非常に深刻であり、アプリケーションをホストするサーバーやアプリケーション自体のデータと機能の侵害につながる可能性があります。また、サーバーを他のシステムへの攻撃のプラットフォームとして使用することも可能です。悪用の正確な可能性は、コマンドが実行されるセキュリティコンテキストと、そのコンテキストがサーバー上の機密リソースに関して持つ権限に依存します。
./burpcommander.rb -s www.youcanattackme.com -U admin -P password
I, [2018-08-29T15:27:09.310594 #18919] INFO -- : Successfuly initiated task_id: 4 against www.youcanattackme.com
./burpcommander.rb -s http://testphp.vulnweb.com -U admin -P password -x 127.0.0.1:8080 --proxy-username user --proxy-password pass
I, [2018-09-26T10:30:39.540832 #3104] INFO -- : Successfuly initiated task_id: 25 against http://testphp.vulnweb.com
指定されたスキャンのscan_metricsを取得します。
./burpcommander.rb -S 4 -M
{"crawl_requests_made"=>2264,
"crawl_requests_queued"=>0,
"audit_queue_items_completed"=>0,
"audit_queue_items_waiting"=>51,
"audit_requests_made"=>247,
"audit_network_errors"=>10,
"issue_events"=>21}
指定されたスキャンからissue 1を取得します。
./burpcommander.rb -S 4 -I 1
{"name"=>"File upload functionality",
"type_index"=>5245312,
"serial_number"=>"6437447914508597248",
"origin"=>"http://www.youcanattackme.com",
"path"=>"/vulnerabilities/upload/",
"severity"=>"info",
"confidence"=>"certain",
"description"=>
"The page contains a form which is used to submit a user-supplied...