You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the "pycose/pycose/algorithms.py", I have identified a security vulnerability about insecure cryptographic algorithm and static or hardcode IV. PKCS1v1.5 is vulnerable to the chosen-ciphertext attack. And CBC with fixed or hardcode IV is vulnerable to the chosen-ciphertext attack.
Description:
In the "pycose/pycose/algorithms.py", I have identified a security vulnerability about insecure cryptographic algorithm and static or hardcode IV. PKCS1v1.5 is vulnerable to the chosen-ciphertext attack. And CBC with fixed or hardcode IV is vulnerable to the chosen-ciphertext attack.
Location:
https://github.com/TimothyClaeys/pycose/blob/master/pycose/algorithms.py#L168
https://github.com/TimothyClaeys/pycose/blob/master/pycose/algorithms.py#L209
Reference
Recommendations:
Try using other padding(OAEP) instead of PKCS1v1.5.
Generate IV with cryptographic secure PRNG.
The text was updated successfully, but these errors were encountered: