Script Injection Mitigation Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Implement Security Best Practices

What you'll be asked

  1. What is the primary goal of sanitizing user input in an automation script?
  2. When passing user-supplied variables to a system shell command, which practice is most effective at preventing command injection?
  3. Which of the following is an example of an 'allow-list' approach to input validation?
  4. Why is it dangerous to use 'eval()' or similar dynamic execution functions with user-supplied data?
  5. You are auditing a script that processes file paths. The script takes a user-provided filename, joins it with a base directory, and opens the file. Which vulnerability is most likely if the input is not validated?

Answers and explanations come after you submit.