---
title: "CWE-602: Client-Side Enforcement of Server-Side Security"
url: https://radicalnotion.ai/cwe/cwe-602
type: cwe
description: "The product includes a server that relies on the client to implement a protection mechanism that is intended to protect the server."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-602: Client-Side Enforcement of Server-Side Security

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** Medium
- **CVEs with this as primary weakness:** 174
- **Of those, in CISA KEV:** 0
- **New in 2026:** 84
- **CWE catalog version:** 4.21

## Description

The product includes a server that relies on the client to implement a protection mechanism that is intended to protect the server.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic. |
| Architecture and Design | Consider a product that consists of two or more processes or nodes that must interact closely, such as a client/server model. If the product uses protection schemes in the client in order to defend from attacks against the server, and the server does not use the same schemes, then an attacker could modify the client in a way that bypasses those schemes. This is a fundamental design flaw that is primary to many weaknesses. |

## Applicable platforms

**Technologies:** ICS/OT (Undetermined), Mobile (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | DoS: Crash, Exit, or Restart | An attacker may be able to easily bypass client-side validation by modifying the client, allowing malformed or unexpected input to pass into the application, potentially as trusted data. This may lead to unexpected states, behaviors and possibly a resulting crash. |
| Access Control | Bypass Protection Mechanism, Gain Privileges or Assume Identity | An attacker can modify the client-side behavior to bypass the protection mechanisms. For example, client-side checks for authentication can be easily bypassed, allowing clients to escalate their access levels and perform unintended actions. |

## Potential mitigations

### Architecture and Design

For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.

Even though client-side checks provide minimal benefits with respect to server-side security, they are still useful. First, they can support intrusion detection. If the server receives input that should have been rejected by the client, then it may be an indication of an attack. Second, client-side error-checking can provide helpful feedback to the user about the expectations for valid input. Third, there may be a reduction in server-side processing time for accidental input errors, although this is typically a small savings.

### Architecture and Design

If some degree of trust is required between the two entities, then use integrity checking and strong authentication to ensure that the inputs are coming from a trusted source. Design the product so that this trust is managed in a centralized fashion, especially if there are complex or numerous communication channels, in order to reduce the risks that the implementer will mistakenly omit a check in a single code path.

## Detection methods

### Fuzzing

Use dynamic tools and techniques that interact with the software using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The software's operation may slow down, but it should not become unstable, crash, or generate incorrect results.

### Manual Analysis

Use tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session. These may be more effective than strictly automated techniques. This is especially the case with weaknesses that are related to design and business rules.

## Demonstrative examples

### Example 1

This example contains client-side code that checks if the user authenticated successfully before sending a command. The server-side code performs the authentication in one step, and executes the command in a separate step.

Good code:

```perl
$server = "server.example.com";
$username = AskForUserName();
$password = AskForPassword();
$address = AskForAddress();
$sock = OpenSocket($server, 1234);
writeSocket($sock, "AUTH $username $password\n");
$resp = readSocket($sock);
if ($resp eq "success") {

    # username/pass is valid, go ahead and update the info!
    writeSocket($sock, "CHANGE-ADDRESS $username $address\n";
}
else {
    print "ERROR: Invalid Authentication!\n";
}
```

Bad code:

```perl
$sock = acceptSocket(1234);
($cmd, $args) = ParseClientRequest($sock);
if ($cmd eq "AUTH") {
    ($username, $pass) = split(/\s+/, $args, 2);
    $result = AuthenticateUser($username, $pass);
    writeSocket($sock, "$result\n");
    # does not close the socket on failure; assumes the

    # user will try again
}
elsif ($cmd eq "CHANGE-ADDRESS") {
    if (validateAddress($args)) {
        $res = UpdateDatabaseRecord($username, "address", $args);
        writeSocket($sock, "SUCCESS\n");
    }
    else {
        writeSocket($sock, "FAILURE -- address is malformed\n");
    }
}
```

### Example 2

In 2022, the OT:ICEFALL study examined products by 10 different Operational Technology (OT) vendors. The researchers reported 56 vulnerabilities and said that the products were "insecure by design" \[REF-1283\]. If exploited, these vulnerabilities often allowed adversaries to change how the products operated, ranging from denial of service to changing the code that the products executed. Since these products were often used in industries such as power, electrical, water, and others, there could even be safety implications.

Multiple vendors used client-side authentication in their OT products.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2024-50653 | Chain: e-commerce product has a "front-end restriction" for coupon use (CWE-602), but the server does not restrict the number of requests for the same coupon (CWE-799) |
| CVE-2022-33139 | SCADA system only uses client-side authentication, allowing adversaries to impersonate other users. |
| CVE-2006-6994 | Chain: ASP program allows upload of .asp files (CWE-434) by bypassing client-side checks (CWE-601. |
| CVE-2007-0163 | steganography products embed password information in the carrier file, which can be extracted from a modified client. |
| CVE-2007-0164 | steganography products embed password information in the carrier file, which can be extracted from a modified client. |
| CVE-2007-0100 | client allows server to modify client's configuration and overwrite arbitrary files. |

## Real CVEs with this weakness (sample of 12 of 174)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-64813 | In JetBrains IntelliJ IDEA before 2026.2 unauthorized settings modification was possible in a... | critical | 10.0 | - | No | 2026-07-23 |
| CVE-2026-42160 | Data Space Portal: Incorrect Authorization and Client-Side Enforcement of Server-Side Security in ghcr.io/sovity/ds-portal-ce-backend | critical | 10.0 | - | No | 2026-05-08 |
| CVE-2026-23478 | Cal.com has an Authentication Bypass via Unvalidated Email in Custom JWT Callback | critical | 10.0 | - | No | 2026-01-13 |
| CVE-2025-51682 | - | critical | 9.8 | - | No | 2025-12-01 |
| CVE-2025-10640 | Missing Server-Side Authentication Checks in EfficientLab WorkExaminer Professional | critical | 9.8 | - | No | 2025-10-21 |
| CVE-2025-28168 | - | critical | 9.8 | - | No | 2025-05-05 |
| CVE-2025-27681 | - | critical | 9.8 | - | No | 2025-03-05 |
| CVE-2024-12603 | - | critical | 9.8 | - | No | 2024-12-13 |
| CVE-2023-0750 | Yellowbrik PEC-1864 authentication bypass | critical | 9.8 | - | No | 2023-04-06 |
| CVE-2020-24683 | Authentication Bypass in Symphony Plus | critical | 9.8 | - | No | 2020-12-22 |
| CVE-2026-14109 | Insufficient policy enforcement in Mojo | critical | 9.6 | - | No | 2026-06-30 |
| CVE-2022-20658 | Cisco Unified Contact Center Management Portal and Unified Contact Center Domain Manager Privilege Escalation Vulnerability | critical | 9.6 | - | No | 2022-01-14 |

## Related attack patterns (CAPEC)

- [CAPEC-162](https://radicalnotion.ai/capec/capec-162): Manipulating Hidden Fields
- [CAPEC-202](https://radicalnotion.ai/capec/capec-202): Create Malicious Client
- [CAPEC-207](https://radicalnotion.ai/capec/capec-207): Removing Important Client Functionality
- [CAPEC-208](https://radicalnotion.ai/capec/capec-208): Removing/short-circuiting 'Purse' logic: removing/mutating 'cash' decrements
- [CAPEC-21](https://radicalnotion.ai/capec/capec-21): Exploitation of Trusted Identifiers
- [CAPEC-31](https://radicalnotion.ai/capec/capec-31): Accessing/Intercepting/Modifying HTTP Cookies
- [CAPEC-383](https://radicalnotion.ai/capec/capec-383): Harvesting Information via API Event Monitoring
- [CAPEC-384](https://radicalnotion.ai/capec/capec-384): Application API Message Manipulation via Man-in-the-Middle
- [CAPEC-385](https://radicalnotion.ai/capec/capec-385): Transaction or Event Tampering via Application API Manipulation
- [CAPEC-386](https://radicalnotion.ai/capec/capec-386): Application API Navigation Remapping
- [CAPEC-387](https://radicalnotion.ai/capec/capec-387): Navigation Remapping To Propagate Malicious Content
- [CAPEC-388](https://radicalnotion.ai/capec/capec-388): Application API Button Hijacking

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-693](https://radicalnotion.ai/cwe/cwe-693) | Protection Mechanism Failure |
| Child | [CWE-565](https://radicalnotion.ai/cwe/cwe-565) | Reliance on Cookies without Validation and Integrity Checking |
| Child | [CWE-603](https://radicalnotion.ai/cwe/cwe-603) | Use of Client-Side Authentication |
| Peer | [CWE-290](https://radicalnotion.ai/cwe/cwe-290) | Authentication Bypass by Spoofing |
| Peer | [CWE-300](https://radicalnotion.ai/cwe/cwe-300) | Channel Accessible by Non-Endpoint |
| Peer | [CWE-836](https://radicalnotion.ai/cwe/cwe-836) | Use of Password Hash Instead of Password for Authentication |
| Can precede | [CWE-471](https://radicalnotion.ai/cwe/cwe-471) | Modification of Assumed-Immutable Data (MAID) |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| OWASP Top Ten 2004 | Unvalidated Input | A1 | CWE More Specific |

## Frequently asked questions

### What is CWE-602?

The product includes a server that relies on the client to implement a protection mechanism that is intended to protect the server.

### What CVEs are caused by CWE-602?

174 recorded CVEs are attributed to CWE-602, including CVE-2026-64813, CVE-2026-42160 and CVE-2026-23478.

### Is CWE-602 part of the OWASP Top 10?

CWE-602 maps to OWASP Top Ten 2004: Unvalidated Input (A1) in the OWASP security taxonomy.

### How do you prevent CWE-602?

For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.

### How is CWE-602 detected?

Fuzzing: Use dynamic tools and techniques that interact with the software using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The software's operation may slow down, but it should not become unstable, crash, or generate incorrect results.

### What are the consequences of CWE-602?

Exploiting CWE-602 can lead to: DoS: Crash, Exit, or Restart, Bypass Protection Mechanism, Gain Privileges or Assume Identity.

### Is CWE-602 actively exploited?

174 recorded CVEs are caused by CWE-602; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/602.html)

---

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