Today i come across interesting news update which share new technique used in the Phishing attack.
Phishing is one of the popular social engineering attack used by Cybercriminals. In this method, hackers host a fake webpage which looks similar to the original page of the website.
Then, hackers lure users to the phishing page by tricking them with legitimate-looking mails. If user enter the login data in the phishing page, the info will be stored in hackers database. At the end, users will be redirected to original website so that users won’t realize that they are under attack. more details>>.
From the above , it is clear that Cybercriminals need a webhosting for hosting their phishing page. But the recent research shows that hosting site is no longer needed.
Henning Klevjer, an information security student at the University of Oslo in Norway, shows how a hacker can create phishing page using Data URI.
What is Data URI?
Data URLs are a Uniform Resource Identifier scheme that allow you to include data items inline in a web page as if they were being referenced as external resources. Data URLs are a form of Uniform Resource Locators, although they do not in fact remotely locate anything. Instead, the resource data is contained within the URL string itself . This saves the browser from having to make additional HTTP requests for the external resources, and can thus increase page loading speed.
The above code will display the following image in the page.
The fun part of the Data URI is that you can directly enter the code in the browser address bar and load the content.
Pasting the following code in the browser address bar will load the image directly.
Not only Image, you can load text, html and other supported formats. You got my point?! Yes, Cyber Criminals are able to load the entire phishing page using the data URI method.
The simplified version Data URI example(without base64 encoding):
Entering the above Data url in browser address bar will display the “BreakTheSecurity” text in the h1 format.
Data URIs follow this scheme:
Here, <mediatype> are one of the MIME media types described in RFC 2046. Base64 encoding is optional.
How an attacker can use it for creating phishing page?
This section is not suitable for the one who doesn’t know how to create normal phishing page. Read this post before reading this section.
Copy the source code from the original site(right click and select ‘view page source’)
Modify the code such that transfer user credentials to another location.
Now encode the source code with base 64.
Once you got the encoded code, create data uri by following the above scheme.
Alternatively you can use the site for creating the data URI:
As the data url is too long, hackers will use the url shortening service. But google chrome shows warning whenever redirected from url shortening service to data url.
- Research Paper: http://klevjers.com/papers/phishing.pdf