nerdexam
EC-Council

312-39 · Question #122

Which of the following attack can be eradicated by using a safe API to avoid the use of the interpreter entirely?

The correct answer is A. Command Injection Attacks. Command Injection Attacks involve the insertion of malicious code into a vulnerable application, which then executes unwanted system commands on the server. The fundamental cause of this vulnerability is the application's use of input data in constructing system commands…

SOC Fundamentals and Operations

Question

Which of the following attack can be eradicated by using a safe API to avoid the use of the interpreter entirely?

Options

  • ACommand Injection Attacks
  • BSQL Injection Attacks
  • CFile Injection Attacks
  • DLDAP Injection Attacks

How the community answered

(44 responses)
  • A
    91% (40)
  • B
    2% (1)
  • C
    5% (2)
  • D
    2% (1)

Explanation

Command Injection Attacks involve the insertion of malicious code into a vulnerable application, which then executes unwanted system commands on the server. The fundamental cause of this vulnerability is the application's use of input data in constructing system commands without proper validation or encoding. Utilizing a safe API that avoids the use of the interpreter entirely can effectively mitigate this risk by ensuring that commands are executed in a controlled manner, without directly passing user input to the system shell. Safe APIs typically provide predefined functions and methods that perform the required tasks in a secure way, eliminating the need to construct command strings from user inputs, thus protecting against Command Injection Attacks. This approach contrasts with mitigations for other types of injection attacks, like SQL, File, or LDAP injections, which often involve proper input validation, parameterized queries, or specific encoding OWASP: Command Injection. Secure Coding in C and C++, Robert C. Seacord, Addison-Wesley Professional.

Topics

#command injection#injection attacks#safe API#input validation

Community Discussion

No community discussion yet for this question.

Full 312-39 Practice