i4info Provides the best hacking Material. Latest hacking tutorials and tools are available here. It is the best place for hackers.

Latest topics

» Teen Patti Gold Hack & 3 Patti Chips Code Extra Bonus 2016
Yesterday at 8:23 pm by Admin

» SQL Vulnerable Website
Yesterday at 5:04 pm by Admin

» YouTube Video Downloader (YTD) PRO
Fri Oct 21, 2016 7:02 pm by Admin

» PDF Decrypter Pro
Fri Oct 21, 2016 7:00 pm by Admin

» 2016 Dorks list
Thu Oct 20, 2016 5:49 pm by Admin

» PHP Mailer Script
Mon Oct 17, 2016 5:38 pm by Admin

» The Ultimate Interview Guide: 30 Prep Tips for Job Interview Success
Sun Oct 16, 2016 5:32 pm by Admin

» How to track who visited my Facebook profile?
Sun Oct 16, 2016 12:59 am by awarii

» Download keyscrambler protection crack
Sat Oct 08, 2016 11:43 am by Kurdsh Hacker

October 2016


Calendar Calendar


free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTubeForumotion on Google+

Visitors Counter

Flag Counter

About Author

Muhammad Shahroze Rashid
Web Developer
Web Developer & Designer,Researcher and Technical writer. An Information Security Consultant and System Auditor, a keen Security researcher.
lahore, Punjab
[email protected]
DOB: 05/25/1992
Muhammad Shahroze Rashid
Muhammad Shahroze Rashid is a Web Developer and Designer, Android Developer, InfoGrapher, IT consultant and Researcher
Reviewed by Google
Date published: 01/19/2016
9 / 10 stars
Muhammad Shahroze Rashid
Muhammad Shahroze Rashid Web Developer & Designer,Researcher and Technical writer. An Information Security Consultant and System Audito

This Familiar HTML Attribute Has Given Birth To A New Way Of Phishing



Posts : 437
Reputation : 3
Join date : 2014-12-10
Age : 24
Location : Pakistan

This Familiar HTML Attribute Has Given Birth To A New Way Of Phishing

Post by Admin on Sun Sep 04, 2016 6:30 am

The “target” attribute of anchor tag in HTML converts a website into a phishing platform if the website allows its users to post links.

We all use the anchor tag in HTML for providing a hyperlink in our hypertext document. But using this attribute with value ” _blank” in a particular way may make your website a great target for attackers.

The case becomes worse if your website is vulnerable to XSS.

Because when you open a new tab by reference from an existing tab, your browser allows this new tab to communicate with the referrer tab by using window.opener API.

How Does It Work:

imagine you have coded a webpage which has hyperlinks and you have used the target attribute with value _blank in this way:

href="http//:[You must be registered and logged in to see this link.] target="_blank"

And the link which is being referred here allows the users to put links on this page in some way. For example, Facebook allows you to put a link to your website on your website’s Facebook page.
Then a user may place a link to his/her website which has some malicious script on it like:


When the link is opened in new tab, this malicious code changes the link loaded in the referrer tab. The attacker may place a fake page asking for login, and ultimately collect your credentials.

Can I prevent this from happening?

Of course you can. By placing this code in your anchor tag, you can prevent your page from being used as a phishing surface.


If you are lazy enough to risk your security, I suggest a one time solution. Download this from github and include this file as a script source in your next document.

If you want to read further, I would advise you to follow the text on this page.

And finally,if you have any further queries, feel free to ask in the comments.

    Current date/time is Mon Oct 24, 2016 2:18 pm