Code-Injection-KrishnaG-CEO

2024 CWE Top 25 Most Dangerous Software Weaknesses: Improper Control of Generation of Code (‘Code Injection’) CWE-94

CWE-94, or Code Injection, occurs when a software application improperly controls the input used in generating code. This vulnerability allows attackers to inject malicious code, which the application subsequently compiles or interprets. The injected code can execute unintended commands, compromise data integrity, and even provide attackers with full control over the system.

JSON-Injection-KrishnaG-CEO

In-Depth Analysis of SANS Top 25 CWE-94: JSON Injection and Its Implications for Penetration Testers

**JSON Injection** is a form of **injection vulnerability** that occurs when an application improperly handles user input within a JSON object. JSON (JavaScript Object Notation) is widely used for data exchange between web clients and servers. When applications fail to validate or sanitize user input before incorporating it into a JSON object, attackers can inject malicious data, manipulating the application’s behaviour.

JSON Injection primarily targets the integrity of the data being exchanged, potentially altering application logic, bypassing authentication, or even leading to more severe attacks like remote code execution. It is particularly dangerous in systems that use JSON for configuration files, user inputs, or data transfer, which is the case in many modern web applications.