Wednesday 02 December 2026 10:44:08 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Code injection

A weakness that can let attacker-controlled input be interpreted as executable code.

Code injection is a weakness where attacker-controlled input is treated as executable code instead of plain data. This can happen when an application passes unsanitized input into an interpreter such as Perl, PHP, JavaScript, SQL, or a shell command. If the application fails to separate data from code, the attacker may run commands, call functions, or change program flow.

It matters because code injection can turn a simple web request into server-side execution, often with the privileges of the affected service. In hosting control panels, admin tools, or automation scripts, that can expose secrets, create accounts, modify files, or expand access across many tenants. Defenses include strict input validation, allowlists, safe APIs that avoid string-built commands, least-privilege execution, and code review focused on injection sinks. In practice, code injection is one of the fastest ways for an attacker to turn a bug into control.

← WIKICROOK index