Ruby CVE-2021-41819: Cookie Prefix Spoofing in CGI::Cookie.parse
访问控制 / Reliance on Cookies without Validation and Integrity Checking in a Security Decision / #1464396
该报告还没有中文解读。
原文摘录
摘自原文(2082 字符中的一小部分)
Release note: https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/
原文中的代码
def self.parse(raw_cookie)
cookies = Hash.new([])
return cookies unless raw_cookie
raw_cookie.split(/;\s?/).each do |pairs|
name, values = pairs.split('=',2)
next unless name and values
name = CGI.unescape(name)
values ||= ""
values = values.split('&').collect{|v| …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Internet Bug Bounty 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @ooooooo_q · 版权归作者与 Internet Bug Bounty 所有