Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
view_component: System Test Entry Point Path Check Allows Sibling Directory Escape
Vulnerability Description
view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 3.0.0 to 4.9.0, the system test entrypoint canonicalizes a user-controlled file path with File.realpath, then checks whether the resolved path starts with the temp directory path. This is not a safe containment check because sibling directories can share the same string prefix. This vulnerability is fixed in 4.9.0.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
部分比较
Vulnerability Title
view_component 安全漏洞
Vulnerability Description
view_component是ViewComponent开源的一个用于构建可复用、可测试视图组件的框架。 view_component 3.0.0版本至4.9.0版本存在安全漏洞,该漏洞源于系统测试入口点使用File.realpath规范化用户控制的文件路径后,仅检查解析路径是否以临时目录路径开头,但未进行安全包含检查,因为同级目录可共享相同字符串前缀。
CVSS Information
N/A
Vulnerability Type
N/A