测试版 Shoulder 目前处于测试阶段 — 结果有时可能不正确。您的反馈塑造我们接下来要修复的内容。 分享反馈
#4 A04:2025

Cryptographic Failures

Failures related to cryptography which often lead to sensitive data exposure. This includes using weak algorithms, improper key management, and missing encryption.

概述

Dropped to #4 from #2. Focuses on failures related to cryptography which often leads to sensitive data exposure or system compromise. 3.80% incidence rate across tested applications.

攻击者如何利用此漏洞

理解攻击模式有助于您构建更好的防御。这些是安全团队监控的技术。

Data exposure in transit

Sensitive data transmitted over unencrypted connections can be intercepted. This includes passwords, session tokens, and personal information.

检测信号: HTTP (not HTTPS) requests containing authentication data or sensitive information

Weak cryptographic storage

Data stored with weak or broken encryption (MD5, SHA1, DES) can be recovered by attackers who gain database access.

检测信号: Database dumps containing hashed passwords with known weak algorithms

Hardcoded secrets

API keys, passwords, or encryption keys embedded in source code can be extracted from repositories or compiled binaries.

检测信号: Secrets in version control history, keys matching known patterns in code

如何预防

  • Classify data processed, stored, or transmitted by an application
  • Don't store sensitive data unnecessarily
  • Encrypt all sensitive data at rest using modern algorithms
  • Use up-to-date and strong standard algorithms and protocols
  • Encrypt all data in transit with secure protocols such as TLS 1.3
  • Disable caching for responses containing sensitive data
  • Store passwords using strong salted hashing functions (Argon2, bcrypt, scrypt)

有Shoulder检测的CWE (9)

这些CWE有Shoulder检测规则。点击查看具体漏洞和修复方法。

其他映射的CWE (22)

这些CWE映射到此类别,但尚无Shoulder规则。