漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
kin-openapi: Uncontrolled resource consumption in openapi3filter deepObject query parameter decoding
Vulnerability Description
kin-openapi is a Go project for handling OpenAPI files. From 0.124.0 until 0.142.0, openapi3filter.sliceMapToSlice in openapi3filter/req_resp_decoder.go converts attacker-controlled sparse indexes from a deepObject query parameter into a dense slice by allocating entries from zero through the largest supplied index, after which buildResObj creates another slice of the same length. This allocation occurs before schema validation, so maxItems does not prevent it. An unauthenticated client can send a small query such as param[items][50000000]=x to an endpoint whose deepObject schema contains an array, forcing multi-gigabyte heap allocation and causing an OOM kill or restart loop. Other request-body encodings and styled parameters that do not produce bracketed integer indexes are not affected. This issue is fixed in version 0.142.0.
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Vulnerability Type
未加控制的资源消耗(资源穷尽)
Vulnerability Title
getkin kin-openapi 资源管理错误漏洞
Vulnerability Description
getkin kin-openapi是getkin个人开发者开源的一款OpenAPI规范解析框架。 getkin kin-openapi 0.124.0版本至0.142.0之前版本存在资源管理错误漏洞,该漏洞源于openapi3filter.sliceMapToSlice函数将deepObject查询参数中攻击者控制的稀疏索引转换为密集切片,导致在模式验证前分配大量内存,从而使未认证客户端发送恶意查询时造成多GB堆分配,引发OOM终止或重启循环。
CVSS Information
N/A
Vulnerability Type
N/A