---
title: "CAPEC-240: Resource Injection"
url: https://radicalnotion.ai/capec/capec-240
type: capec
description: "An adversary exploits weaknesses in input validation by manipulating resource identifiers enabling the unintended modification or specification of a resource."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-240: Resource Injection

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

## Description

An adversary exploits weaknesses in input validation by manipulating resource identifiers enabling the unintended modification or specification of a resource.

## Prerequisites

- The target application allows the user to both specify the identifier used to access a system resource. Through this permission, the user gains the capability to perform actions on that resource (e.g., overwrite the file)

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |
| Integrity | Modify Data | - |

## Mitigations

- Ensure all input content that is delivered to client is sanitized against an acceptable content specification.
- Perform input validation for all content.
- Enforce regular patching of software.

## Related weaknesses (CWE)

- [CWE-99](https://radicalnotion.ai/cwe/cwe-99): Improper Control of Resource Identifiers

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Child | [CAPEC-610](https://radicalnotion.ai/capec/capec-610) | Cellular Data Injection |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| OWASP Attacks | Resource Injection | - |

## Frequently asked questions

### What is CAPEC-240?

An adversary exploits weaknesses in input validation by manipulating resource identifiers enabling the unintended modification or specification of a resource.

### How do you prevent CAPEC-240?

Ensure all input content that is delivered to client is sanitized against an acceptable content specification.

### What weaknesses does CAPEC-240 target?

CAPEC-240 exploits one CWE weakness: CWE-99 (Improper Control of Resource Identifiers).

### How severe is CAPEC-240?

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

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

---

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