Windows News and info 15th Anniversary 2009-2024

Social Media - Search Engines - Browsers => Social Media => Topic started by: javajolt on July 19, 2019, 02:26:58 AM

Title: Twitter Can be Tricked Into Showing Misleading Embedded Links
Post by: javajolt on July 19, 2019, 02:26:58 AM
(http://i.postimg.cc/6pgW1hnt/Twitter0.png)
A long-standing Twitter issue allows bad actors to manipulate tweets so that they appear to contain content from one site, but actually, link to a completely different one. This enables creating tweets that look like legitimate articles from well-respected sites but actually link to pages serving phishing, malware, or scams.

Whenever you share a new link in a tweet, Twitter will send a bot to the linked web page and check for special meta tags in the HTML source. If these tags exist, Twitter will use the information on the page to create a rich media block called Twitter Cards (http://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards.html) that is filled with additional text, images, or video.

Bad actors, though, can manipulate how Twitter accesses a linked-to page so that the Twitter cards are created from metadata found on another site.

The issue has been exploited

Terence Eden (http://twitter.com/edent) discovered that a problem occurs when a page linked in tweet monitors for the Twitter Card Generator's user agent of "Twitterbot/1.0." If the user agent is detected, it will redirect the bot to a different page; otherwise, it will display the normal content.

When the Twitter Card Generator is redirected, it will use the metadata on the page it landed on to create the Twitter Card. While the card will look like it came from the redirected site, it will still link to the URL originally posted in the Tweet.

As you can see, it is easy to see how this could help malicious actors.

Eden found this (http://shkspr.mobi/blog/2019/03/scammers-abusing-twitter-cards-via-redirects/) after noticing a promoted tweet from an account (http://twitter.com/edayisagift) that currently has a low follower count and an even smaller list of followers.

The tweet was a cryptocurrency scam about Singapore and while the card showed a story from CNBC, clicking on it led to a completely different website.

Looking at the source code of the app, the redirect was revealed. Checking the link (http://auxerred.com/2018/12/09/can-singapore-become-cashless-society/) with Twitter's Card Validator also shows that the card is redirected to CNBC's website.

(http://i.postimg.cc/TP6w3wsb/Twitter-Card-Redirect-check.png)

This could be an intended behavior to allow entities with a single brand but multiple domain names (international) to publish content and avoid confusion among their followers. Companies that use a proxy to collect statistics also benefit from this.

Great danger ahead

Misinformation is one of the risks stemming from this, but it can be abused for more dangerous activities. Phishing and malware are the most obvious perils.

Cybercriminals can launch a website prepared with meta tags for Twitter that describe a legitimate source and host all sorts of threats.

BleepingComputer has tested this theory and set up a proof-of-concept page that looks like Dropbox's login panel. With the proper metadata, tweeting a link to the demo page looks like this:

(http://i.postimg.cc/KjqfmCvK/Twitter-Card-tweet-Phish-Demo.png)

Clicking on the card takes users to a page on our site that looks just like Dropbox login at a cursory glance. The URL in the address bar and some elements in the interface betray the spoofing as we are not professional scammers.

(http://i.postimg.cc/d3Ldj3w1/Twitter-Card-Redirect-Po-C-phish-page.png)

If you want to see how the PoC behaves in Twitter, check out the tweet below. Provided a better text and a profile that appears more trustworthy, the attempt would fool a lot of people.

(http://i.postimg.cc/KjkkgWD3/Capture.png)

There is no easy way to discover that the card has been spoofed because the link does not show in the tweet (only when it is embedded); hovering over the URL shows in the browser only its shortened version from Twitter.

The same behavior is present on Facebook specifically in the interest of businesses, for the aforementioned reasons. When this was reported to them by Avellar (http://twitter.com/aveIIar), Facebook replied that someone determined to spoof a share displayed through their platform there are already ways to achieve it:

(http://i.postimg.cc/6pmqxKJs/Capture4.png) (http://i.postimg.cc/7Lj50km1/Capture4.png)
click to enlarge

BleepingComputer reached out to Twitter for a statement about this problem and if it would be fixed in the near future but received no reply at the time of publishing.

source (http://www.bleepingcomputer.com/news/security/twitter-can-be-tricked-into-showing-misleading-embedded-links/)