Stored XSS in Post Preview as Contributor
该报告还没有中文解读。
原文摘录
摘自原文(1794 字符中的一小部分)
I noticed that the `get_the_content()` makes a preg_replace_callback after all other validation and sanitization has been performed.
原文中的代码
function get_the_content( $more_link_text = null, $strip_teaser = false ) {
global $page, $more, $preview, $pages, $multipage;
$post = get_post();
...
if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
$output = preg_replace_callback( '/\%u([0-9A-F]{4})/', …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 WordPress 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @simonscannell · 版权归作者与 WordPress 所有