目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1110

100%

CVE-2026-40295— Devise 未验证 referer 导致重定向漏洞

CVSS 6.1 · Medium EPSS 0.05% · P16

影响版本矩阵 1

厂商产品版本范围状态
heartcombodevise< 5.0.4affected
获取后续新漏洞提醒登录后订阅

一、 漏洞 CVE-2026-40295 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Devise: Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler
来源: 美国国家漏洞数据库 NVD
Vulnerability Description
Devise is an authentication solution for Rails based on Warden. In versions 5.0.3 and below, when the Timeoutable module is enabled in Devise, the FailureApp#redirect_url method returns request.referrer — the HTTP Referer header, which is attacker-controllable — without validation for any non-GET request that results in a session timeout. An attacker who hosts a page with an auto-submitting cross-origin form can cause a victim with an expired Devise session to be redirected to an arbitrary external URL. This contrasts with the GET timeout path (which uses server-side attempted_path) and Devise's own store_location_for mechanism (which strips external hosts via extract_path_from_location), both of which are protected; only the non-GET timeout redirect path is unprotected. Expired-session users can be silently redirected from the trusted app domain to attacker-controlled URLs, enabling phishing and malware delivery while bypassing browser warnings. Note: Rails' built-in open-redirect protection does not mitigate this issue. Devise::FailureApp is an ActionController::Metal app with its own isolated copy of the relevant redirect configuration, so config.action_controller.action_on_open_redirect = :raise (and the older raise_on_open_redirects setting) do not reach it. This issue has been fixed in version 5.0.4.
来源: 美国国家漏洞数据库 NVD
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
来源: 美国国家漏洞数据库 NVD
Vulnerability Type
指向未可信站点的URL重定向(开放重定向)
来源: 美国国家漏洞数据库 NVD

受影响产品

厂商产品影响版本CPE订阅
heartcombodevise < 5.0.4 -

二、漏洞 CVE-2026-40295 的公开POC

#POC 描述源链接神龙链接
AI 生成 POC高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-40295 的情报信息

登录查看更多情报信息。

CVE-2026-40295 补丁与修复 (1)

CVE-2026-40295 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-40295

暂无评论


发表评论