漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
view_component: Preview Route Can Dispatch Inherited Helper Methods
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 preview route derives an example name from the URL and calls it with public_send. The code does not verify that the requested method is one of the preview examples explicitly defined by the preview class. As a result, inherited public methods on ViewComponent::Preview are route-reachable. The most important one is render_with_template, which accepts template: and locals:. Those values can come from request params and are later passed to Rails as render template:. If previews are exposed, an attacker can render internal Rails templates that are not otherwise routable. This vulnerability is fixed in 4.9.0.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/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版本存在安全漏洞,该漏洞源于预览路由未验证请求方法是否为预览类明确定义的示例,导致继承的公共方法可被路由访问,攻击者可通过请求参数传递template和locals值,进而渲染内部Rails模板。
CVSS Information
N/A
Vulnerability Type
N/A