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.
Solution
After some fiddling around with different SQL injection attacks to try to bypass the log in, I decided to register with the application.
I first registered with some random data. I then decided to see if it was vulnerable to column truncation attack, to log in as ‘admin’
This is trivial to exploit. First I registered with the following credentials
Then I logged in with
And it was a success.
Flag: IW{TRUNCATION_IS_MY_FRIEND}
Note: I will write a post about why and how this works later