CWE-15: External Control of System or Configuration Setting
Description
One or more system settings or configuration elements can be externally controlled by a user.
Allowing external control of system settings can disrupt service or cause an application to behave in unexpected, and potentially malicious ways.
- Abstraction
- BaseA weakness specific enough to point to detection and prevention methods.
- Likelihood of exploit
- Not rated by MITRE
- Status
- Incomplete
Common consequences
- Other
Varies by Context
Potential mitigations
- Architecture and DesignSeparation of Privilege
Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
- ImplementationArchitecture and Design
Because setting manipulation covers a diverse set of functions, any attempt at illustrating it will inevitably be incomplete. Rather than searching for a tight-knit relationship between the functions addressed in the setting manipulation category, take a step back and consider the sorts of system values that an attacker should not be allowed to control.
- ImplementationArchitecture and Design
In general, do not allow user-provided or otherwise untrusted data to control sensitive values. The leverage that an attacker gains by controlling these values is not always immediately obvious, but do not underestimate the creativity of the attacker.
Related weaknesses
CAPEC attack patterns that exploit it
- CAPEC-13Subverting Environment Variable Values
- CAPEC-69Target Programs with Elevated Privileges
- CAPEC-76Manipulating Web Input to File System Calls
- CAPEC-77Manipulating User-Controlled Variables
- CAPEC-146XML Schema Poisoning
- CAPEC-176Configuration/Environment Manipulation
- CAPEC-203Manipulate Registry Information
- CAPEC-270Modification of Registry Run Keys
- CAPEC-271Schema Poisoning
- CAPEC-579Replace Winlogon Helper DLL