OpenAPI 规范扩展安全方案:一种降低 Broken Object Level Authorization 发生率的方法
OpenAPI Specification Extended Security Scheme: A method to reduce the prevalence of Broken Object Level Authorization
AI总结:
本文针对API安全头号漏洞BOLA,提出OAS ESS扩展安全方案及授权模块,分别从设计和开发层面引入声明式安全控制与对象级授权检查机制,帮助开发者降低BOLA发生率。
摘要:
API 已成为实现服务间通信的首选主流技术。API 部署的增长推动了解决其缺乏安全标准的紧迫性。鉴于 OpenAPI 标准中缺乏标准化的授权,API 安全是一个令人关注的问题,不当的授权使得已知和未知的漏洞成为可能,这些漏洞在过去几年中被恶意行为者利用,导致了数据丢失。本文研究了 API 安全中的头号漏洞:Broken Object Level Authorization (BOLA),并提出了降低该漏洞发生率的方法和工具。BOLA 影响各种 API 框架,我们的范围聚焦于 OpenAPI Specification (OAS)。OAS 是一个用于描述和实现 API 的标准;流行的 OAS 实现有 FastAPI、Connexion (Flask) 等等。这些实现带有与 OAS 对 API 属性的了解相关的优缺点。OpenAPI 规范的安全属性没有解决对象授权问题,也没有提供定义此类对象属性的标准化方法。这使得对象级安全完全取决于开发者,从而增加了无意中创建攻击向量的风险。我们的目标是通过引入以下内容来填补这一空白:1) OAS ESS (OpenAPI Specification Extended Security Scheme),其中包括 OAS 中对象的声明式安全控制(基于设计的方法);2) 一个可导入到 API 服务(Flask/FastAPI)的授权模块,以在对象级别执行授权检查(基于开发的方法)。在构建 API 服务时,开发者可以从 API 设计(规范)或其代码开始。在这两种情况下,都引入了一组机制来帮助开发者缓解并降低 BOLA 的发生率。
英文摘要:
APIs have become the prominent technology of choice for achieving inter-service communications. The growth of API deployments has driven the urgency in addressing its lack of security standards. API Security is a topic for concern given the absence of standardized authorization in the OpenAPI standard, improper authorization opens the possibility for known and unknown vulnerabilities, which in the past years have been exploited by malicious actors resulting in data loss. This paper examines the number one vulnerability in API Security: Broken Object Level Authorization(BOLA), and proposes methods and tools to reduce the prevalence of this vulnerability. BOLA affects various API frameworks, our scope is fixated on the OpenAPI Specification(OAS). The OAS is a standard for describing and implementing APIs; popular OAS Implementations are FastAPI, Connexion (Flask), and many more. These implementations carry the pros and cons that are associated with the OASs knowledge of API properties. The Open API Specifications security properties do not address object authorization and provide no standardized approach to define such object properties. This leaves object-level security at the mercy of developers, which presents an increased risk of unintentionally creating attack vectors. Our aim is to tackle this void by introducing 1) the OAS ESS (OpenAPI Specification Extended Security Scheme) which includes declarative security controls for objects in OAS (design-based approach), and 2) an authorization module that can be imported to API services (Flask/FastAPI) to enforce authorization checks at the object level (development-based approach). When building an API service, a developer can start with the API design (specification) or its code. In both cases, a set of mechanisms are introduced to help developers mitigate and reduce the prevalence of BOLA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。