---
title: "CWE-472: External Control of Assumed-Immutable Web Parameter"
url: https://radicalnotion.ai/cwe/cwe-472
type: cwe
description: "The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-472: External Control of Assumed-Immutable Web Parameter

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

## Description

The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields.

For example, custom cookies commonly store session data or persistent data across sessions. This kind of session data is normally involved in security related decisions on the server side, such as user authentication and access control. Thus, the cookies might contain sensitive data such as user credentials and privileges. This is a dangerous practice, as it can often lead to improper reliance on the value of the client-provided cookie by the server side application.

## Alternate terms

- Assumed-Immutable Parameter Tampering

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | Web application developers often mistakenly assume that data cannot be modified when it has been passed in hidden fields, cookies, or headers. |
| Implementation | OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase. |

## Applicable platforms

**Languages:** Python (Undetermined)

**Technologies:** Web Based (Undetermined), Web Server (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Modify Application Data | Without appropriate protection mechanisms, the client can easily tamper with cookies and similar web data. Reliance on the cookies without detailed validation can lead to problems such as SQL injection. If you use cookie values for security related decisions on the server side, manipulating the cookies might lead to violations of security policies such as authentication bypassing, user impersonation and privilege escalation. In addition, storing sensitive data in the cookie without appropriate protection can also lead to disclosure of sensitive user data, especially data stored in persistent cookies. |
| Integrity | Bypass Protection Mechanism | If cookie values are used for security related decisions on the server side, manipulating the cookies might lead to violations of security policies such as authentication bypassing, user impersonation, and privilege escalation. |
| Confidentiality | Read Application Data | Storing sensitive data in the cookie without appropriate protection can also lead to disclosure of sensitive user data, especially data stored in persistent cookies. |

## Potential mitigations

### Implementation (Input Validation)

Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

### Implementation (Input Validation)

Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High

## Demonstrative examples

### Example 1

In this example, a web application uses the value of a hidden form field (accountID) without having done any input validation because it was assumed to be immutable.

Bad code:

```java
String accountID = request.getParameter("accountID");
User user = getUserFromID(Long.parseLong(accountID));
```

### Example 2

Hidden fields should not be trusted as secure parameters.

Bad code:

```html
<input type="hidden"
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-0108 | Forum product allows spoofed messages of other users via hidden form fields for name and e-mail address. |
| CVE-2000-0253 | Shopping cart allows price modification via hidden form field. |
| CVE-2000-0254 | Shopping cart allows price modification via hidden form field. |
| CVE-2000-0926 | Shopping cart allows price modification via hidden form field. |
| CVE-2000-0101 | Shopping cart allows price modification via hidden form field. |
| CVE-2000-0102 | Shopping cart allows price modification via hidden form field. |
| CVE-2000-0758 | Allows admin access by modifying value of form field. |
| CVE-2002-1880 | Read messages by modifying message ID parameter. |
| CVE-2000-1234 | Send email to arbitrary users by modifying email parameter. |
| CVE-2005-1652 | Authentication bypass by setting a parameter. |
| CVE-2005-1784 | Product does not check authorization for configuration change admin script, leading to password theft via modified e-mail address field. |
| CVE-2005-2314 | Logic error leads to password disclosure. |
| CVE-2005-1682 | Modification of message number parameter allows attackers to read other people's messages. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-35939 | Craft CMS stores user-provided content in session files | medium | 6.9 | - | Yes | 2025-05-07 |
| CVE-2025-43930 | - | critical | 9.8 | - | No | 2025-07-07 |
| CVE-2025-43933 | - | critical | 9.8 | - | No | 2025-07-07 |
| CVE-2023-24373 | WordPress Booking calendar, Appointment Booking System plugin \<= 3.2.3 - Bypass vulnerability | critical | 9.8 | - | No | 2024-06-03 |
| CVE-2024-25153 | Remote Code Execution in FileCatalyst Workflow 5.x prior to 5.1.6 Build 114 | critical | 9.8 | - | No | 2024-03-13 |
| CVE-2021-1290 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |
| CVE-2021-1291 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |
| CVE-2021-1292 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |
| CVE-2021-1293 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |
| CVE-2021-1294 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |
| CVE-2021-1295 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |
| CVE-2021-1289 | Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities | critical | 9.8 | - | No | 2021-02-04 |

## Related attack patterns (CAPEC)

- [CAPEC-146](https://radicalnotion.ai/capec/capec-146): XML Schema Poisoning
- [CAPEC-226](https://radicalnotion.ai/capec/capec-226): Session Credential Falsification through Manipulation
- [CAPEC-31](https://radicalnotion.ai/capec/capec-31): Accessing/Intercepting/Modifying HTTP Cookies
- [CAPEC-39](https://radicalnotion.ai/capec/capec-39): Manipulating Opaque Client-based Data Tokens

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-471](https://radicalnotion.ai/cwe/cwe-471) | Modification of Assumed-Immutable Data (MAID) |
| Parent | [CWE-642](https://radicalnotion.ai/cwe/cwe-642) | External Control of Critical State Data |
| Related | [CWE-384](https://radicalnotion.ai/cwe/cwe-384) | Session Fixation |
| Related | [CWE-656](https://radicalnotion.ai/cwe/cwe-656) | Reliance on Security Through Obscurity |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Web Parameter Tampering | - | - |
| OWASP Top Ten 2007 | Insecure Direct Object Reference | A4 | CWE More Specific |
| OWASP Top Ten 2004 | Unvalidated Input | A1 | CWE More Specific |
| OpenSSF Secure Coding Guide for Python | Determine Access on Server Side | pyscg-0055 | - |

## Frequently asked questions

### What is CWE-472?

The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields.

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

165 recorded CVEs are attributed to CWE-472, including CVE-2025-35939, CVE-2025-43930 and CVE-2025-43933. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

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

CWE-472 maps to OWASP Top Ten 2007: Insecure Direct Object Reference (A4) in the OWASP security taxonomy.

### How do you prevent CWE-472?

Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

### How is CWE-472 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

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

Exploiting CWE-472 can lead to: Modify Application Data, Bypass Protection Mechanism, Read Application Data.

### Is CWE-472 actively exploited?

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

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

---

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