CWE-650 在服务器端信任HTTP权限模型

admin 2021年12月16日16:27:25评论63 views字数 1972阅读6分34秒阅读模式

CWE-650 在服务器端信任HTTP权限模型

Trusting HTTP Permission Methods on the Server Side

结构: Simple

Abstraction: Variant

状态: Incomplete

被利用可能性: High

基本描述

The server contains a protection mechanism that assumes that any URI that is accessed using HTTP GET will not cause a state change to the associated resource. This might allow attackers to bypass intended access restrictions and conduct resource modification and deletion attacks, since some applications allow GET to modify state.

扩展描述

The HTTP GET method and some other methods are designed to retrieve resources and not to alter the state of the application or resources on the server side. Furthermore, the HTTP specification requires that GET requests (and other requests) should not have side effects. Believing that it will be enough to prevent unintended resource alterations, an application may disallow the HTTP requests to perform DELETE, PUT and POST operations on the resource representation. However, there is nothing in the HTTP protocol itself that actually prevents the HTTP GET method from performing more than just query of the data. Developers can easily code programs that accept a HTTP GET request that do in fact create, update or delete data on the server. For instance, it is a common practice with REST based Web Services to have HTTP GET requests modifying resources on the server side. However, whenever that happens, the access control needs to be properly enforced in the application. No assumptions should be made that only HTTP DELETE, PUT, POST, and other methods have the power to alter the representation of the resource being accessed in the request.

相关缺陷

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

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

适用平台

Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
Access Control Gain Privileges or Assume Identity An attacker could escalate privileges.
Integrity Modify Application Data An attacker could modify resources.
Confidentiality Read Application Data An attacker could obtain sensitive information.

可能的缓解方案

System Configuration

策略:

Configure ACLs on the server side to ensure that proper level of access control is defined for each accessible resource representation.

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

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月16日16:27:25
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-650 在服务器端信任HTTP权限模型https://cn-sec.com/archives/613063.html

发表评论

匿名网友 填写信息