r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

31

u/FuzzYetDeadly Mar 27 '23 edited Mar 27 '23

I'm actually curious to know how their algorithm that detects that someone created a new account after getting suspended (and re-suspends them) works. Like what regex or method do they use? Unfortunately I have no idea where to even start looking to find out how this works.

Edit: thanks for the responses everyone, it's been very informative and gives me many options to explore to find a solution

83

u/myringotomy Mar 27 '23

The same way reddit does it. Browser fingerprinting.

0

u/[deleted] Mar 27 '23

[deleted]

2

u/FuzzYetDeadly Mar 27 '23

How does one achieve this? Would creating it using incognito work? There's this annoying behaviour where when you login by the app it immediately tries to log you in with saved credentials (for Android) :/

0

u/[deleted] Mar 27 '23

[deleted]

3

u/cchoe1 Mar 27 '23

I mean I'm only speaking theoretically because I don't actively work on browser fingerprinting techniques. But you'd have to completely stay anonymous throughout your entire session to stay disconnected from fingerprinting. If you simply sandbox your browser and anonymize traffic but login to an account afterwards, a fingerprinting technique could simply associate the new fingerprint as an alias for your actual user. This effectively means you can't use most services/platforms that require you to login, i.e. Twitter. Given how invasive and pervasive these actors are, I wouldn't put it beyond them to keep track of every single fingerprint that has been associated to your user in some long period of time (i.e. past 10 years of activity).

→ More replies (1)

7

u/TheCritFisher Mar 27 '23

No they use browser fingerprinting. VPN won't cut it.

Edit: oh wait you said VM too. Sorry I read that wrong, that would work. Thought you just said VPN.

7

u/myringotomy Mar 27 '23

Incognito wouldn't work. Tor would though.

6

u/EducationalNose7764 Mar 27 '23

VirtualBox or browser extensions that randomize fingerprinting.

For reddit, just use rif app. It's all done through API calls, so there is no fingerprinting going on. In which case you would just use a VPN to randomize your IP.

I usually create new user accounts in the VM or on my tablet for each account that I have. If it gets banned, I just delete the user account on whatever device I'm using and create a new one.

→ More replies (3)

3

u/FuzzYetDeadly Mar 27 '23

Thanks for the knowledge, I need to read up on this as I don't really understand how it works (haven't worked with web/mobile technology much)

20

u/schmuelio Mar 27 '23

Long and short of it is your web browser tells you a lot of information about:

  • What extensions it has installed

  • What version it's running

  • What OS it's on

  • What human-interface devices are available (mouse, keyboard etc.)

  • What resolution your screen is

  • What hardware capabilities you have (for things like canvas/webGL)

  • What system fonts you have installed

  • Etc.

All of this can be combined together to make a fingerprint of your browser that is nearly unique. It's possible to share a browser fingerprint with other people by happenstance, but generally speaking it's very rare.

You can see a breakdown of the stuff you can get from a browser to fingerprint it here.

→ More replies (6)

1

u/cchoe1 Mar 27 '23

That's like saying a building fell over because of gravity

0

u/[deleted] Mar 27 '23

[deleted]

6

u/AsliReddington Mar 27 '23

This is the creepy shit EU should ban

0

u/[deleted] Mar 27 '23

[deleted]

2

u/AsliReddington Mar 27 '23

Only brave browser was able to keep the incognito visit hidden, Safari failed sadly

→ More replies (1)

2

u/reercalium2 Mar 27 '23

I just made a new account and it wasn't suspended lol

→ More replies (1)

-7

u/Articunos7 Mar 27 '23

It most likely detects the IP address. There's no need for regex here

35

u/pheonixblade9 Mar 27 '23

it's way more complex than that, and likely involves a lot of factors.

9

u/F54280 Mar 27 '23

OP wanted to know if such algo was going to be released. However, if it involves a lot of factors, then it isn’t a prime candidate… goes ^^hiding

12

u/Ilbsll Mar 27 '23

Probably just cookies/local storage and browser fingerprinting on top of IP address. Can't really see it getting much more sophisticated than that.

10

u/johnyma22 Mar 27 '23

I'd be inclined to include:

  1. Timings IE time between suspend/create.

  2. User Behavioral characteristics IE front end interactions IE if password was typed or completed by some extension.

  3. Password used, IE if it matches previously suspended password. - This might not be possible dependent on how passwords are stored.

  4. Email address used similarity and use of things like "+".

  5. If the account has been validated by SMS.

  6. User follow/unfollow & Posting behavior.

8

u/cryptoplasm Mar 27 '23

Filtering for email addresses with "+" is interesting to see in reverse.