ペネトレーションしのべくん

さようなら、すべてのセキュリティエンジニア

Burp Suiteを使ってGETとPOSTを相互変換する

はじめに

Burp Suiteには、GETをPOSTへ(またはその逆)変換して送信する機能があります。

使い方

リクエストをプロキシしたら、右クリックメニューから「Change request method」を選択します。

f:id:shinobe179:20211114171012p:plain

POSTになりました。

f:id:shinobe179:20211114171100p:plain

Repeaterでも同じことができます。リクエストボディを追加すると、送信時に自動でContent-Lengthを計算してくれます。

f:id:shinobe179:20211114171213p:plain

補足:経緯

先日開催されたWaniCTF2021を一瞬だけ覗いて、Webの「Post Challenge」という問題に挑戦しました。

wanictf.org

エンドポイントに指定されたPOSTリクエストを送るという問題でして。1からPOST作るの面倒だな、Burpでうまいことやってくれないかなと思ってググったら以下の記事が出てきました。

For requests, you can automatically switch the request method between GET and POST, with all relevant request parameters suitably relocated within the request. This option can be used to quickly test the application's tolerance of parameter location, e.g. to bypass input filters or fine-tune a cross-site scripting attack.

portswigger.net

PortSwigger様様です。