---
title: "CAPEC-22: Exploiting Trust in Client"
url: https://radicalnotion.ai/capec/capec-22
type: capec
description: "An attack of this type exploits vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by communicating directly with the server where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-22: Exploiting Trust in Client

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

## Description

An attack of this type exploits vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by communicating directly with the server where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.

## Prerequisites

- Server software must rely on client side formatted and validated values, and not reinforce these checks on the server side.

## Skills required

- **Medium:** The attacker must have fairly detailed knowledge of the syntax and semantics of client/server communications protocols and grammars

## Resources required

- Ability to communicate synchronously or asynchronously with server

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability | Execute Unauthorized Commands | Run Arbitrary Code |
| Confidentiality, Access Control, Authorization | Gain Privileges | - |
| Confidentiality | Read Data | - |

## Mitigations

- Design: Ensure that client process and/or message is authenticated so that anonymous communications and/or messages are not accepted by the system.
- Design: Do not rely on client validation or encoding for security purposes.
- Design: Utilize digital signatures to increase authentication assurance.
- Design: Utilize two factor authentication to increase authentication assurance.
- Implementation: Perform input validation for all remote content.

## Example instances

Web applications may use JavaScript to perform client side validation, request encoding/formatting, and other security functions, which provides some usability benefits and eliminates some client-server round-tripping. However, the web server cannot assume that the requests it receives have been subject to those validations, because an attacker can use an alternate method for crafting the HTTP Request and submit data that contains poisoned values designed to spoof a user and/or get the web server to disclose information.

Web 2.0 style applications may be particularly vulnerable because they in large part rely on existing infrastructure which provides scalability without the ability to govern the clients. Attackers identify vulnerabilities that either assume the client side is responsible for some security services (without the requisite ability to ensure enforcement of these checks) and/or the lack of a hardened, default deny server configuration that allows for an attacker probing for weaknesses in unexpected ways. Client side validation, request formatting and other services may be performed, but these are strictly usability enhancements not security enhancements.

Many web applications use client side scripting like JavaScript to enforce authentication, authorization, session state and other variables, but at the end of day they all make requests to the server. These client side checks may provide usability and performance gains, but they lack integrity in terms of the http request. It is possible for an attacker to post variables directly to the server without using any of the client script security checks and customize the patterns to impersonate other users or probe for more information.

Many message oriented middleware systems like MQ Series are rely on information that is passed along with the message request for making authorization decisions, for example what group or role the request should be passed. However, if the message server does not or cannot authenticate the authorization information in the request then the server's policy decisions about authorization are trivial to subvert because the client process can simply elevate privilege by passing in elevated group or role information which the message server accepts and acts on.

## Related weaknesses (CWE)

- [CWE-20](https://radicalnotion.ai/cwe/cwe-20): Improper Input Validation
- [CWE-200](https://radicalnotion.ai/cwe/cwe-200): Exposure of Sensitive Information to an Unauthorized Actor
- [CWE-287](https://radicalnotion.ai/cwe/cwe-287): Improper Authentication
- [CWE-290](https://radicalnotion.ai/cwe/cwe-290): Authentication Bypass by Spoofing
- [CWE-693](https://radicalnotion.ai/cwe/cwe-693): Protection Mechanism Failure

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Child | [CAPEC-39](https://radicalnotion.ai/capec/capec-39) | Manipulating Opaque Client-based Data Tokens |
| Child | [CAPEC-77](https://radicalnotion.ai/capec/capec-77) | Manipulating User-Controlled Variables |
| Child | [CAPEC-202](https://radicalnotion.ai/capec/capec-202) | Create Malicious Client |
| Child | [CAPEC-207](https://radicalnotion.ai/capec/capec-207) | Removing Important Client Functionality |

## Frequently asked questions

### What is CAPEC-22?

An attack of this type exploits vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by communicating directly with the server where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.

### How do you prevent CAPEC-22?

Design: Ensure that client process and/or message is authenticated so that anonymous communications and/or messages are not accepted by the system.

### What weaknesses does CAPEC-22 target?

CAPEC-22 exploits 5 CWE weaknesses, including CWE-20 (Improper Input Validation), CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), CWE-287 (Improper Authentication) and CWE-290 (Authentication Bypass by Spoofing).

### How severe is CAPEC-22?

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

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

---

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