Security+ SY0-701 practice question 13 of 35
Which of the following is a reason environmental variables are a concern when reviewing potential system vulnerabilities?
Full set: 923 questionsEnvironment variables are a security concern because they can store sensitive information (e.g., API keys, passwords, configuration paths) and influence program behavior. If an attacker exploits a vulnerability, they can often read these variables to escalate their attack. For example, finding database credentials in an environment variable allows an attacker to pivot from a compromised web server to the database server. This directly increases the scope and impact of the initial breach. Attackers can also manipulate variables like PATH or LDPRELOAD to cause a program to execute malicious code, further expanding the impact.
B. This description is imprecise. Attackers change a variable's value to point to malicious code; they don't typically overwrite the variable itself with code.
C. Cryptographic standards are managed through system libraries and configuration files, not environment variables, which are too transient and insecure for this purpose.
D. System update schedules are controlled by dedicated services (like cron or Windows Update), not by general-purpose environmental variables.
1. MITRE. (2023). CWE-209: Generation of Error Message Containing Sensitive Information. This weakness can be exacerbated when error messages expose environment variables. Retrieved from https://cwe.mitre.org/data/definitions/209.html
2. The Open Web Application Security Project (OWASP). (2023). A05:2021-Security Misconfiguration. Storing secrets in environment variables is a common misconfiguration that can lead to exposure.
3. Dowd
M.
McDonald
J.
& Schuh
J. (2006). The Art of Software Security Assessment: Identifying and Preventing Software Vulnerabilities. Chapter 19
"Environment Variable-Related Issues." Addison-Wesley Professional.
Keep practicing
Take the free Security+ SY0-701 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other Security+ SY0-701 practice questions
- Question 1A company purchased cyber insurance to address items listed on the risk register. Which o…
- Question 2Which of the following is a compensating control for providing user access to a high-risk…
- Question 4Which of the following would be the greatest concern for a company that is aware of the c…
- Question 6A company's website is www. Company. com Attackers purchased the domain wwww. company.com…
- Question 7Which of the following cryptographic solutions protects data at rest?
- Question 8Which of the following can be used to compromise a system that is running an RTOS?
