GPNCTF Writeup: Crypto - restricted oracle
#ctf #cyersecurity #gpnctf #gpn23 #cryptography #paddingoracle #oracle #writeup
GPNCTF Writeup: Crypto - restricted oracle
#ctf #cyersecurity #gpnctf #gpn23 #cryptography #paddingoracle #oracle #writeup
AES-CBC encryption with Padding Oracle - CBC-R in 6 lines of code (by me):
ct=bytearray(("\x41" * 16).encode())
while len(pt_padded) >= 16:
pt_N = pt_padded[-16:]
dec = aes_cbc_poa_decrypt_1_block_noIV(ct[0:16])
ct = xor(dec, pt_N) + ct
pt_padded = pt_padded[:-16]
Image: result of encryption and decrypting it again, also with Padding Oracle
So you thought AES-CBC was safe from decrypting? Ask your nearest Padding Oracle for another opinion!
#aes #cbc #poa #paddingoracle #pwncollege #ctf #cryptography