CCSP · Question #18
Which of the following top security threats involves attempting to send invalid commands to an application in an attempt to get the application to execute the code?
The correct answer is B. Injection. Injection attacks involve sending malicious input to an application, often in the form of commands or queries, hoping the application will execute it as part of its legitimate operations. This can lead to unauthorized data access, modification, or arbitrary code execution.
Question
Which of the following top security threats involves attempting to send invalid commands to an application in an attempt to get the application to execute the code?
Options
- ACross-site scripting
- BInjection
- CInsecure direct object references
- DCross-site request forgery
How the community answered
(21 responses)- B95% (20)
- C5% (1)
Why each option
Injection attacks involve sending malicious input to an application, often in the form of commands or queries, hoping the application will execute it as part of its legitimate operations. This can lead to unauthorized data access, modification, or arbitrary code execution.
Cross-site scripting (XSS) involves injecting malicious client-side scripts into web pages viewed by other users, typically to hijack sessions or deface websites, not to execute commands on the server.
Injection flaws, such as SQL injection, command injection, or NoSQL injection, occur when untrusted data is sent to an interpreter as part of a command or query. Attackers use this vulnerability to send invalid or malicious commands to an application, tricking it into executing unintended operations or revealing sensitive data by manipulating the underlying query or command structure.
Insecure direct object references occur when an application exposes a direct reference to an internal implementation object, such as a file or database key, allowing attackers to manipulate these references to access unauthorized data.
Cross-site request forgery (CSRF) tricks authenticated users into submitting a request to a web application without their knowledge, often to perform state-changing actions.
Concept tested: Web application injection attacks
Source: https://owasp.org/www-community/attacks/Injection_Flaws
Topics
Community Discussion
No community discussion yet for this question.