AES - ECB Mode
AES Electronic CodeBook is the most basic mode of operation. Each block is encrypted independently of the others. This is considered unsecure for most applications.
Definition
Attacks
ECB Encryption Oracle padded with secret - CryptoHack
To leak the secret, we can use the fact that ECB mode is stateless. We can compare the output of a block containing one unknown byte of the secret with all 256 possible outputs. The block that encrypts to the correct output is the one that contains the unknown byte.
ECB Decryption Oracle - CryptoHack
A ECB decryption oracle can simply be used as an AES block decoder. Many modes can be compromised by this oracle.