Null pointer dereference due to TOCTTOU bug in mrb_time_initialize
该报告还没有中文解读。
原文摘录
摘自原文(483 字符中的一小部分)
mrb_time_initialize sets the data pointer to NULL before parsing function arguments. Parsing function arguments can call out to ruby code to call methods to do type coercion. If the type coercion method tries to access the time object it will dereference a NULL pointer.
原文中的代码
$x = Time.new
class Tmp
def to_i
$x.mday
end
end
$x.initialize Tmp.new默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 shopify-scripts 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @raydot · 版权归作者与 shopify-scripts 所有