|
|
|
|
CAPEC-74: Manipulating State |
Description The adversary modifies state information maintained by the target software or causes a state transition in hardware. If successful, the target will use this tainted state and execute in an unintended manner. State management is an important function within a software application. User state maintained by the application can include usernames, payment information, browsing history as well as application-specific contents such as items in a shopping cart. Manipulating user state can be employed by an adversary to elevate privilege, conduct fraudulent transactions or otherwise modify the flow of the application to derive certain benefits. If there is a hardware logic error in a finite state machine, the adversary can use this to put the system in an undefined state which could cause a denial of service or exposure of secure data. Likelihood Of Attack Typical Severity Execution Flow Explore Adversary determines the nature of state management employed by the target. This includes determining the location (client-side, server-side or both applications) and possibly the items stored as part of user state.
Experiment The adversary now tries to modify the user state contents (possibly indiscriminately if the contents are encrypted or otherwise obfuscated) or cause a state transition and observe the effects of this change on the target.
Exploit Having determined how to manipulate the state, the adversary can perform illegitimate actions.
Prerequisites
| User state is maintained at least in some way in user-controllable locations, such as cookies or URL parameters. |
| There is a faulty finite state machine in the hardware logic that can be exploited. |
Skills Required
[Level: Medium] The adversary needs to have knowledge of state management as employed by the target application, and also the ability to manipulate the state in a meaningful way. |
Resources Required
| The adversary needs a data tampering tool capable of generating and creating custom inputs to aid in the attack, like Fiddler, Wireshark, or a similar in-browser plugin (e.g., Tamper Data for Firefox). |
Consequences This table specifies different individual consequences associated with the attack pattern. The Scope identifies the security property that is violated, while the Impact describes the negative technical impact that arises if an adversary succeeds in their attack. The Likelihood provides information about how likely the specific consequence is expected to be seen relative to the other consequences in the list. For example, there may be high likelihood that a pattern will be used to achieve a certain impact, but a low likelihood that it will be exploited to achieve a different impact.| Scope | Impact | Likelihood |
|---|
Confidentiality Access Control Authorization | Gain Privileges | | Integrity | Modify Data | | Availability | Unreliable Execution | |
Mitigations
| Do not rely solely on user-controllable locations, such as cookies or URL parameters, to maintain user state. |
| Avoid sensitive information, such as usernames or authentication and authorization information, in user-controllable locations. |
| Sensitive information that is part of the user state must be appropriately protected to ensure confidentiality and integrity at each request. |
| All possible states must be handled by hardware finite state machines. |
Example Instances
During the authentication process, an application stores the authentication decision (auth=0/1) in unencrypted cookies. At every request, this cookie is checked to permit or deny a request. An adversary can easily violate this representation of user state and set auth=1 at every request in order to gain illegitimate access and elevated privilege in the application. |
Content History | Submissions |
|---|
| Submission Date | Submitter | Organization |
|---|
| 2014-06-23 (Version 2.6) | CAPEC Content Team | The MITRE Corporation | | | Modifications |
|---|
| Modification Date | Modifier | Organization |
|---|
| 2017-01-09 (Version 2.9) | CAPEC Content Team | The MITRE Corporation | | Updated Description Summary, Related_Attack_Patterns | | 2017-05-01 (Version 2.10) | CAPEC Content Team | The MITRE Corporation | | Updated Attack_Phases, Attack_Prerequisites, Attacker_Skills_or_Knowledge_Required, Description Summary, Examples-Instances, Probing_Techniques, Resources_Required, Solutions_and_Mitigations | | 2020-07-30 (Version 3.3) | CAPEC Content Team | The MITRE Corporation | | Updated @Name, Consequences, Description, Execution_Flow, Mitigations, Prerequisites, Related_Weaknesses | | 2021-06-24 (Version 3.5) | CAPEC Content Team | The MITRE Corporation | | Updated Execution_Flow, Related_Weaknesses | | Previous Entry Names |
|---|
| Change Date | Previous Entry Name |
|---|
| 2020-07-30 (Version 3.3) | Manipulating User State | |
More information is available — Please select a different filter.
|