Viral Direct Message Clickjacking via link truncation leading to capture of both Google credentials & installation of malicious 3rd party Twitter App
Long links in Twitter direct messages were truncated after 38 characters, so a malicious link appeared to be a YouTube video. Clicking it logged users out of Google, captured their Google credentials, and redirected them to a malicious third-party Twitter app that sent the same link to their contacts.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 59 days
- Paid in 11 days
- Disclosed after 4 months
Summary: [Viral Direct Message Clickjacking via link truncation leading to capture of both Google credentials & installation of malicious 3rd party Twitter App]
Description: [Because very long links in direct messages are truncated after 38 characters the malicious actors were able to provide a malicious link in a direct message that appeared as though it was to an authenticated YouTube video and caused a clickjacking scenario to occur. The link caused any users that were already logged into a Google account to be first logged out and then asked to log back in. A malicious Google app captured the account credentials and then redirected the user to the website getmorefollowers.biz (embedded in the initial link query string) which in turn redirected the user to freefollowers.eu domain. This executed a PHP script and /or a javascript which in turn redirected the user to one of at least 10 different randomized malicious 3rd party Twitter apps (see attached file redirect-sequence-from-start.png for the initial redirect sequence). Depending on whether the user was already logged into their Twitter account, the authentication process was potentially done for the user and/or the user only needed to click on the authenticate button. These apps all did essentially the same thing. They generated a couple of followers to the account but also hijacked the account into sending this same malicious link as a Direct message to everyone that it was able to in that account (open DMs and reciprocal follows). Thus creating the virality of the infection and starting the sequence all over again on hundreds of new victims.
Users that weren't already logged into Google were redirected directly to getmorefollowers.biz and then to freefollowers.eu and then to the malicious Twitter app and sent to one of at least 10 different randomized Oauth screens and encouraged to connect to a 3rd party Twitter app that would supposedly provide you free followers (also provided a paid service to increase your followers).
Here is an example "FULL" link we received from a malicious account that we were investigating named @█████████
ONLY FOR YOU Eric JN Ellason {{ https://accounts.youtube.com/accounts/SetSID?89085489=████████&ilo=1&89085489=████&ils=a4cc1b7ed445598f16cef403bb3b0311&ilc=0&Bi06UejC9N=89085489&continue=https%3A%2F%2Fgoogle.com%2Faccounts%2FLogout%3Fcontinue%3Dhttps%253A%252F%252Fappengine.google.com%252F_ah%252Flogout%253Fcontinue%253Dhttps%25253A%25252F%25252Fwww.google.com%25252Furl%25253Fsa%25253Dt%252526rct%25253Dj%252526q%25253D%252526esrc%25253Ds%252526frm%25253D1%252526source%25253Dweb%252526cd%25253D1%252526cad%25253Drja%252526ved%25253D0CDAQFjAA%252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.getmorefollowers.biz%2525252F%252526ei%25253D3meWUs3fGMun0wWr94CoAg%252526usg%25253DAFQjCNFg9bZvpiCSGCVgdaryfriEHS-XEA%252526sig2%25253D8hAat-jqQCQ0Ciz9ywCbEw%252526bvm%25253Dbv.57155469%25252Cd.bGQ&Bi06UejC9N=43992 … }} message id: 92439
What gets displaying and hotlinked in the Direct Message is this:
ONLY FOR YOU Eric JN Ellason { accounts.youtube.com/accounts/SetSI... } message id: 92439
Screenshot attachment (new-DM-infections.png) shows 9 new links sent out as DMs to new victims from another infected account we posted to Twitter.
Here is an older example that we found:
Steps To Reproduce:
(Add details for how we can reproduce the issue)
- [Direct message is sent from a reciprocal follow within your account. Presumably can happen to accounts with Open DMs. The direct message, because of link truncation appears to be a Youtube video. Message in general looks like this. ONLY FOR YOU Eric JN Ellason { accounts.youtube.com/accounts/SetSI... } message id: 92439 ]
- [The User who receives this direct message from someone they follow, clicks on the embedded link (in some cases from very trusted sources who have themselves been infected).]
- [The link sequence first attempts to log the user out of any Google accounts or apps they are currently logged into. And then asks them to relog back into their Google account, capturing their Google account credentials. Presumably there is a malicious Google app that they have created which in turn continues the sequence and currently eventually sends them to the website www.getmorefollowers.biz . Other domains have been used and will likely be swapped out in the future. We provide a list of 7 domains we believe have been used in this campaign.]
- [getmorefollowers.biz currently redirects the user to www.freefollower.eu and specifically this URL www.freefollower.eu/redirect.php. The user will generally be unaware of this redirect and will only see the final Twitter authentication screen to authenticate a 3rd party Twitter app. We were able to short circuit the redirect chain and use just the URL www.freefollower.eu/redirect.php from different VPN locations and with a virgin state browser to identify most of the different malicious 3rd party apps. It appears they randomize sending the user to 1 of at least 10 different 3rd party apps. We document them below in the "Additional Materials" section]
- [For users not logged into any Google accounts, they get directly sent to the website www.getmorefollowers.biz and step 4 above continues the sequence ]
- [Since the user is presumably already logged into their Twitter account they then get an authentication screen asking them to authenticate the app. It is also possible via malicious javascripts that this process of clicking on the authentication button is completed for them in the background making the user completely unaware of much of this sequence.]
- [If the user is not logged into their Twitter account and has javascript disabled I believe the sequence does stop at the freefollower.eu website. Here you can click on the "Signin with Twitter" button to log into your Twitter account and then authenticate this app to have access to your account. Of course this sequence really only happens with security professionals looking into and short circuiting the redirect sequences]
Impact: [The attacker in this situation has already been able to create a viral attack vector in addition to harvesting thousands of Google account credentials and installing their malicious 3rd party Twitter app on thousands of accounts. Please note this report is also being submitted to the Google Bug Bounty program because part of the attack sequence occurs on their infrastructure.
Once one account is breached that account in turn sends out the malicious link via the authenticated 3rd party Twitter app (we identify the set of randomized apps above) to everyone in their trusted set of reciprocal follows (since the link is sent only via direct message). This greatly increases the trust factor and likely hood a significant number of people that receive this link will click and follow the malicious sequence and continue the viral infection sequence. At the same time the hackers can have their malicious 3rd party Twitter app authenticated within thousands of accounts. Through RiskIQ we were already able to verify that thousands of Twitter accounts within the past month had been breached and infected via this Clickjacking attack. We are attaching a document showing about 1000 accounts that fell victim to this attack (see attachment ███). We have confirmed a handful on this list by finding tweets much like the account reDawn8718 that we have attached here.
We also plan to publish our findings once we are contacted and the issue is resolved in a timely manner.]
Supporting Material/References:
- List any additional material (e.g. screenshots, logs, etc.)
Web domains used or previously used by these malicious actors. getmorefollowers.biz freefollower.eu www.freeaddme.us followplanet.us forfollow.net followback.us bestfollowers.in
This domain (pisagor.xyz) was hidden in the sequence and appears to run some kind of a javascript based redirect
Much of this malicious infrastructure is hosted on a Turkish host called "Radore Veri Merkezi Hizmetleri" at the IP address 213.128.89.35. In some examples we found that the Google redirect used the Turkish version of Google (www.google.com.tr).
Here is the list of different Oauth links that were generated from the malicious link that we tested from multiple VPN locations and browser setups. There did not appear to be any victim fingerprinting that we could identify. Rather it appeared to just randomly select 1 of at least 10 different malicious 3rd party app authentications.
https://api.twitter.com/oauth/authenticate?oauth_token=Eqx8ggAAAAAA_RPwAAABa-oLM2U https://api.twitter.com/oauth/authenticate?oauth_token=dvZwxQAAAAAA_QY2AAABa-odhOo https://api.twitter.com/oauth/authenticate?oauth_token=ZswiRQAAAAAA_Ra1AAABa-0tVpM
From French VPN https://api.twitter.com/oauth/authenticate?oauth_token=Zax6iQAAAAAA_RbIAAABa-01v6w
From UAE https://api.twitter.com/oauth/authenticate?oauth_token=dM77VQAAAAAA_R7oAAABa-1f46I
From Spain https://api.twitter.com/oauth/authenticate?oauth_token=yw71-wAAAAAA_RbEAAABa-1kLgY
From Japan https://api.twitter.com/oauth/authenticate?oauth_token=LzZ61gAAAAAA_R7vAAABa-1oktk
From Japan02 https://api.twitter.com/oauth/authenticate?oauth_token=PMUXyQAAAAAA_RuBAAABa-1sLQc
From Japan03 https://api.twitter.com/oauth/authenticate?oauth_token=u18JrQAAAAAA_Ra1AAABa-1vNhg
From South Africa https://api.twitter.com/oauth/authenticate?oauth_token=Q98N5AAAAAAA_RDoAAABa-1zIGY
From South Africa 02 https://api.twitter.com/oauth/authenticate?oauth_token=TMzbrgAAAAAA_RbIAAABa-13Y2M
3rd Party App Account Names (looks like some may be using hidden unicode for the app name): app. id 685jjkl55 ila by neta safety fllowers 100 Hz ap. gasad. laras. create followers. App id 3/825080 service k8625825 bas.yr tera daranes.
Impact
The attacker in this situation has already been able to create a viral attack vector in addition to harvesting thousands of Google account credentials and installing their malicious 3rd party Twitter app on thousands of accounts. Please note this report is also being submitted to the Google Bug Bounty program because part of the attack sequence occurs on their infrastructure.
Once one account is breached that account in turn sends out the malicious link via the authenticated 3rd party Twitter app (we identify the set of randomized apps above) to everyone in their trusted set of reciprocal follows (since the link is sent only via direct message). This greatly increases the trust factor and likely hood a significant number of people that receive this link will click and follow the malicious sequence and continue the viral infection sequence. At the same time the hackers can have their malicious 3rd party Twitter app authenticated within thousands of accounts. Through RiskIQ we were already able to verify that thousands of Twitter accounts within the past month had been breached and infected via this Clickjacking attack. We are attaching a document showing about 1000 accounts that fell victim to this attack (see attachment ████). We have confirmed a handful on this list by finding tweets much like the account reDawn8718 that we have attached here.
We also plan to publish our findings once we are contacted and the issue is resolved in a timely manner.
Context
Twitter (the report is filed against *.twitter.com) lets users send Direct Messages to people they follow. When a DM contains a long URL, the client truncates the displayed link after 38 characters and hotlinks the truncated form. That display behaviour is the feature at the centre of this report: a link that is far too long to read is shown as a short, plausible-looking prefix, and the recipient clicks it believing they know where it goes.
The researcher, slickrockweb, describes a campaign that chains that truncation with a clickjacking-style redirect sequence. The chain logs victims out of Google, and the researcher presumes a malicious Google app captures their credentials, bounces them through affiliate-style follower sites, and finally lands them on a randomised third-party Twitter OAuth screen. Once authorised, the malicious app sends the same DM onward to the victim's reciprocal follows, which is what makes the campaign viral.
Setup
The researcher investigated from the outside, using accounts that had already been infected. The tools and conditions described are:
- A malicious account under investigation, named @█████████ in the report, which had sent the link.
- Multiple VPN locations (France, UAE, Spain, Japan, Japan02, Japan03, South Africa, South Africa 02) and different browser setups, used to sample the redirect chain repeatedly.
- A "virgin state" browser, used together with the VPNs to short-circuit the chain and reach the OAuth screens directly.
- RiskIQ, used to verify that thousands of Twitter accounts had been breached and infected in the preceding month.
- A list of about 1000 victim accounts, attached to the report, with a handful confirmed by finding tweets like those of account reDawn8718.
No victim-side credentials or special access were needed. The report describes the DM arriving from a reciprocal follow, and presumes it can reach accounts with Open DMs.
Finding it
The researcher investigated an infected account that had sent the link. Because the DM client truncates long links after 38 characters, the message displayed to the recipient looked like a link to an authenticated YouTube video rather than to a Google accounts endpoint. The full link, however, pointed at accounts.youtube.com/accounts/SetSID with a deeply nested continue parameter. The displayed and hotlinked form was:
ONLY FOR YOU Eric JN Ellason { accounts.youtube.com/accounts/SetSI... } message id: 92439
The full link behind that display was:
ONLY FOR YOU Eric JN Ellason {{ https://accounts.youtube.com/accounts/SetSID?89085489=████████&ilo=1&89085489=████&ils=[redacted]&ilc=0&Bi06UejC9N=89085489&continue=https%3A%2F%2Fgoogle.com%2Faccounts%2FLogout%3Fcontinue%3Dhttps%253A%252F%252Fappengine.google.com%252F_ah%252Flogout%253Fcontinue%253Dhttps%25253A%25252F%25252Fwww.google.com%25252Furl%25253Fsa%25253Dt%252526rct%25253Dj%252526q%25253D%252526esrc%25253Ds%252526frm%25253D1%252526source%25253Dweb%252526cd%25253D1%252526cad%25253Drja%252526ved%25253D0CDAQFjAA%252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.getmorefollowers.biz%2525252F%252526ei%25253D3meWUs3fGMun0wWr94CoAg%252526usg%[redacted]-XEA%252526sig2%25253D8hAat-jqQCQ0Ciz9ywCbEw%252526bvm%25253Dbv.57155469%25252Cd.bGQ&Bi06UejC9N=43992 … }} message id: 92439
The nesting is the interesting part. Each layer of encoding unwraps another redirect: SetSID continues to a Google logout, which continues to an App Engine logout, which continues to www.google.com/url, whose url parameter is the double-encoded http://www.getmorefollowers.biz/. The final destination is buried several levels deep, so the visible prefix says nothing about where the click actually ends up.
The researcher also found an older example of the same pattern:
https://accounts.youtube.com/accounts/SetSID?ssdc=1&sidt=[redacted]%2F%2FgHRk%2B%[redacted]%[redacted]%2Fds4CPnpJeHPzg24hAeNHRjj%2BfZUhZClhvopoA9yPv13%2BIKm5QBlCZHinUlFsz%2FffGJEFmLuu4%[redacted]%2FC4%[redacted]%[redacted]%[redacted]%2FwV83zvzNXwvz%2FyT4hJ2%2BD%2BVVatg%3D%3D&continue=https%3A%2F%2Fwww.google.com%2Fintl%2Fen%2Fimages%2Flogos%2Faccounts_logo.png&dbus=PK.2
Here the continue parameter points at a Google logo image, a harmless-looking target that keeps the link plausible.
Exploitation
Step 1: the DM arrives from a trusted follow
The DM is sent from an account the recipient follows, typically a reciprocal follow. The researcher presumes it can reach accounts with Open DMs. Because of the truncation, the message appears to be a YouTube video, and the sender is someone the recipient trusts, in some cases a source that has itself been infected. The message looks like the truncated form shown above, with message id 92439.
Step 2: the recipient clicks the truncated link
The recipient clicks the embedded link. The link is the accounts.youtube.com/accounts/SetSID URL with the nested continue chain described above.
Step 3: Google logout and credential capture
The link sequence first attempts to log the user out of any Google accounts or apps they are currently logged into, then asks them to log back in. A malicious Google app captures the account credentials. The researcher presumes such an app was created by the attackers to continue the sequence. The chain then sends the user to www.getmorefollowers.biz. The report notes that other domains have been used and will likely be swapped out, and lists seven domains believed to have been used in the campaign.
Step 4: redirect to the follower site and the OAuth screen
getmorefollowers.biz redirects the user to www.freefollower.eu, specifically:
www.freefollower.eu/redirect.php
The user is generally unaware of the redirect and only sees the final Twitter authentication screen for a third-party app. By short-circuiting the chain and requesting www.freefollower.eu/redirect.php directly from different VPN locations with a virgin-state browser, the researcher identified most of the malicious apps. The site appears to randomise sending the user to one of at least 10 different third-party apps.
Step 5: users without a Google session
Users not logged into any Google account skip the logout and login steps and are sent directly to www.getmorefollowers.biz, after which step 4 continues the sequence.
Step 6: Twitter authorisation
Because the user is presumably already logged into Twitter, they get an authentication screen asking them to authorise the app. The researcher notes that malicious JavaScript may complete the click on the authentication button in the background, leaving the user unaware of much of the sequence.
Step 7: the stop condition
If the user is not logged into Twitter and has JavaScript disabled, the researcher believes the sequence stops at the freefollower.eu site. There the user can click "Signin with Twitter" to log in and then authorise the app. The researcher notes this stop really only happens with security professionals who are investigating and short-circuiting the redirects.
The OAuth endpoints sampled
The researcher collected the following api.twitter.com/oauth/authenticate URLs from the malicious link, tested from multiple VPN locations and browser setups. There did not appear to be any victim fingerprinting; the chain appeared to randomly select one of at least 10 malicious app authorisations.
https://api.twitter.com/oauth/authenticate?oauth_token=Eqx8ggAAAAAA_RPwAAABa-oLM2U
https://api.twitter.com/oauth/authenticate?oauth_token=dvZwxQAAAAAA_QY2AAABa-odhOo
https://api.twitter.com/oauth/authenticate?oauth_token=ZswiRQAAAAAA_Ra1AAABa-0tVpM
From French VPN:
https://api.twitter.com/oauth/authenticate?oauth_token=Zax6iQAAAAAA_RbIAAABa-01v6w
From UAE:
https://api.twitter.com/oauth/authenticate?oauth_token=dM77VQAAAAAA_R7oAAABa-1f46I
From Spain:
https://api.twitter.com/oauth/authenticate?oauth_token=yw71-wAAAAAA_RbEAAABa-1kLgY
From Japan:
https://api.twitter.com/oauth/authenticate?oauth_token=LzZ61gAAAAAA_R7vAAABa-1oktk
From Japan02:
https://api.twitter.com/oauth/authenticate?oauth_token=PMUXyQAAAAAA_RuBAAABa-1sLQc
From Japan03:
https://api.twitter.com/oauth/authenticate?oauth_token=u18JrQAAAAAA_Ra1AAABa-1vNhg
From South Africa:
https://api.twitter.com/oauth/authenticate?oauth_token=Q98N5AAAAAAA_RDoAAABa-1zIGY
From South Africa 02:
https://api.twitter.com/oauth/authenticate?oauth_token=TMzbrgAAAAAA_RbIAAABa-13Y2M
The third-party apps
The researcher lists the app account names seen on the authorisation screens, noting that some may use hidden Unicode in the app name:
app. id 685jjkl55
ila by neta
safety fllowers
100 Hz ap.
gasad. laras.
create followers.
App id 3/825080
service k8625825
bas.yr
tera daranes.
The infrastructure
The report lists the domains used or previously used by the actors:
getmorefollowers.biz
freefollower.eu
www.freeaddme.us
followplanet.us
forfollow.net
followback.us
bestfollowers.in
It also notes pisagor.xyz, which was hidden in the sequence and appears to run some kind of JavaScript-based redirect. Much of the infrastructure is hosted on a Turkish host called "Radore Veri Merkezi Hizmetleri" at the IP address 213.128.89.35. In some examples the Google redirect used the Turkish version of Google, www.google.com.tr.
Root cause
The mechanism the report describes is a display-versus-destination mismatch. The DM client truncates long links after 38 characters and hotlinks the truncated text, so the recipient sees a prefix that resembles a YouTube link while the actual URL is a Google SetSID endpoint with a multi-level continue chain ending at an attacker-controlled domain. The truncation is a usability feature, but it removes the information a user would need to judge the destination.
The chain then abuses legitimate redirectors on Google infrastructure (accounts.youtube.com, google.com/accounts/Logout, appengine.google.com/_ah/logout, google.com/url) to perform the logout and login sequence, and abuses Twitter's OAuth authorisation flow to obtain access to the victim's account. , and the researcher notes that malicious JavaScript may complete the authorisation click without user interaction. Whether that background click was actually observed is not stated; the report presents it as a possibility.
Impact
The attacker has a viral attack vector, has harvested thousands of Google account credentials, and has installed the malicious third-party Twitter app on thousands of accounts, according to the researcher. The report was also submitted to the Google Bug Bounty programme because part of the sequence runs on Google infrastructure.
Once an account is breached, the authenticated app sends the malicious link by DM to everyone in the victim's trusted set of reciprocal follows. Because the link arrives by DM from a known contact, the trust factor is high and a significant number of recipients are likely to click and continue the chain. At the same time the attackers get their app authorised in thousands of accounts. Through RiskIQ the researcher verified that thousands of Twitter accounts had been breached and infected in the preceding month, and attached a document showing about 1000 victim accounts, a handful confirmed by finding tweets like those of account reDawn8718.
The report hedges several points: the Open DM reach is a presumption, the background authorisation click is described as possible, and the stop condition at freefollower.eu is the researcher's belief about browsers with JavaScript disabled.
Fix
The report does not describe a fix or a change made by the platform.: a truncated link should not be hotlinked to a destination the reader cannot see, or the full destination should be surfaced before the click. On the Twitter side, the OAuth authorisation step is the point where the malicious app gains access, so any measure that makes the authorisation screen harder to complete without a deliberate user action would break the chain. The report does not state which of these, if any, was implemented.
Variants to test
- Other clients with link truncation. Send a DM containing a long URL whose visible prefix resembles a trusted domain and whose tail points elsewhere. A positive result is that the client hotlinks the truncated text to the full destination without showing it.
- Nested redirectors on the target's own infrastructure. Look for logout, login and URL-redirect endpoints that accept a
continueorurlparameter and preserve it through several layers of encoding. A positive result is a chain that reaches an attacker-controlled domain from a link whose prefix is on the trusted domain. - OAuth app randomisation. Request the redirect endpoint repeatedly from different networks and browsers. A positive result is a set of distinct
oauth/authenticatetokens with no correlation to the client, as the researcher observed. - Authorisation without a deliberate click. Test whether the authorisation button can be triggered by script embedded in the redirect chain. A positive result is an app authorised in an account where the user never pressed the button.
- Hidden Unicode in app names. Check whether app names containing invisible characters render identically to legitimate names on the authorisation screen. A positive result is two visually identical names that map to different apps.
- Domain rotation. Monitor the redirect chain over time for new domains replacing the listed ones. A positive result is a new domain appearing in the
continuechain while the visible prefix stays the same.
What happened, in plain words
Imagine someone you trust sends you a text message with a link. The message app is a bit lazy: if the link is very long, it only shows you the first part and hides the rest behind three dots. You see something that looks like a YouTube video, so you tap it. But the part you cannot see sends you somewhere completely different.
That is the heart of this report. On Twitter, Direct Messages (private messages, usually shortened to DMs) cut off long links after 38 characters and still make the shortened text clickable. An attacker used that to send a link that looked like a YouTube video but actually started a long chain of redirects. A redirect is when one web address automatically forwards your browser to another address, like a receptionist sending you down the corridor to a different office.
The chain did several things in order: it logged the victim out of their Google account, asked them to log back in, which the researcher presumes a malicious Google app used to capture the credentials, bounced them through websites that promise free followers, and finally showed them a Twitter screen asking permission to connect a third-party app. Once the victim approved that app, the app sent the same message to everyone the victim trusted, and the whole thing started again on new people. That is why the researcher calls it viral.
The researcher, slickrockweb, filed this against Twitter. Clickjacking means tricking someone into clicking something by disguising what the click will really do. Here the disguise was the shortened link.
The pieces involved
Before walking through the attack, here are the main parts, explained from scratch.
- Direct Message (DM): a private message on Twitter, visible only to the sender and recipient. You can only DM people you follow, or people who follow you, depending on settings.
- Reciprocal follow: two people follow each other. The report says the malicious messages arrived from accounts the victim followed, often reciprocal follows, which makes the sender feel familiar and trustworthy.
- Open DMs: a setting that lets anyone send you a direct message, even people you do not follow. The researcher presumes the attack could reach accounts with Open DMs, but presents that as a presumption.
- URL: the address of a web page, like
https://example.com/page. The part after the?is called the query string and carries extra information, such as where to go next. - Truncation: cutting off text that is too long. Twitter's DM view cut links after 38 characters and made the cut-off text clickable.
- Hotlink: text that is turned into a clickable link. The visible shortened text was hotlinked to the full, hidden destination.
- Redirect: when a web server answers your request by telling your browser to go to a different address instead.
- OAuth: a standard way for one website or app to ask permission to access your account on another site without you handing over your password. When you see a screen saying "App X wants to access your account, Allow or Cancel", that is OAuth. The
oauth_tokenin the URLs below is a one-time ticket that identifies which permission request is being shown. - Third-party app: an app made by someone other than Twitter that connects to your Twitter account through OAuth. Once you approve it, it can act on your behalf, for example sending messages.
- Credentials: your username and password, the things that prove who you are.
- VPN: a service that routes your internet traffic through a server in another country, so websites see a different location. The researcher used VPNs to test the chain from many places.
- Virgin state browser: a browser with no saved logins, cookies or history, used to see the chain as a brand-new visitor would.
- JavaScript: the programming language that runs inside web pages and makes them interactive. It can also perform actions automatically, such as clicking a button for you.
- RiskIQ: a security intelligence service the researcher used to check how many accounts had been affected.
Setting up the investigation
The researcher did not need any special access. They worked from the outside, using accounts that had already been infected. The conditions described are:
- A malicious account under investigation, named @█████████ in the report, which had sent the link.
- Several VPN locations: France, UAE, Spain, Japan, Japan02, Japan03, South Africa and South Africa 02. Testing from many places helps show whether the attacker behaves differently for different visitors.
- A virgin state browser, used together with the VPNs to jump straight to the end of the redirect chain and reach the OAuth screens directly.
- RiskIQ, to verify that thousands of Twitter accounts had been breached and infected in the preceding month.
- A list of about 1000 victim accounts, attached to the report, with a handful confirmed by finding tweets like those of account reDawn8718.
The report describes the DM arriving from a reciprocal follow, and presumes it can reach accounts with Open DMs.
Finding it
The researcher investigated an infected account that had sent the link. Because the DM view cut long links after 38 characters, the message looked like a link to an authenticated YouTube video, not to a Google accounts page. The full link, however, pointed at accounts.youtube.com/accounts/SetSID with a deeply nested continue parameter. A continue parameter is a common pattern: it tells a login or logout page where to send you afterwards.
The displayed, clickable form was:
ONLY FOR YOU Eric JN Ellason { accounts.youtube.com/accounts/SetSI... } message id: 92439
Line by line: this is what the recipient saw in the DM. The text ONLY FOR YOU Eric JN Ellason is part of the message, the curly braces wrap the shortened link, and accounts.youtube.com/accounts/SetSI... is the visible prefix. The three dots hide everything after the 38th character. message id: 92439 is the identifier of that DM.
The full link behind that display was:
ONLY FOR YOU Eric JN Ellason {{ https://accounts.youtube.com/accounts/SetSID?89085489=████████&ilo=1&89085489=████&ils=[redacted]&ilc=0&Bi06UejC9N=89085489&continue=https%3A%2F%2Fgoogle.com%2Faccounts%2FLogout%3Fcontinue%3Dhttps%253A%252F%252Fappengine.google.com%252F_ah%252Flogout%253Fcontinue%253Dhttps%25253A%25252F%25252Fwww.google.com%25252Furl%25253Fsa%25253Dt%252526rct%25253Dj%252526q%25253D%252526esrc%25253Ds%252526frm%25253D1%252526source%25253Dweb%252526cd%25253D1%252526cad%25253Drja%252526ved%25253D0CDAQFjAA%252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.getmorefollowers.biz%2525252F%252526ei%25253D3meWUs3fGMun0wWr94CoAg%252526usg%[redacted]-XEA%252526sig2%25253D8hAat-jqQCQ0Ciz9ywCbEw%252526bvm%25253Dbv.57155469%25252Cd.bGQ&Bi06UejC9N=43992 … }} message id: 92439
Line by line, in plain words:
https://accounts.youtube.com/accounts/SetSIDis the address the browser actually opens. It is a real Google/YouTube address, which is why the link looks trustworthy.?89085489=████████&ilo=1&89085489=████&ils=[redacted]&ilc=0&Bi06UejC9N=89085489are parameters, extra pieces of information attached to the address. Some values are redacted in the report.continue=https%3A%2F%2Fgoogle.com%2Faccounts%2FLogout%3Fcontinue%3D...is the important one. It says: after doing whatever this page does, go to the address encoded here. The%3Aand%2Fare how a colon and a slash are written when they are encoded inside a URL, so that the browser does not confuse them with the structure of the address itself.- Decoding one layer, the next stop is
google.com/accounts/Logout, which itself has acontinuepointing toappengine.google.com/_ah/logout, which has acontinuepointing towww.google.com/url, whoseurlparameter is the double-encodedhttp://www.getmorefollowers.biz/. - The
…near the end shows the report itself shortened the display.
So the destination is buried several layers deep. The visible prefix tells you nothing about where the click really ends up. Each layer of encoding is like a set of nested envelopes: you have to open one to find the address of the next.
The researcher also found an older example of the same pattern:
https://accounts.youtube.com/accounts/SetSID?ssdc=1&sidt=[redacted]%2F%2FgHRk%2B%[redacted]%[redacted]%2Fds4CPnpJeHPzg24hAeNHRjj%2BfZUhZClhvopoA9yPv13%2BIKm5QBlCZHinUlFsz%2FffGJEFmLuu4%[redacted]%2FC4%[redacted]%[redacted]%[redacted]%2FwV83zvzNXwvz%2FyT4hJ2%2BD%2BVVatg%3D%3D&continue=https%3A%2F%2Fwww.google.com%2Fintl%2Fen%2Fimages%2Flogos%2Faccounts_logo.png&dbus=PK.2
Line by line: this is another accounts.youtube.com/accounts/SetSID address. The sidt parameter carries a long encoded value. The continue parameter here points at a Google logo image, https://www.google.com/intl/en/images/logos/accounts_logo.png. A harmless-looking image as the next stop keeps the link plausible.
How the attack worked, step by step
Step 1: the DM arrives from a trusted follow
The DM is sent from an account the recipient follows, typically a reciprocal follow. The researcher presumes it can reach accounts with Open DMs. Because of the truncation, the message appears to be a YouTube video, and the sender is someone the recipient trusts, in some cases a source that has itself been infected. The message looks like the shortened form shown above, with message id 92439.
Why this matters: people judge a link partly by who sent it. A message from a friend gets far less suspicion than one from a stranger.
Step 2: the recipient clicks the shortened link
The recipient clicks the embedded link. The link is the accounts.youtube.com/accounts/SetSID address with the nested continue chain described above. The browser follows the chain automatically, one redirect after another, without the user seeing each hop.
Step 3: Google logout and credential capture
The link sequence first tries to log the user out of any Google accounts or apps they are currently logged into, then asks them to log back in. A malicious Google app captures the account credentials. The researcher presumes such an app was created by the attackers to continue the sequence. The chain then sends the user to www.getmorefollowers.biz. The report notes that other domains have been used and will likely be swapped out, and lists seven domains believed to have been used in the campaign.
Why log the user out first? Because a login form that appears right after a logout looks normal. You just signed out, so of course you are asked to sign in again. That is the trick: the fake login page feels expected.
Step 4: redirect to the follower site and the OAuth screen
getmorefollowers.biz redirects the user to www.freefollower.eu, specifically:
www.freefollower.eu/redirect.php
Line by line: www.freefollower.eu is the domain, and /redirect.php is a script on that server whose job is to send visitors onward. The .php ending means the page is generated by PHP, a programming language commonly used on web servers.
The user is generally unaware of the redirect and only sees the final Twitter authentication screen for a third-party app. By short-circuiting the chain and requesting www.freefollower.eu/redirect.php directly from different VPN locations with a virgin-state browser, the researcher identified most of the malicious apps. Short-circuiting means skipping the earlier steps and going straight to the last one, which is much faster when you want to see what the end of the chain does. The site appears to randomise sending the user to one of at least 10 different third-party apps.
Step 5: users without a Google session
Users not logged into any Google account skip the logout and login steps and are sent directly to www.getmorefollowers.biz, after which step 4 continues the sequence. In other words, the Google part of the chain only works on people who have a Google session to lose.
Step 6: Twitter authorisation
Because the user is presumably already logged into Twitter, they get an authentication screen asking them to authorise the app. The researcher notes that malicious JavaScript may complete the click on the authentication button in the background, leaving the user unaware of much of the sequence. The report presents this as a possibility, not something it observed.
Why this is the dangerous moment: approving an app through OAuth is like handing someone a spare key to your account. Once approved, the app can act as you, including sending messages.
Step 7: the stop condition
If the user is not logged into Twitter and has JavaScript disabled, the researcher believes the sequence stops at the freefollower.eu site. There the user can click "Signin with Twitter" to log in and then authorise the app. The researcher notes this stop really only happens with security professionals who are investigating and short-circuiting the redirects. Turning off JavaScript is a common safety measure for researchers, but ordinary users rarely do it.
The OAuth addresses the researcher collected
The researcher collected the following api.twitter.com/oauth/authenticate addresses from the malicious link, tested from multiple VPN locations and browser setups. There did not appear to be any victim fingerprinting; the chain appeared to randomly select one of at least 10 malicious app authorisations. Fingerprinting means tailoring behaviour to a specific visitor based on clues about them; here the researcher found no such tailoring.
https://api.twitter.com/oauth/authenticate?oauth_token=Eqx8ggAAAAAA_RPwAAABa-oLM2U
https://api.twitter.com/oauth/authenticate?oauth_token=dvZwxQAAAAAA_QY2AAABa-odhOo
https://api.twitter.com/oauth/authenticate?oauth_token=ZswiRQAAAAAA_Ra1AAABa-0tVpM
Line by line: each address is on api.twitter.com, Twitter's programming interface. An API is the part of a website built for programs rather than people, like a service counter at the back of a shop. The path /oauth/authenticate is the page that asks you to approve an app. The oauth_token value is a one-time ticket identifying which app and which permission request is being shown. Three different tokens mean three different app requests.
From French VPN:
https://api.twitter.com/oauth/authenticate?oauth_token=Zax6iQAAAAAA_RbIAAABa-01v6w
From UAE:
https://api.twitter.com/oauth/authenticate?oauth_token=dM77VQAAAAAA_R7oAAABa-1f46I
From Spain:
https://api.twitter.com/oauth/authenticate?oauth_token=yw71-wAAAAAA_RbEAAABa-1kLgY
From Japan:
https://api.twitter.com/oauth/authenticate?oauth_token=LzZ61gAAAAAA_R7vAAABa-1oktk
From Japan02:
https://api.twitter.com/oauth/authenticate?oauth_token=PMUXyQAAAAAA_RuBAAABa-1sLQc
From Japan03:
https://api.twitter.com/oauth/authenticate?oauth_token=u18JrQAAAAAA_Ra1AAABa-1vNhg
From South Africa:
https://api.twitter.com/oauth/authenticate?oauth_token=Q98N5AAAAAAA_RDoAAABa-1zIGY
From South Africa 02:
https://api.twitter.com/oauth/authenticate?oauth_token=TMzbrgAAAAAA_RbIAAABa-13Y2M
Each of these blocks follows the same pattern: the same Twitter address, a different oauth_token. Testing from many countries showed the same behaviour everywhere, which supports the idea that the choice of app is random rather than targeted.
The third-party apps
The researcher lists the app account names seen on the authorisation screens, noting that some may use hidden Unicode in the app name:
app. id 685jjkl55
ila by neta
safety fllowers
100 Hz ap.
gasad. laras.
create followers.
App id 3/825080
service k8625825
bas.yr
tera daranes.
Line by line: these are the names shown to the victim on the permission screen. Several are misspelled on purpose, such as fllowers, or use odd punctuation, such as gasad. laras. and bas.yr. Hidden Unicode means invisible characters inserted into a name so that it looks like one thing while being technically different, a bit like writing a word with a letter that looks identical but is not the same letter.
The infrastructure
The report lists the domains used or previously used by the actors:
getmorefollowers.biz
freefollower.eu
www.freeaddme.us
followplanet.us
forfollow.net
followback.us
bestfollowers.in
Line by line: these are the web addresses the campaign used at various points. The names all suggest free followers, which is the bait. The report says other domains have been used and will likely be swapped out, so this list is a snapshot, not a fixed set.
It also notes pisagor.xyz, which was hidden in the sequence and appears to run some kind of JavaScript-based redirect. A JavaScript-based redirect means the forwarding is done by code running in the browser rather than by the server answering with a redirect instruction.
Much of the infrastructure is hosted on a Turkish host called "Radore Veri Merkezi Hizmetleri" at the IP address 213.128.89.35. An IP address is the numeric address of a server on the internet, the equivalent of a street address. In some examples the Google redirect used the Turkish version of Google, www.google.com.tr.
Why it worked
The mechanism is a mismatch between what you see and where you go. The DM view cuts long links after 38 characters and makes the cut-off text clickable, so the recipient sees a prefix that looks like a YouTube link while the real address is a Google SetSID page with a multi-level continue chain ending at an attacker-controlled domain. Truncation is meant to make messages tidy, but it removes exactly the information a person needs to judge where a click will lead.
The chain then abuses legitimate redirect pages on Google's own infrastructure (accounts.youtube.com, google.com/accounts/Logout, appengine.google.com/_ah/logout, google.com/url) to perform the logout and login sequence, and abuses Twitter's OAuth approval flow to obtain access to the victim's account. , and the researcher notes that malicious JavaScript may complete the approval click without user interaction. Whether that background click was actually observed is not stated; the report presents it as a possibility.
Impact
According to the researcher, the attacker built a viral attack vector, harvested thousands of Google account credentials, and installed the malicious third-party Twitter app on thousands of accounts. The report was also submitted to the Google Bug Bounty programme because part of the sequence runs on Google infrastructure.
Once an account is breached, the approved app sends the malicious link by DM to everyone in the victim's trusted set of reciprocal follows. Because the link arrives by DM from a known contact, the trust factor is high and a significant number of recipients are likely to click and continue the chain. At the same time the attackers get their app approved in thousands of accounts. Through RiskIQ the researcher verified that thousands of Twitter accounts had been breached and infected in the preceding month, and attached a document showing about 1000 victim accounts, a handful confirmed by finding tweets like those of account reDawn8718.
The report hedges several points: the Open DM reach is a presumption, the background approval click is described as possible, and the stop at freefollower.eu is the researcher's belief about browsers with JavaScript disabled.
What should change
The report does not describe a fix or a change made by the platform. On the Twitter side, the OAuth approval step is where the malicious app gains access, so anything that makes the approval screen harder to complete without a deliberate user action would break the chain. The report does not state which of these, if any, was implemented.
Things worth testing elsewhere
These are the checks the researcher's findings suggest, written so that someone new can follow them.
- Other apps that shorten links. Send a DM containing a long URL whose visible prefix looks like a trusted domain and whose hidden tail points elsewhere. A positive result is that the app makes the shortened text clickable to the full destination without showing it.
- Nested redirect pages on a site's own infrastructure. Look for logout, login and URL-redirect pages that accept a
continueorurlparameter and keep it through several layers of encoding. A positive result is a chain that reaches an attacker-controlled domain from a link whose prefix sits on the trusted domain. - Randomised OAuth apps. Request the redirect page repeatedly from different networks and browsers. A positive result is a set of different
oauth/authenticatetokens with no link to the visitor, as the researcher observed. - Approval without a deliberate click. Test whether the approval button can be triggered by script embedded in the redirect chain. A positive result is an app approved in an account where the user never pressed the button.
- Hidden Unicode in app names. Check whether app names containing invisible characters look identical to legitimate names on the approval screen. A positive result is two visually identical names that belong to different apps.
- Domain rotation. Watch the redirect chain over time for new domains replacing the listed ones. A positive result is a new domain appearing in the
continuechain while the visible prefix stays the same.
Glossary
- API: the part of a website built for programs to talk to, rather than for people clicking pages.
- Clickjacking (UI Redressing): tricking someone into clicking something by disguising what the click will really do.
- Credentials: the username and password that prove who you are.
- Direct Message (DM): a private message on Twitter, visible only to sender and recipient.
- Domain: the name part of a web address, such as
example.com. - Fingerprinting: tailoring behaviour to a specific visitor based on clues about them.
- Hotlink: text turned into a clickable link.
- IP address: the numeric address of a server on the internet.
- JavaScript: the programming language that runs inside web pages and makes them interactive; it can also perform actions automatically.
- OAuth: a standard way for an app to ask permission to access your account on another site without you giving it your password.
- OAuth token: a one-time ticket identifying which app and which permission request is being shown.
- Parameter: an extra piece of information attached to a URL after the
?, such ascontinueorurl. - PHP: a programming language commonly used on web servers to generate pages.
- Query string: the part of a URL after the
?that carries parameters. - Redirect: when a web server or script sends your browser to a different address.
- RiskIQ: a security intelligence service used to check how many accounts had been affected.
- Third-party app: an app made by someone other than Twitter that connects to your account through OAuth.
- URL: the address of a web page.
- URL encoding: writing characters such as
:and/as codes like%3Aand%2Fso they are not confused with the structure of the address. - Virgin state browser: a browser with no saved logins, cookies or history, used to see a site as a brand-new visitor would.