1
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?

# picoCTF Crack The Gate 1 を解いた

Posted at

どうも
CTF初心者です。

picoCTFのCrack The Gate 1が解けたので解法を書きます。

問題文

We’re in the middle of an investigation. 
One of our persons of interest, ctf player, is believed to be hiding sensitive data inside a restricted web portal.
We’ve uncovered the email address he uses to log in: ctf-player@picoctf.org. 
Unfortunately, we don’t know the password, and the usual guessing techniques haven’t worked. 
But something feels off... it’s almost like the developer left a secret way in. 
Can you figure it out?

問題を解く

問題文のリンクからwebサイトを開いたらログイン画面が出た
image.png

問題文にあったメールアドレスをemailに、
適当な文字列をpasswordに入力してLoginを試してみる。
image.png

ログイン失敗。
image.png

情報収集のためページのソースを見てみる。
image.png

コメントに謎の文字列を発見。
この感じだとROT13で解読できる気がする。

image.png

ROT13で解読したところ、ヘッダーに

X-Dev-Access: yes

を設定すればバイパスできそう。

curlを使ってHeaderを追加してPOSTリクエストを送ってみる。

curl -v http://amiable-citadel.picoctf.net:64451/login -H "X-Dev-Access: yes" -X POST -d email="ctf-player@picoctf.org" password=admin

フラグが表示された。
image.png

curlを使ってヘッダーを設定したが、Burp Suiteを使ってもいい。

解いてみた感想

今回は難易度easyなので簡単かつ既存ツールを使うだけで解けたが、
難しい問題になると自分で攻撃プログラムを書く必要が出てきそうなので、
プログラミングを勉強しようと思う。

1
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
1
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?