CWE-472: External Control of Assumed-Immutable Web Parameter
Also known as: Assumed-Immutable Parameter Tampering
The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields.
Last updated
Overview
If a web product does not properly protect assumed-immutable values from modification in hidden form fields, parameters, cookies, or URLs, this can lead to modification of critical data. Web applications often mistakenly make the assumption that data passed to the client in hidden fields or cookies is not susceptible to tampering. Improper validation of data that are user-controllable can lead to the application processing incorrect, and often malicious, input. 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.
Real-world CVEs
139 recorded CVEs are caused by CWE-472 (External Control of Assumed-Immutable Web Parameter), including 1 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 90 new CWE-472 CVEs have been recorded so far in 2026 (26 in 2025).
- CVE-2025-35939CISA KEV
Craft CMS stores user-provided content in session files
Medium · CVSS 6.9 · EPSS 72th2025-05-07 - CVE-2025-43930Critical · CVSS 9.8 · EPSS 44th2025-07-07
- CVE-2025-43933Critical · CVSS 9.8 · EPSS 37th2025-07-07
- CVE-2023-24373
WordPress Booking calendar, Appointment Booking System plugin <= 3.2.3 - Bypass vulnerability
Critical · CVSS 9.8 · EPSS 29th2024-06-03 - CVE-2024-25153
Remote Code Execution in FileCatalyst Workflow 5.x prior to 5.1.6 Build 114
Critical · CVSS 9.8 · EPSS 99th2024-03-13 - CVE-2021-1290
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 91th2021-02-04 - CVE-2021-1291
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 91th2021-02-04 - CVE-2021-1292
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 91th2021-02-04 - CVE-2021-1293
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 93th2021-02-04 - CVE-2021-1294
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 92th2021-02-04 - CVE-2021-1295
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 91th2021-02-04 - CVE-2021-1289
Cisco Small Business RV160, RV160W, RV260, RV260P, and RV260W VPN Routers Remote Code Execution Vulnerabilities
Critical · CVSS 9.8 · EPSS 91th2021-02-04
Showing 12 of 139 recorded CWE-472 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsCommon consequences
What can happen when CWE-472 is exploited.
Modify Application Data
Affects: Integrity
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.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Technologies
How to prevent it
Practical mitigations for CWE-472, grouped by where in the lifecycle they apply.
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.
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.
How to detect it
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
Code examples
MITRE examples of the weakness in code.
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.
Vulnerable example
String accountID = request.getParameter("accountID");Hidden fields should not be trusted as secure parameters.
Vulnerable example
<input type="hidden"Illustrative examples
Real CVEs that MITRE cites as examples of this weakness.
- 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.
Terminology & mappings
Alternate terms
- Assumed-Immutable Parameter Tampering
Mapped taxonomies
- PLOVER: Web Parameter Tampering
- OWASP Top Ten 2007: Insecure Direct Object Reference (A4) — CWE More Specific fit
- OWASP Top Ten 2004: Unvalidated Input (A1) — CWE More Specific fit
Attack patterns
CAPEC attack patterns that exploit this weakness.
Frequently asked questions
Common questions about CWE-472.
- 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?
- 139 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.
- Is CWE-472 actively exploited?
- Yes. 1 CWE-472 vulnerability is in CISA's KEV catalog of actively exploited flaws, out of 139 recorded CVEs.
Sources
- [1]24 Deadly Sins of Software Security (2010)
- [2]The Art of Software Security Assessment (2006)
References
- MITRE CWE definition (CWE-472) (opens in a new tab)
- CWE-472 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-472 CVEs
Get an alert when a new CWE-472 CVE affects your products, with AI-written analysis and remediation steps.