ベータ 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ルールがありません。