---
title: "CAPEC-12: Choosing Message Identifier"
url: https://radicalnotion.ai/capec/capec-12
type: capec
description: "This pattern of attack is defined by the selection of messages distributed via multicast or public information channels that are intended for another client by determining the parameter value assigned to that client. This attack allows the adversary to gain access to potentially privileged information, and to possibly perpetrate other attacks through the distribution means by impersonation. If the channel/message being manipulated is an input rather than output mechanism for the system, (such as a command bus), this style of attack could be used to change the adversary's identifier to more a privileged one."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-12: Choosing Message Identifier

- **Abstraction:** Standard
- **Status:** Draft
- **Typical severity:** High
- **Likelihood of attack:** High
- **CAPEC catalog version:** 3.9

## Description

This pattern of attack is defined by the selection of messages distributed via multicast or public information channels that are intended for another client by determining the parameter value assigned to that client. This attack allows the adversary to gain access to potentially privileged information, and to possibly perpetrate other attacks through the distribution means by impersonation. If the channel/message being manipulated is an input rather than output mechanism for the system, (such as a command bus), this style of attack could be used to change the adversary's identifier to more a privileged one.

## Execution flow

### Step 1: Explore

\[Determine Nature of Messages\] Determine the nature of messages being transported as well as the identifiers to be used as part of the attack

### Step 2: Experiment

\[Authenticate\] If required, authenticate to the distribution channel

### Step 3: Experiment

\[Identify Known Client Identifiers\] If any particular client's information is available through a control channel available to all users, the adversary will discover particular identifiers for targeted clients by observing this channel, or requesting client information through this channel.

### Step 4: Experiment

\[Change Message Identifier\] Adversaries with client access connecting to output channels could change their channel identifier and see someone else's (perhaps more privileged) data.

## Prerequisites

- Information and client-sensitive (and client-specific) data must be present through a distribution channel available to all users.
- Distribution means must code (through channel, message identifiers, or convention) message destination in a manner visible within the distribution means itself (such as a control channel) or in the messages themselves.

## Skills required

- **Low:** All the adversary needs to discover is the format of the messages on the channel/distribution means and the particular identifier used within the messages.

## Resources required

- The adversary needs the ability to control source code or application configuration responsible for selecting which message/channel id is absorbed from the public distribution means.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |
| Confidentiality, Access Control, Authorization | Gain Privileges | - |

## Mitigations

- Associate some ACL (in the form of a token) with an authenticated user which they provide middleware. The middleware uses this token as part of its channel/message selection for that client, or part of a discerning authorization decision for privileged channels/messages. The purpose is to architect the system in a way that associates proper authentication/authorization with each channel/message.
- Re-architect system input/output channels as appropriate to distribute self-protecting data. That is, encrypt (or otherwise protect) channels/messages so that only authorized readers can see them.

## Example instances

A certain B2B interface on a large application codes for messages passed over an MQSeries queue, on a single "Partners" channel. Messages on that channel code for their client destination based on a partner\_ID field, held by each message. That field is a simple integer. Adversaries having access to that channel, perhaps a particularly nosey partner, can simply choose to store messages of another partner's ID and read them as they desire. Note that authentication does not prevent a partner from leveraging this attack on other partners. It simply disallows adversaries without partner status from conducting this attack.

## Related weaknesses (CWE)

- [CWE-201](https://radicalnotion.ai/cwe/cwe-201): Insertion of Sensitive Information Into Sent Data
- [CWE-306](https://radicalnotion.ai/cwe/cwe-306): Missing Authentication for Critical Functionality

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-216](https://radicalnotion.ai/capec/capec-216) | Communication Channel Manipulation |
| Peer | [CAPEC-21](https://radicalnotion.ai/capec/capec-21) | Exploitation of Trusted Identifiers |

## Frequently asked questions

### What is CAPEC-12?

This pattern of attack is defined by the selection of messages distributed via multicast or public information channels that are intended for another client by determining the parameter value assigned to that client. This attack allows the adversary to gain access to potentially privileged information, and to possibly perpetrate other attacks through the distribution means by impersonation. If the channel/message being manipulated is an input rather than output mechanism for the system, (such as a command bus), this style of attack could be used to change the adversary's identifier to more a privileged one.

### How does a Choosing Message Identifier attack work?

It typically unfolds over 4 phases. It begins with: \[Determine Nature of Messages\] Determine the nature of messages being transported as well as the identifiers to be used as part of the attack

### How do you prevent CAPEC-12?

Associate some ACL (in the form of a token) with an authenticated user which they provide middleware. The middleware uses this token as part of its channel/message selection for that client, or part of a discerning authorization decision for privileged channels/messages. The purpose is to architect the system in a way that associates proper authentication/authorization with each channel/message.

### What weaknesses does CAPEC-12 target?

CAPEC-12 exploits 2 CWE weaknesses: CWE-201 (Insertion of Sensitive Information Into Sent Data) and CWE-306 (Missing Authentication for Critical Functionality).

### How severe is CAPEC-12?

MITRE rates CAPEC-12 as High severity with high likelihood of attack.

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

---

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