VariantDraft
CWE-473PHP External Variable Modification
Category: other
Description
A PHP application does not properly protect against the modification of variables from external sources, such as query parameters or cookies. This can expose the application to numerous weaknesses that would not exist otherwise.
Common consequences· 1
- Integrity — Modify Application Data
Potential mitigations· 1
- [Requirements, Implementation]Carefully identify which variables can be controlled or influenced by an external user, and consider adopting a naming convention to emphasize when externally modifiable variables are being used. An application should be reluctant to trust variables that have been initialized outside of its trust boundary. Ensure adequate checking is performed when relying on input from outside a trust boundary. Do not allow your application to run with register_globals enabled. If you implement a register_globals emulator, be extremely careful of variable extraction, dynamic evaluation, and similar issues, since weaknesses in your emulation could allow external variable modification to take place even without register_globals.
Related CAPEC attack patterns· 1
References
Exploits (incoming)1
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | Manipulating User-Controlled Variablescapec-77 | 100% | live |
(incoming)4
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2026-28411cve-2026-28411 | 0% | live |
| Vulnerability | CVE-2026-40285cve-2026-40285 | 0% | live |
| KEVEntry | Juniper Junos OS EX Series PHP External Variable Modification Vulnerabilitykev-cve-2023-36844 | 0% | live |
| KEVEntry | Juniper Junos OS EX Series and SRX Series PHP External Variable Modification Vulnerabilitykev-cve-2023-36845 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.