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

Injection

Injection flaws occur when an application sends hostile data to an interpreter. This includes SQL, NoSQL, OS command, ORM, LDAP, and Expression Language injection.

概述

Falls from #3 to #5 in 2025. Injection remains one of the most tested categories, covering issues from Cross-site Scripting (high frequency/low impact) to SQL Injection (low frequency/high impact).

攻击者如何利用此漏洞

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

SQL query manipulation

User input is incorporated into database queries without proper sanitization, allowing attackers to modify query logic or extract unauthorized data.

检测信号: Database errors in responses, unusual query patterns in logs, timing anomalies

Command execution

User input flows into system commands, allowing attackers to execute arbitrary commands on the server.

检测信号: Unexpected process spawns, unusual system calls in audit logs

Cross-site scripting (XSS)

User content is reflected or stored in web pages without encoding, allowing script execution in other users' browsers.

检测信号: Script tags or event handlers appearing in user-generated content

如何预防

  • Use a safe API which avoids using the interpreter entirely
  • Use parameterized queries or prepared statements
  • Use positive server-side input validation
  • Escape special characters for any residual dynamic queries
  • Use LIMIT and other SQL controls to prevent mass disclosure
  • Use Content Security Policy to mitigate XSS impact

有Shoulder检测的CWE (9)

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

其他映射的CWE (24)

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