CAPEC-31 / ATTACK-PATTERN
Accessing/Intercepting/Modifying HTTP Cookies
This attack relies on the use of HTTP Cookies to store credentials, state information and other critical data on client systems. There are several different forms of this attack. The first form of this attack involves accessing HTTP Cookies to mine for potentially sensitive data contained therein. The second form involves intercepting this data as it is transmitted from client to server. This intercepted information is then used by the adversary to impersonate the remote user/session. The third form is when the cookie's content is modified by the adversary before it is sent back to the server. Here the adversary seeks to convince the target server to operate on this falsified information.
- 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
Target server software must be a HTTP daemon that relies on cookies. The cookies must contain sensitive information. The adversary must be able to make HTTP requests to the server, and the cookie must be contained in the reply.
Potential impact
Confidentiality Read Data 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-31. Object modified: 2022-09-29.
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
- Design: Use input validation for cookies
- Design: Generate and validate MAC for cookies
- Implementation: Use SSL/TLS to protect cookie in transit
- Implementation: Ensure the web server implements all relevant security patches, many exploitable buffer overflows are fixed in patches issued for the software.
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-157 Open related reference
- CAPEC-31 → ChildOf → CAPEC-39 Open related reference
- CAPEC-31 → Related_Weakness → CWE-113 Open related reference
- CAPEC-31 → Related_Weakness → CWE-20 Open related reference
- CAPEC-31 → Related_Weakness → CWE-302 Open related reference
- CAPEC-31 → Related_Weakness → CWE-311 Open related reference
- CAPEC-31 → Related_Weakness → CWE-315 Open related reference
- CAPEC-31 → Related_Weakness → CWE-384 Open related reference
- CAPEC-31 → Related_Weakness → CWE-472 Open related reference
- CAPEC-31 → Related_Weakness → CWE-539 Open related reference
- CAPEC-31 → Related_Weakness → CWE-565 Open related reference
- CAPEC-31 → Related_Weakness → CWE-602 Open related reference
- CAPEC-31 → Related_Weakness → CWE-642 Open related reference
- CWE-113 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-20 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-302 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-311 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-315 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-384 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-472 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-539 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-565 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-602 → Related_Attack_Pattern → CAPEC-31 Open related reference
- CWE-642 → Related_Attack_Pattern → CAPEC-31 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-31 — 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.
