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 questions
Answer options
A: The contents of environmental variables could affect the scope and impact of an exploited vulnerability. Correct answer
B: In-memory environmental variable values can be overwritten and used by attackers to insert malicious code.
C: Environmental variables define cryptographic standards for the system and could create vulnerabilities if deprecated algorithms are used.
D: Environmental variables will determine when updates are run and could mitigate the likelihood of vulnerability exploitation.
Correct Answer:
A. The contents of environmental variables could affect the scope and impact of an exploited vulnerability.
Explanation

Environment 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.

Why Incorrect

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.

References

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.

Scroll to Top