---
title: "CAPEC-388: Application API Button Hijacking"
url: https://radicalnotion.ai/capec/capec-388
type: capec
description: "An attacker manipulates either egress or ingress data from a client within an application framework in order to change the destination and/or content of buttons displayed to a user within API messages. Performing this attack allows the attacker to manipulate content in such a way as to produce messages or content that looks authentic but contains buttons that point to an attacker controlled destination."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-388: Application API Button Hijacking

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** Medium
- **CAPEC catalog version:** 3.9

## Description

An attacker manipulates either egress or ingress data from a client within an application framework in order to change the destination and/or content of buttons displayed to a user within API messages. Performing this attack allows the attacker to manipulate content in such a way as to produce messages or content that looks authentic but contains buttons that point to an attacker controlled destination.

## Prerequisites

- Targeted software is utilizing application framework APIs

## Resources required

- A software program that allows the use of adversary-in-the-middle (CAPEC-94) communications between the client and server, such as a adversary-in-the-middle (CAPEC-94) proxy.

## Example instances

An in-game event occurs and the attacker traps the result, which turns out to be a form that will be populated to their primary profile. The attacker, using a MITM proxy, observes the following data: \[Button\]\[Claim\_Item\]Sourdough\_Cookie\[URL\_IMG\]foo\[/URL\_IMG\]\[Claim\_Link\]bar\[/Claim\_Link\] By altering the destination of "Claim\_Link" to point to the attackers' server an unwitting victim can be enticed to click the link. Another example would be for the attacker to rewrite the button destinations for an event so that clicking "Yes" or "No" causes the user to load the attackers' code.

## Related weaknesses (CWE)

- [CWE-311](https://radicalnotion.ai/cwe/cwe-311): Missing Encryption of Sensitive Data
- [CWE-345](https://radicalnotion.ai/cwe/cwe-345): Insufficient Verification of Data Authenticity
- [CWE-346](https://radicalnotion.ai/cwe/cwe-346): Origin Validation Error
- [CWE-471](https://radicalnotion.ai/cwe/cwe-471): Modification of Assumed-Immutable Data (MAID)
- [CWE-602](https://radicalnotion.ai/cwe/cwe-602): Client-Side Enforcement of Server-Side Security

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-386](https://radicalnotion.ai/capec/capec-386) | Application API Navigation Remapping |

## Frequently asked questions

### What is CAPEC-388?

An attacker manipulates either egress or ingress data from a client within an application framework in order to change the destination and/or content of buttons displayed to a user within API messages. Performing this attack allows the attacker to manipulate content in such a way as to produce messages or content that looks authentic but contains buttons that point to an attacker controlled destination.

### What weaknesses does CAPEC-388 target?

CAPEC-388 exploits 5 CWE weaknesses, including CWE-311 (Missing Encryption of Sensitive Data), CWE-345 (Insufficient Verification of Data Authenticity), CWE-346 (Origin Validation Error) and CWE-471 (Modification of Assumed-Immutable Data (MAID)).

### How severe is CAPEC-388?

MITRE rates CAPEC-388 as Medium severity.

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

---

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