CAPEC-39 / ATTACK-PATTERN
Manipulating Opaque Client-based Data Tokens
In circumstances where an application holds important data client-side in tokens (cookies, URLs, data files, and so forth) that data can be manipulated. If client or server-side application components reinterpret that data as authentication tokens or data (such as store item pricing or wallet information) then even opaquely manipulating that data may bear fruit for an Attacker. In this pattern an attacker undermines the assumption that client side tokens have been adequately protected from tampering through use of encryption or obfuscation.
- Category
- CAPEC patterns
- Version / scope
- CAPEC 3.9; release 2023-01-24; publisher status Draft
- Affected / relevant technologies
- Platform scope not specified separately in this source
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
An attacker already has some access to the system or can steal the client based data tokens from another user who has access to the system. For an Attacker to viably execute this attack, some data (later interpreted by the application) must be held client-side in a way that can be manipulated without detection. This means that the data or tokens are not CRCd as part of their value or through a separate meta-data store elsewhere.
Potential impact
Integrity Modify Data Confidentiality Access Control Authorization Gain Privileges
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CAPEC 3.9; release 2023-01-24; publisher status Draft. Source checked: 2026-11-18.
Source object: CAPEC-39. Object modified: 2020-07-30.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- No standalone detection method is provided in the selected source fields. Do not infer that absence of an alert establishes safety.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- One solution to this problem is to protect encrypted data with a CRC of some sort. If knowing who last manipulated the data is important, then using a cryptographic "message authentication code" (or hMAC) is prescribed. However, this guidance is not a panacea. In particular, any value created by (and therefore encrypted by) the client, which itself is a "malicious" value, all the protective cryptography in the world can't make the value 'correct' again. Put simply, if the client has control over the whole process of generating and encoding the value, then simply protecting its integrity doesn't help.
- Make sure to protect client side authentication tokens for confidentiality (encryption) and integrity (signed hash)
- Make sure that all session tokens use a good source of randomness
- Perform validation on the server side to make sure that client side data tokens are consistent with what is expected.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-31 → ChildOf → CAPEC-39 Open related reference
- CAPEC-39 → ChildOf → CAPEC-22 Open related reference
- CAPEC-39 → Related_Weakness → CWE-233 Open related reference
- CAPEC-39 → Related_Weakness → CWE-285 Open related reference
- CAPEC-39 → Related_Weakness → CWE-302 Open related reference
- CAPEC-39 → Related_Weakness → CWE-315 Open related reference
- CAPEC-39 → Related_Weakness → CWE-353 Open related reference
- CAPEC-39 → Related_Weakness → CWE-384 Open related reference
- CAPEC-39 → Related_Weakness → CWE-472 Open related reference
- CAPEC-39 → Related_Weakness → CWE-539 Open related reference
- CAPEC-39 → Related_Weakness → CWE-565 Open related reference
- CWE-233 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-302 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-315 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-353 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-384 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-472 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-539 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-565 → Related_Attack_Pattern → CAPEC-39 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- Publisher reference: CAPEC-39 — source accessed 2026-11-18
- capec — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
