vetkit.php.crypto.openssl-weak-cipher
openssl_encrypt/decrypt uses a broken cipher or ECB mode (DES, 3DES, RC2, RC4, Blowfish, *-ECB). ECB leaks plaintext patterns and the others are breakable.
Last updated:
Suite: Security
php
openssl_encrypt/decrypt uses a broken cipher or ECB mode (DES, 3DES, RC2, RC4, Blowfish, *-ECB). ECB leaks plaintext patterns and the others are breakable.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use an AEAD cipher such as aes-256-gcm (or sodium_crypto_secretbox) with a random nonce per message.
References
Source: packages/engine/rules/sast/php.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.