تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
Browser In The Browser (BITB) Attack
#1
This article explores a phishing technique that simulates a browser window within the browser to spoof a legitimate domain.
Introduction
For security professionals, the URL is usually the most trusted aspect of a domain. Yes there’s attacks like IDN Homograph and DNS Hijacking that may degrade the reliability of URLs but not to an extent that makes URLs unreliable.
All of this eventually lead me to think, is it possible to make the “Check the URL” advice less reliable? After a week of brainstorming I decided that the answer is yes.
Pop-Up Login Windows
[صورة مرفقة: demo-871d93a543cbab9c141747b773aac595-e0879.png]
Quite often when we authenticate to a website via Google, Microsoft, Apple etc. we’re provided a pop-up window that asks us to authenticate. The image below shows the window that appears when someone attempts to login to Canva using their Google account.

[صورة مرفقة: canva-dc7352a5c2ef20fda5679b8b67b9c70b-8f18d.png]
Replicating The Window
Fortunately for us, replicating the entire window design using basic HTML/CSS is quite simple. Combine the window design with an iframe pointing to the malicious server hosting the phishing page, and its basically indistinguishable. The image below shows the fake window compared with the real window. Very few people would notice the slight differences between the two.
[صورة مرفقة: real-fake-b3c219e9874e9baca7a0eb6da39d693c-d438a.png]
JavaScript can be easily used to make the window appear on a link or button click, on the page loading etc. And of course you can make the window appear in a visually appealing manner through animations available in libraries such as JQuery.
Demo
[صورة مرفقة: demo-c2b899d2175d71fb45e3f86a8ba80644.gif]
Custom URL on-hover
Hovering over a URL to determine if it’s legitimate is not very effective when JavaScript is permitted. HTML for a link generally looks like this:
[align=start]
 
[align=center]<a href="https://gmail.com">Google</a>[/align]
If an onclick event that returns false is added, then hovering over the link will continue to show the website in the 
[align=center]href[/align]
 attribute but when the link is clicked then the 
[align=center]href[/align]
 attribute is ignored. We can use this knowledge to make the pop-up window appear more realistic.
[align=start]
 
[align=center]<a href="https://gmail.com" onclick="return launchWindow();">Google</a> function launchWindow(){ // Launch the fake authentication window return false; // This will make sure the href attribute is ignored }[/align]
[/align]
Available Templates
I’ve created templates for the following OS and browser:
  • Windows - Chrome (Light & Dark Mode)
  • Mac OSX - Chrome (Light & Dark Mode)
The templates are available on my Github here.
Conclusion
With this technique we are now able to up our phishing game. The target user would still need to land on your website for the pop-up window to be displayed. But once landed on the attacker-owned website, the user will be at ease as they type their credentials away on what appears to be the legitimate website (because the trustworthy URL says so).
[/align]
أعضاء أعجبوا بهذه المشاركة : the9am3 , TeRcO , vosiyons , rce3033 , sitifis


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم