python.insecure-cipher-algorithm-arc4

返回列表 · CWE 索引

pythonWARNING规则详情

各语言消息对照

语言消息
de

ARC4 (Alleged RC4) ist eine Stromchiffre mit ernsten Schwächen im anfänglichen Stromausgang; ihre Verwendung wird dringend abgeraten. ARC4 verwendet keine Modus-Konstruktionen. Verwenden Sie eine starke symmetrische Chiffre wie AES. Mit dem Paket `cryptography` empfiehlt sich `Fernet`, eine sichere Implementierung von AES im CBC-Modus mit 128-Bit-Schlüssel; alternativ nutzen Sie weiter die Klasse `Cipher` aus den Hazmat-Primitives, aber mit dem AES-Algorithmus.

en

ARC4 (Alleged RC4) is a stream cipher with serious weaknesses in its initial stream output. Its use is strongly discouraged. ARC4 does not use mode constructions. Use a strong symmetric cipher such as EAS instead. With the `cryptography` package it is recommended to use the `Fernet` which is a secure implementation of AES in CBC mode with a 128-bit key. Alternatively, keep using the `Cipher` class from the hazmat primitives but use the AES algorithm instead.

fr

ARC4 (Alleged RC4) est un chiffrement de flux présentant de sérieuses faiblesses dans sa sortie de flux initiale ; son usage est fortement déconseillé et il ne repose pas sur des modes opératoires. Utilisez un chiffrement symétrique fort comme AES. Avec le paquet `cryptography`, il est recommandé d'utiliser `Fernet`, une implémentation sécurisée d'AES en mode CBC avec une clé de 128 bits. Sinon, conservez la classe `Cipher` des primitives hazmat mais utilisez l'algorithme AES.

ja

ARC4(Alleged RC4)は初期ストリーム出力に深刻な欠陥を持つストリーム暗号であり、使用は強く推奨されません。また、暗号利用モードの構成にも対応していません。強力な対称暗号アルゴリズムに切り替えてください。`cryptography` ライブラリを使用する場合は `Fernet`(CBC モードの AES、128ビット鍵による安全な実装)が推奨されます。hazmat primitives の `Cipher` クラスを引き続き使用することもできますが、アルゴリズムを AES に変更してください。

ko

ARC4(Alleged RC4)는 초기 스트림 출력에 심각한 결함이 있는 스트림 암호이므로 사용을 강력히 권장하지 않으며, 동작 모드 구성도 지원하지 않습니다. 강력한 대칭 암호 알고리즘으로 교체하십시오. `cryptography` 라이브러리를 사용할 때는 `Fernet`(CBC 모드 AES, 128비트 키의 안전한 구현)을 권장합니다. hazmat primitives의 `Cipher` 클래스를 계속 사용할 수도 있지만 알고리즘은 AES로 바꾸십시오.

ru

ARC4 (Alleged RC4) — потоковый шифр с серьёзными недостатками в начальном выходном потоке; применять его настоятельно не рекомендуется. ARC4 не использует режимы шифрования. Используйте стойкий симметричный шифр. С пакетом `cryptography` рекомендуется `Fernet` — безопасная реализация AES в режиме CBC с 128-битным ключом; либо продолжайте использовать класс `Cipher` из hazmat primitives, но с алгоритмом AES.

zh

ARC4(Alleged RC4)是初始流输出存在严重缺陷的流密码,强烈不建议使用;它也不支持工作模式构造。请改用强对称加密算法。使用 `cryptography` 库时推荐 `Fernet`(CBC 模式 AES、128 位密钥的安全实现);也可继续使用 hazmat primitives 的 `Cipher` 类,但把算法换成 AES。

zh-Hant

ARC4(Alleged RC4)是初始串流輸出存在嚴重缺陷的串流密碼,強烈不建議使用;它也不支援工作模式建構。請改用強對稱加密演算法。使用 `cryptography` 程式庫時推薦 `Fernet`(CBC 模式 AES、128 位元金鑰的安全實作);也可繼續使用 hazmat primitives 的 `Cipher` 類別,但把演算法換成 AES。

CWE 知识卡

语言名称修复建议
deVerwendung geknackter oder riskanter Hash-AlgorithmenMigrieren Sie Hashes zu SHA-256 oder höher; für den Passwortspeicher verwenden Sie gesalzene, langsame Hashes wie bcrypt/Argon2/scrypt.
en——
frUtilisation d'un algorithme cryptographique cassé ou risquéMigrez le hachage vers SHA-256 et au-delà ; pour le stockage des mots de passe, utilisez des hachages lents et salés comme bcrypt/Argon2/scrypt.
ja破られたまたはリスクのあるハッシュアルゴリズムの使用ハッシュは SHA-256 以上に移行してください。パスワードの保存には bcrypt/Argon2/scrypt などのソルト付きスローハッシュを使用してください。
ko깨졌거나 위험한 해시 알고리즘 사용해시는 SHA-256 이상으로 마이그레이션하고, 비밀번호 저장에는 bcrypt/Argon2/scrypt 등 솔트를 적용한 느린 해시를 사용하십시오.
ruИспользование взломанной или рискованной хэш-функцииПереведите хэширование на SHA-256 и выше; пароли храните с медленными хэшами и солью — bcrypt/Argon2/scrypt.
zh使用被破解或有风险的哈希算法哈希迁移到 SHA-256 及以上;口令存储使用 bcrypt/Argon2/scrypt 等慢哈希加盐。
zh-Hant使用被破解或有風險的雜湊演算法雜湊遷移到 SHA-256 及以上;密碼儲存使用 bcrypt/Argon2/scrypt 等慢雜湊加鹽。

OWASP

A03:2017 - Sensitive Data ExposureA02:2021 - Cryptographic Failures

元数据

likelihoodMEDIUM
impactMEDIUM
confidenceMEDIUM

修复字段

fix有
fix-regex无

上游规则源

github.com/opengrep/opengrep-rules/tree/main/python/cryptography/security/insecure-cipher-algorithms-arc4.yaml