0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

head-dump picoCTF Easy Web

Last updated at Posted at 2025-05-06

問題文からわかること

  • サーバーのメモリを保持するファイルを生成するエンドポイントを見つけること
    • これにフラグが存在
  • APIドキュメントに関する記事がブログ内に存在

ブログ記事見てみる

右上の記事の#API DocumentationのリンクからAPIドキュメントに飛べる。
パスは/api-docs/

このドキュメントの/heapdumpからアヤシさプンプンです。
Try it outボタンを押すと、curlコマンドを表示してくれるので、実行してpicoCTF{でgrepしてフラグ獲得です。

解答

curl -X 'GET' 'http://verbal-sleep.picoctf.net:XXXXX/heapdump' -H 'accept: */*' | grep picoCTF{

picoCTF{Pat!3nt_15_Th3_K3y_439bb394}

実際は、このようなAPIを公開するときは認証機能が必要でしょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?