Heap overflow due to integer overflow in pg_escape_string() function
该报告还没有中文解读。
原文摘录
摘自原文(5442 字符中的一小部分)
The fix for this bug has been committed: https://bugs.php.net/bug.php?id=73399 Description: ------------ I have found some vulnerable code at `pg_escape_string()` function in module PostgreSQL. `pg_escape_string()` function creates a new zend_string object to store escaped string. The size of …
原文中的代码
PHP_FUNCTION(pg_escape_string)
{
...
zend_string *from = NULL, *to = NULL;
....
to = zend_string_alloc(ZSTR_LEN(from) * 2, 0);
...
}默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Internet Bug Bounty 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @fosec · 版权归作者与 Internet Bug Bounty 所有