POJIA破甲
地图 / Rack parses encoded cookie names allowing an attacker to send malicious `__Host-` and `__Secure-` prefixed cookies

Rack parses encoded cookie names allowing an attacker to send malicious `__Host-` and `__Secure-` prefixed cookies

访问控制 / Reliance on Cookies without Validation and Integrity Checking in a Security Decision / #895727

厂商
Ruby on Rails
严重程度
低危
赏金
—
弱点
Reliance on Cookies without Validation and Integrity Checking in a Security Decision
研究员
@fletchto99
披露日期
2020-06-16
资产
https://github.com/rails/rails
CVE
CVE-2020-8184

该报告还没有中文解读。

原文摘录

摘自原文(4699 字符中的一小部分)
The [rack cookie parser](https://github.com/rack/rack/blob/c9ff9709afa70ca0e427aa06643c851f498359dc/lib/rack/utils.rb#L215) parses the cookie string using [`unescape`](https://github.com/rack/rack/blob/c9ff9709afa70ca0e427aa06643c851f498359dc/lib/rack/utils.rb#L215). This allows a malicious …
原文中的代码
# frozen_string_literal: true

require_relative 'helper'

describe Rack::Utils, "malicious cookie" do
  # Fails and __Host-evil reads the malicious value and sets it as the cookie
  # rather than reading the actual __Host cookie
  #
  # Furthermore, browsers enforce HostOnly for `__Host-` cookies …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Ruby on Rails 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @fletchto99 · 版权归作者与 Ruby on Rails 所有

同类报告

Отправка писем с произвольным текстом/кликабельными ссылками любому зарегистрированному пользователю с указанной почтой, зная только steamidCS Money · 2020-12-20Able to blocking users with 2fa from login into their accounts by just knowing the SteamIDCS Money · 2023-12-14 · $300Reset password cookie leads to account takeoverWeblate · 2020-10-12Ruby CVE-2021-41819: Cookie Prefix Spoofing in CGI::Cookie.parseInternet Bug Bounty · 2022-02-03 · $2,000[REMOTE] Full Account Takeover At https://██████████████/CAS/U.S. Dept Of Defense · 2019-10-04Session cookie without secure flag on https://underwriter.partner.cuvva.comCuvva · —