Wanted to try out something different, so I decided to use Motion Canvas to try and make a video writeup for the 2 easy crypto challs…
Only to end up spending 2 weeks to make a 5 minute video with no audio lol.
Here’s a short text writeup for the both of them:
Provably Secure 1
Server doesn’t properly handle checking already encrypted ciphertext, so we can literally just treat it like an encryption/decryption oracle.
We have to guess m_bit 128 times depending on which message is encrypted, so just using two unique messages is fine.
Shortcut: use 0 and 1 so we can just cast to int and directly send it to the server.
Provably Secure 2
Actual exploitation of encryption scheme, but same setup, just with fatal bug fixed.
There is two keys, so we can split scheme into two seperate functions that occur on the same pair.
Treat encryption and decryption as black box functions: (r is random bytes, m_b is chosen message)