Facebook link is replaced with another link only 'the moment you click'



Many people who are careful about security should have a habit of checking the URL of the link destination by hovering the cursor before clicking the link posted on SNS etc. Web developers have pointed out that Facebook has been replaced with links in a way that makes it unnoticed even with these measures.

Web developer Michal Špaček, a Czech security instructor, told Twitter: 'When you click or copy a link, it first opens' l.facebook.com 'and then. Did you know that you are redirected to the original site, but the HTML tag you see when you check the source and the URL you see when you hover your mouse cursor over the link indicate the original site. ' Did. Looking at the screenshot posted by Špaček, the link tag of the source and the URL of the link destination displayed on the browser are certainly in 'https://example.com' posted on Facebook by Špaček as a trial. It has become.



If you look at the movie posted by Špaček, you can see how the URL is for Facebook for a moment.



According to Špaček, this is due to a JavaScript code called onmousedown that works when the mouse is clicked. This code runs before the page starts loading and rewrites the link tag to the Facebook URL. However, when the mouse cursor hovers over the link, another code called onmouseover reverts the tag, so when the user tries to see the link, the browser only shows the original URL.



There are other ways to track link clicks, such as using the ping attribute.



When asked, 'Is this also used for phishing ?', Špaček replied, 'I don't think it is, but it can certainly be abused.'



Špaček's tweets have received various reactions. For example, one Twitter user commented, 'Because of this, we recommend blocking Facebook on your router.'



Another Twitter user said, 'Don't be afraid to misunderstand, this technology has been used by Google and others for over a decade. I don't think this is correct, but it's everywhere around us. I pointed out.



Špaček explained why he re-published this technique, which many IT companies take for granted, not just Facebook, saying, 'I wrote about this issue,'Don't click on suspicious links.'' when it is said, and is due to remind that is just by looking at the link destination can not be confirmed whether the URL is safe, ' we talk .

in Security, Posted by log1l_ks