The Secret Store

(web70, solved by 199)

Description: We all love secrets. Without them, our lives would be dull. A student wrote a secure secret store, however he was babbling about problems with the database. Maybe I shouldn't use the 'admin' account. Hint1: Account deletion is intentional. Hint2: I can't handle long usernames.

Service: https://the-secret-store.ctf.internetwache.org/

ヒント2に書かれているとおり、長いユーザ名をうまく扱えないということです。

何度か試してみたところユーザ名は32文字まで有効のようです。したがって、adminの後ろに32文字目までスペースをつけて33文字目以降に適当な文字をつけてユーザ登録することで、ユーザ名の重複チェックを回避し、既存のadminユーザのパスワードを登録したものでリセットできるのではないかと思われます。

下図のとおり、ユーザ名「admin                           1」、パスワード「1」で登録します。


no title

次にログイン画面で、admin/1でログインします。


1

見事、ログインでき、フラグが表示されました。


2


フラグは、

IW{TRUNCATION_IS_MY_FRIEND}

です。