CWE•Variant•Draft•0 recent CVEs
CWE-473PHP External Variable Modification
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
- Integrity→Modify Application Data
Potential mitigations
- Requirements,ImplementationCarefully 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. D