---
title: "CAPEC-74: Manipulating State"
url: https://radicalnotion.ai/capec/capec-74
type: capec
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."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-74: Manipulating State

- **Abstraction:** Meta
- **Status:** Stable
- **Typical severity:** High
- **Likelihood of attack:** Medium
- **CAPEC catalog version:** 3.9

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

## Execution flow

### Step 1: 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.

### Step 2: 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.

### Step 3: 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

- **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

| Scope | Impact | Note |
| --- | --- | --- |
| 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.

## Related weaknesses (CWE)

- [CWE-315](https://radicalnotion.ai/cwe/cwe-315): Cleartext Storage of Sensitive Information in a Cookie
- [CWE-353](https://radicalnotion.ai/cwe/cwe-353): Missing Support for Integrity Check
- [CWE-372](https://radicalnotion.ai/cwe/cwe-372): Incomplete Internal State Distinction
- [CWE-693](https://radicalnotion.ai/cwe/cwe-693): Protection Mechanism Failure
- [CWE-1245](https://radicalnotion.ai/cwe/cwe-1245): Improper Finite State Machines (FSMs) in Hardware Logic
- [CWE-1253](https://radicalnotion.ai/cwe/cwe-1253): Incorrect Selection of Fuse Values
- [CWE-1265](https://radicalnotion.ai/cwe/cwe-1265): Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls
- [CWE-1271](https://radicalnotion.ai/cwe/cwe-1271): Uninitialized Value on Reset for Registers Holding Security Settings

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Child | [CAPEC-140](https://radicalnotion.ai/capec/capec-140) | Bypassing of Intermediate Forms in Multiple-Form Sets |
| Child | [CAPEC-663](https://radicalnotion.ai/capec/capec-663) | Exploitation of Transient Instruction Execution |

## Frequently asked questions

### What is CAPEC-74?

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.

### How does a Manipulating State attack work?

It typically unfolds over 3 phases. It begins with: 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.

### How do you prevent CAPEC-74?

Do not rely solely on user-controllable locations, such as cookies or URL parameters, to maintain user state.

### What weaknesses does CAPEC-74 target?

CAPEC-74 exploits 8 CWE weaknesses, including CWE-315 (Cleartext Storage of Sensitive Information in a Cookie), CWE-353 (Missing Support for Integrity Check), CWE-372 (Incomplete Internal State Distinction) and CWE-693 (Protection Mechanism Failure).

### How severe is CAPEC-74?

MITRE rates CAPEC-74 as High severity with medium likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/74.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-74). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
