Response splitting vulnerability in WEBrick
该报告还没有中文解读。
原文摘录
摘自原文(1072 字符中的一小部分)
WEBrick seems to be vulnerable to a [response splitting attack](https://www.owasp.org/index.php/HTTP_Response_Splitting). The reproduction script is very similar to the code shown on the owasp page:
原文中的代码
require 'webrick'
class MyServlet < ::WEBrick::HTTPServlet::AbstractServlet
def service req, res
res.cookies << WEBrick::Cookie.new('author', req.query['author'])
res.body = 'hello world'
end
end
server = ::WEBrick::HTTPServer.new Port: 8080
server.mount "/", MyServlet
trap('INT') { …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Ruby 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @tenderlove · 版权归作者与 Ruby 所有