CWE-473 PHP参数外部修改

admin 2021年12月12日05:47:12评论92 views字数 2092阅读6分58秒阅读模式

CWE-473 PHP参数外部修改

PHP External Variable Modification

结构: Simple

Abstraction: Variant

状态: Draft

被利用可能性: unkown

基本描述

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.

相关缺陷

  • cwe_Nature: ChildOf cwe_CWE_ID: 471 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 471 cwe_View_ID: 699 cwe_Ordinal: Primary

  • cwe_Nature: CanPrecede cwe_CWE_ID: 98 cwe_View_ID: 1000

适用平台

Language: {'cwe_Name': 'PHP', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
Integrity Modify Application Data

可能的缓解方案

['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.

分析过的案例

标识 说明 链接
CVE-2000-0860 File upload allows arbitrary file read by setting hidden form variables to match internal variable names. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0860
CVE-2001-0854 Mistakenly trusts $PHP_SELF variable to determine if include script was called by its parent. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-0854
CVE-2002-0764 PHP remote file inclusion by modified assumed-immutable variable. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0764
CVE-2001-1025 Modify key variable when calling scripts that don't load a library that initializes it. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-1025
CVE-2003-0754 Authentication bypass by modifying array used for authentication. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0754

Notes

分类映射

映射的分类名 ImNode ID Fit Mapped Node Name
PLOVER PHP External Variable Modification

相关攻击模式

  • CAPEC-77

文章来源于互联网:scap中文网

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月12日05:47:12
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-473 PHP参数外部修改https://cn-sec.com/archives/613254.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息