cwong-scw / app-testbed

0 stars 0 forks source link

cfkj #6

Open cwong-scw opened 3 years ago

cwong-scw commented 3 years ago

iojiojutfvtyf

dev-secure-code-warrior-pilot[bot] commented 3 years ago

Micro-Learning Topic: Code Injection (CWE 94)

What is this? (2min video)

Code injection happens when an application insecurely accepts input that is subsequently used in a dynamic code evaluation call. If insufficient validation or sanitisation is performed on the input, specially crafted inputs may be able to alter the syntax of the evaluated code and thus alter execution. In a worst case scenario, an attacker could run arbitrary code in the server context and thus perform almost any action on the application server.

Try to identify instances where external input is subsequently used in a dynamic code evaluation call and identify the code context in which each input is used. Carefully review the data flow of these inputs and determine if appropriate filtering or encoding is being performed. You may need to look up language reference material to identify the language-specific special characters that any validation or sanitisation logic will need to account for.

Try this challenge in Secure Code Warrior