---
title: "CWE-940: Improper Verification of Source of a Communication Channel"
url: https://radicalnotion.ai/cwe/cwe-940
type: cwe
description: "The product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-940: Improper Verification of Source of a Communication Channel

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 66
- **Of those, in CISA KEV:** 1
- **New in 2026:** 33
- **CWE catalog version:** 4.21

## Description

The product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Applicable platforms

**Technologies:** Mobile (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control, Other | Gain Privileges or Assume Identity, Varies by Context, Bypass Protection Mechanism | An attacker from an untrusted origin could successfully establish a communication channel. The attacker could then gain privileges and access unexpected functionality that was only intended for trusted sources. |

## Potential mitigations

### Architecture and Design

Use a mechanism that can validate the identity of the source, such as a certificate, and validate the integrity of data to ensure that it cannot be modified in transit using an Adversary-in-the-Middle (AITM) attack.

When designing functionality of actions in the URL scheme, consider whether the action should be accessible to all mobile applications, or if an allowlist of applications to interface with is appropriate.

## Demonstrative examples

### Example 1

This Android application will remove a user account when it receives an intent to do so:

Bad code:

```java
IntentFilter filter = new IntentFilter("com.example.RemoveUser");
MyReceiver receiver = new MyReceiver();
registerReceiver(receiver, filter);

public class DeleteReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int userID = intent.getIntExtra("userID");
        destroyUserData(userID);
    }
}
```

This application does not check the origin of the intent, thus allowing any malicious application to remove a user. Always check the origin of an intent, or create an allowlist of trusted applications using the manifest.xml file.

### Example 2

These Android and iOS applications intercept URL loading within a WebView and perform special actions if a particular URL scheme is used, thus allowing the Javascript within the WebView to communicate with the application:

Bad code:

```java
// Android
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url){
    if (url.substring(0,14).equalsIgnoreCase("examplescheme:")){
        if(url.substring(14,25).equalsIgnoreCase("getUserInfo")){
            writeDataToView(view, UserData);
            return false;
        }
        else{
            return true;
        }
    }
}
```

Bad code:

```objective-c
// iOS
-(BOOL) webView:(UIWebView *)exWebView shouldStartLoadWithRequest:(NSURLRequest *)exRequest navigationType:(UIWebViewNavigationType)exNavigationType
{
    NSURL *URL = [exRequest URL];
    if ([[URL scheme] isEqualToString:@"exampleScheme"])
    {
        NSString *functionString = [URL resourceSpecifier];
        if ([functionString hasPrefix:@"specialFunction"])
        {

            // Make data available back in webview.
            UIWebView *webView = [self writeDataToView:[URL query]];
        }
        return NO;
    }
    return YES;
}
```

Attack code:

```javascript
window.location = examplescheme://method?parameter=value
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2025-3651 | desktop product does not properly verify the source of a communication channel, allowing command execution |
| CVE-2000-1218 | DNS server can accept DNS updates from hosts that it did not query, leading to cache poisoning |
| CVE-2005-0877 | DNS server can accept DNS updates from hosts that it did not query, leading to cache poisoning |
| CVE-2001-1452 | DNS server caches glue records received from non-delegated name servers |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-61932 | Motex LANSCOPE Endpoint Manager Improper Verification of Source of a Communication Channel Vulnerability | critical | 9.3 | - | Yes | 2025-10-20 |
| CVE-2023-41094 | Touchlink authentication bypass due to packets processed after timeout or out of range in Ember ZNet | critical | 10.0 | - | No | 2023-10-04 |
| CVE-2024-38886 | - | critical | 9.8 | - | No | 2024-08-02 |
| CVE-2024-40515 | - | critical | 9.8 | - | No | 2024-07-16 |
| CVE-2023-41355 | Chunghwa Telecom NOKIA G-040W-Q - Improper Input Validation | critical | 9.8 | - | No | 2023-11-03 |
| CVE-2026-85085 | - | critical | 9.6 | - | No | 2026-09-04 |
| CVE-2026-112408 | Missing bucket ownership verification in Amazon SageMaker Python SDK default\_bucket() | critical | 9.4 | - | No | 2026-10-21 |
| CVE-2026-48745 | Traccar Client: silent configuration hijack via unverified deep link redirects all GPS telemetry | critical | 9.3 | - | No | 2026-06-16 |
| CVE-2026-33875 | Authenticator Vulnerable to Authentication Flow Hijack | critical | 9.3 | - | No | 2026-03-27 |
| CVE-2026-102551 | Improper verification of the source of a communication channel in FreeRTOS-Plus-TCP Router Advertisement handling | critical | 9.2 | - | No | 2026-10-16 |
| CVE-2026-119568 | vsftpd through 3.0.5 require\_ssl\_reuse Bypass via FTPS Data Channel Hijacking | critical | 9.1 | - | No | 2026-10-30 |
| CVE-2024-40516 | - | high | 8.8 | - | No | 2024-07-16 |

## Related attack patterns (CAPEC)

- [CAPEC-500](https://radicalnotion.ai/capec/capec-500): WebView Injection
- [CAPEC-594](https://radicalnotion.ai/capec/capec-594): Traffic Injection
- [CAPEC-595](https://radicalnotion.ai/capec/capec-595): Connection Reset
- [CAPEC-596](https://radicalnotion.ai/capec/capec-596): TCP RST Injection

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-346](https://radicalnotion.ai/cwe/cwe-346) | Origin Validation Error |
| Parent | [CWE-923](https://radicalnotion.ai/cwe/cwe-923) | Improper Restriction of Communication Channel to Intended Endpoints |
| Child | [CWE-925](https://radicalnotion.ai/cwe/cwe-925) | Improper Verification of Intent by Broadcast Receiver |
| Child | [CWE-939](https://radicalnotion.ai/cwe/cwe-939) | Improper Authorization in Handler for Custom URL Scheme |

## Frequently asked questions

### What is CWE-940?

The product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin.

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

66 recorded CVEs are attributed to CWE-940, including CVE-2025-61932, CVE-2023-41094 and CVE-2024-38886. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-940?

Use a mechanism that can validate the identity of the source, such as a certificate, and validate the integrity of data to ensure that it cannot be modified in transit using an Adversary-in-the-Middle (AITM) attack.

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

Exploiting CWE-940 can lead to: Gain Privileges or Assume Identity, Varies by Context, Bypass Protection Mechanism.

### Is CWE-940 actively exploited?

Yes. 1 CWE-940 vulnerability is in CISA's KEV catalog of actively exploited flaws, out of 66 recorded CVEs.

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

---

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