The vulnerability stems from how CryptedFileKeyring handled encryption:
_init_crypter used the raw password (padded to 32 bytes) as the AES key without proper key derivation.
AES.MODE_CFB was initialized with an implicit zero IV (no randomness).
No salt was used in key generation, allowing rainbow table attacks.
The commit 162f2ed replaced these with PBKDF2 for key derivation and random IVs, confirming the weakness in the original implementation.
The encrypt/decrypt methods directly utilized this flawed initialization, making them vulnerable entry points.
Vulnerable functions
Only Mi**o us*rs **n s** t*is s**tion
WAF Protection Rules
WAF Rule
Pyt*on K*yrin* *.*.* *o*s not s**ur*ly initi*liz* t** *ip**r w**n *n*ryptin* p*sswor*s *or `*rypt***il*K*yrin*` *il*s, w*i** m*k*s it **si*r *or lo**l us*rs to o*t*in p*sswor*s vi* * *rut*-*or** *tt**k.