CAPEC-74
Manipulating State
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.
On this page
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-74: Manipulating State: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/74.html and https://cve.bz/cve/capec/74?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
How the attack unfolds
Explore
The attacker looks for a way in.
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
They probe what they found.
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
They carry out the attack.
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 skill
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
| Impact | Affects | Note |
|---|---|---|
| Gain Privileges | Confidentiality, Access Control, Authorization | |
| Modify Data | Integrity | |
| Unreliable Execution | Availability |
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.
Weaknesses it exploits
- CWE-315 Cleartext Storage of Sensitive Information in a Cookie
- CWE-353 Missing Support for Integrity Check
- CWE-372 Incomplete Internal State Distinction
- CWE-693 Protection Mechanism Failure
- CWE-1245 Improper Finite State Machines (FSMs) in Hardware Logic
- CWE-1253 Incorrect Selection of Fuse Values
- CWE-1265 Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls
- CWE-1271 Uninitialized Value on Reset for Registers Holding Security Settings
Recent CVEs with these weaknesses
- 2.0CVE-2026-138390
A flaw has been found in agent0ai agent-zero up to 2.16. Affected by this vulnerability is the function InfectionChecker.gate of the file plugins/_infection_check/helpers/checker.py. Executing a manipulation can lead to protection mechanis…
- 0.9CVE-2026-138386
A security flaw has been discovered in Aider-AI Aider up to 0.86.2. The impacted element is the function confirm_ask of the file aider/io.py of the component Shell Command Confirmation Handler. The manipulation results in protection mechan…
- 5.5CVE-2026-138100
A security flaw has been discovered in MassGen up to 0.1.97. Affected by this issue is the function __init__ of the file massgen/filesystem_manager/_filesystem_manager.py. Performing a manipulation results in protection mechanism failure. …
- 3.1CVE-2026-107951
Improper Content Security Policy (CSP) configuration in the BigFix MCM WebUI allowed the data: URI scheme as a source in the img-src directive of the CSP header. This potentially weakens the application's defense-in-depth security mechanis…
- 6.3CVE-2026-110699
Chainlit is vulnerable to a file upload block bypass in the "spontaneous_file_upload" functionality. Disabling the feature with the "enabled = false" option only affects the frontend, while the backend upload endpoints remain active and ca…
- 9.4CVE-2026-135203
In Eclipse Ditto versions 0.3.0-M1 through 3.8.15 and 3.9.0 through 3.9.9, the JavaScript payload mapper of the connectivity service executes user-supplied mapping scripts in a Mozilla Rhino engine without a ClassShutter. A mapping script …
- 6.7CVE-2026-123914
VMware ESX contains a security bypass vulnerability due to improper protection of the host configuration store. Broadcom has evaluated the severity of this issue to be in the Moderate severity range with a maximum CVSSv3 base score of 6.7.…
- 5.2CVE-2026-123909
VMware vCenter contains a vulnerability due to a policy enforcement failure in vDS (vSphere Distributed Switch). Broadcom has evaluated the severity of this issue to be in the Moderate severity range with a maximum CVSSv3 base score of 5.2…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
Examples
During the authentication process, an application stores the authentication decision (auth=0/1) in unencrypte…
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.
MITRE's words, unchanged: CAPEC-74 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.