BETA O Shoulder está em beta — Os resultados às vezes podem estar incorretos. Seu feedback molda o que corrigimos a seguir. Compartilhar feedback
#3 A03:2021

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.

Visão Geral

Injection slides down to #3. 94% of applications were tested for some form of injection. The 33 CWEs mapped into this category have the second most occurrences in applications.

Como Atacantes Exploram Isso

Entender padrões de ataque ajuda você a construir melhores defesas. Estas são as técnicas que equipes de segurança monitoram.

SQL query manipulation

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

Sinal de detecção: 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.

Sinal de detecção: Unexpected process spawns, unusual system calls in audit logs

Script injection in pages

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

Sinal de detecção: Script tags or event handlers appearing in user-generated content

Como Prevenir

  • 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

CWEs com Detecção Shoulder (9)

Estes CWEs têm regras de detecção Shoulder. Clique para ver vulnerabilidades específicas e correções.

Outros CWEs Mapeados (24)

Estes CWEs estão mapeados para esta categoria mas ainda não têm regras Shoulder.