Тёмный

How The Self-Retweeting Tweet Worked: Cross-Site Scripting (XSS) and Twitter 

Tom Scott
Подписаться 6 млн
Просмотров 2,3 млн
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3,6 тыс.   
@Radium_Alarie
@Radium_Alarie 3 года назад
7 years later, the creator's account is still around, and this is his pinned tweet
@jamesharding3459
@jamesharding3459 3 года назад
Awesome
@CodaMission
@CodaMission 2 года назад
What a flex
@crewrangergaming9582
@crewrangergaming9582 2 года назад
why shouldn't it be
@MeiinUK
@MeiinUK 2 года назад
If it is removed, the market will crash.... OooOoooOoooOoo... But I think some bigger sandboxes have been created now, hasn't it ? We can relax.
@Jessev741
@Jessev741 Год назад
He outlived Twitter
@naverilllang
@naverilllang 6 лет назад
It looks like this guy made the code as a warning to the devs to fix it, and not malicious.
@Mr.FastZombie
@Mr.FastZombie 4 года назад
It did not happen in this case it seems, but even when it is non-malicious sometimes they still try to punish you.
@JulzDrogenstube
@JulzDrogenstube 4 года назад
the problem is, someone experienced who sees this might do a haarmful tweet just like this, before twitter shuts the feature down. I'd still do it for the fun of it though
@JesusMowsMaLawn
@JesusMowsMaLawn 4 года назад
@@JulzDrogenstube Right, but that's exactly why this tweet needed to be made. If Andy never made the tweet and twitter didn't know about it, then someone could've done something malicious. Security through obscurity does not work
@58book
@58book 4 года назад
@@JesusMowsMaLawn A call/email/message to twitter support could have been made. That way the cybersecurity team could have fixed it privately. Publicly exploiting the bug could have attracted people with malintent.
@JesusMowsMaLawn
@JesusMowsMaLawn 4 года назад
​@@58book Nine times out of ten they just ignore your message. With this tweet, they were forced to fix it immediately, hopefully before anything malicious could be done Obviously I'm not going to say if it was objectively right or wrong, because I'm not the judge of that, but I personally feel that this was justified
@chris-hayes
@chris-hayes 5 лет назад
What I find so hilarious about this they could've done anything. This gave the initial tweeter the power to log into any Twitter account using Tweetdeck in the world, send every twitter user to a website for ad-revenue, show an ad, do literally anything. No, they made it retweet itself because it would be funny.
@JetFalcon710
@JetFalcon710 4 года назад
They made the tweet as a warning to the Devs, and didn't want to do anything malicious
@__8120
@__8120 4 года назад
Anything as long as it fit into 140 characters
@chris-hayes
@chris-hayes 4 года назад
@@__8120 linking an external script wouldn't have that constraint, could've written a novel.
@78Shockwave87
@78Shockwave87 3 года назад
That’s being a responsible programmer. An experienced coder has the power to potentially cause a LOT of damage, but it’s the ability to decide whether or not to do the right thing with said knowledge which is important. They did the (almost) right thing and disclosed the bug in a mostly non-destructive way. It’s the whole “just because you can doesn’t mean you should” argument. TL;DR - Not all programmers are dicks who want to break everything!
@ammyvl1
@ammyvl1 3 года назад
@@__8120 No you can just do
@kopissimooo
@kopissimooo 8 лет назад
"I'm simplifying massively, here..." is Tom's catch-phrase.
@Karaboo7
@Karaboo7 7 лет назад
Tom thinks we're dumb. (and he's correct)
@joshbuck1586
@joshbuck1586 7 лет назад
*_-why-_*
@kaaaallll
@kaaaallll 7 лет назад
"So today we're talking about the physics of a swing set and *im simplifying massively here* ..."
@oliversmith1842
@oliversmith1842 6 лет назад
Nah it’s definitely “AND it works!”
@sacchar1n3
@sacchar1n3 5 лет назад
ON MERCH
@mayu-go3gz
@mayu-go3gz 4 года назад
the heart emoji was actually necessary because it took advantage of how that unicode was processed by tweetdeck at the time
@thaichicken0210
@thaichicken0210 Год назад
how so?
@Zlysium
@Zlysium Год назад
@@thaichicken0210 Tweetdeck did sanitize user input except for a bug with emoji that broke the sanitation. Without the emoji the XSS didn't work.
@Sage_the_Turt
@Sage_the_Turt 8 месяцев назад
@@thaichicken0210 from the author: "The ❤ was one of the UTF8 characters that got an visual upgrade that day. Before the update it would've displayed in the same font & color as the rest of the tweet. With the released update it was turned into an inline image. To display that HTML code was allowed within a tweet"
@datar0t273
@datar0t273 5 лет назад
"find the parents" ... I've been trying
@parsonsmarcus
@parsonsmarcus 5 лет назад
I was just out grabbing some beer for 13 years ago. Relax, kid. Jesus.
@rysea9855
@rysea9855 5 лет назад
That's.. Deep
@esoij
@esoij 4 года назад
Rumors say he's still looking to this day.
@CrypticConsole
@CrypticConsole 4 года назад
Oof
@senza4591
@senza4591 4 года назад
Uuf
@KorvusAracen
@KorvusAracen 9 лет назад
You know, if you think about it, this probably wasn't done with any malicious intent. The guy probably read the changelog for the emoji update, noticed the massive security hole it caused, and because a report to Tweetdeck's developers would take very long to notice or get a response (and in that time somebody could do something truly problematic with it), he made it incredibly and immediately noticeable with a completely innocuous script. What a nice guy!
@chsxtian
@chsxtian 9 лет назад
***** Rather this than something that shows a fake login form or secretly mines your data
@vengefulenigma
@vengefulenigma 7 лет назад
didn't the guy get like 5 years in prison or something like that for this?
@RWoody1995
@RWoody1995 7 лет назад
since the account has still been tweeting since (and the tweet itself wasn't even so much as removed) i doubt it.
@baymax1550
@baymax1550 7 лет назад
white hat+illegal stuff = grey hat good intention then he is a nice guy :)
@QuakDucc
@QuakDucc 5 лет назад
@92Dups would YOU want someone rummaging around with your websites code with no idea on there intent?
@jacobjp5487
@jacobjp5487 5 лет назад
I swear Tom Scott is that cool subsitute teacher you never got Edit: thanks for all of the likes! I never imagined that I would get so much attention.
@xuhuiming2694
@xuhuiming2694 5 лет назад
Jacob JP nevernevernevernevernevernevernever
@sxes
@sxes 4 года назад
Never
@lordfrog5740
@lordfrog5740 4 года назад
substitute*
@EddieKMusic
@EddieKMusic 4 года назад
"cool"
@TomboyCEO
@TomboyCEO 4 года назад
I got those before. One was a jeopardy champion.
@SiveenO
@SiveenO 4 года назад
->doesn't sanitize user input ->something bad happens ->surprised magic cat face
@alicialay166
@alicialay166 4 года назад
Ik u didn't ask but I'm taking gcse computer science and the fact that I understood this comment makes me really happy, thanks
@dexterhaxxor
@dexterhaxxor 4 года назад
@@chy4e431 That's called sanitazation.
@dexterhaxxor
@dexterhaxxor 4 года назад
@@chy4e431 sanitizing user input means replecing special characters with escape sequences, such as '
@cameronwebster6866
@cameronwebster6866 3 года назад
Mrs. Roberts would be proud.
@stroopwafelfalafel
@stroopwafelfalafel 3 года назад
did you just call pikachu a magic cat?
@-anton
@-anton 8 лет назад
I'm happy he didn't use it for something malicious.
@thesmellofpinetrees7688
@thesmellofpinetrees7688 8 лет назад
It's kinda sad he didn't make it retweet something offensive about a politician.
@operator8014
@operator8014 8 лет назад
All modern politicians are offensive enough on their own, there's no more that it could have done.
@gredangeo
@gredangeo 7 лет назад
Just follow a politician on Twitter if you feel like reading some obnoxious tweets. There are some really stupid people out there.
@BlockOfRed
@BlockOfRed 6 лет назад
I know him, he's a nice guy and very friendly :)
@kuipert4195
@kuipert4195 6 лет назад
@MikatGaming yes, if the website or app is not properly protected from it. That script would most likely be longer than the maximum allowed characters though.
@mckennacisler01
@mckennacisler01 10 лет назад
Despite being an attack and all (and the fact he could have just sent a request for a longer script), kudos to him for programming a retweeting tweet that could fit in 140 characters!
@sundhaug92
@sundhaug92 10 лет назад
He could've just linked to an external script
@KobraArboc
@KobraArboc 10 лет назад
sundhaug92 *cough*(and the fact he could have just sent a request for a longer script)*cough*
@uuu12343
@uuu12343 6 лет назад
Mckenna Cisler Very true, I'm actually just impressed he managed to do that
@hanshearth7745
@hanshearth7745 6 лет назад
*what*
@antediluvianspy5371
@antediluvianspy5371 6 лет назад
I don't believe his intentions were malicious I believe he was just pointing out an error in a way someone who isn't being paid to do so should.
@jackdavenport5011
@jackdavenport5011 5 лет назад
Additional technical note: At 5:21, the closing script tag isn't optional as he is sorta implying. It is required for the attack to work, otherwise the rest of the page would also be inside the script tag and it would ruin both the attack and the web page :)
@109Rage
@109Rage 3 года назад
Just gonna point out that TweetDeck *did* sanitize their user input usually, but in this one case, the emoji broke something inside of TweetDeck's sanitation software, and so the script was rendered as a true script tag. There are often bugs like this, where in some edge case, the "safeties" are accidentally turned off, and a lot of cyber attacks revolve around finding these bugs, and exploiting them.
@oscarpetersson5324
@oscarpetersson5324 3 года назад
Hey, what is that flag in your profile picture?
@109Rage
@109Rage 3 года назад
@@oscarpetersson5324 Anarcho-Texas.
@oscarpetersson5324
@oscarpetersson5324 3 года назад
@@109Rage oh, thanks
@PwnZombie
@PwnZombie 2 года назад
Under anarchism you'd be dying of typhoid under a rock.
@109Rage
@109Rage 2 года назад
@@PwnZombie under capitalism, you instead >checks notes< die of starvation before having to worry about typhoid.
@willdedoo6529
@willdedoo6529 4 года назад
I ADORE how Tom talks about big scale companies like the Lockpicking lawyer talks about lock designers
@emilianozamora399
@emilianozamora399 3 года назад
Ok?
@Her_Imperious_Condescension
@Her_Imperious_Condescension 2 года назад
@@emilianozamora399 Watch LPL and you'll understand.
@FrozenBusChannel
@FrozenBusChannel 2 года назад
fellow LPL watcher here
@pugpuggle3327
@pugpuggle3327 5 лет назад
"It should nevernevernevernevernevernever be turned off" *everyone tries code like RU-vid forgot that never^6*
@wolbobus2130
@wolbobus2130 5 лет назад
I think i just had a stroke while trying to read that.
@jimmyjim5yearsago376
@jimmyjim5yearsago376 5 лет назад
@mothlastname2413
@mothlastname2413 5 лет назад
Or you could not because its a felony to even attempt it
@evaahh9584
@evaahh9584 5 лет назад
TIMΞ СнΛИGΣ which law exactly? Because there are very few things that are illegal to even attempt that aren’t just a separate crime.
@stacklysm
@stacklysm 5 лет назад
@@wolbobus2130 Lmao, I was starting to get angry at myself for not understanding
@GibusWearingMann
@GibusWearingMann 7 лет назад
Andy's profile picture and tweet still exist on Twitter. He's changed his profile picture to a different Fluttershy, even.
@user-cl6jp5vj1g
@user-cl6jp5vj1g 5 лет назад
oof where
@myjorts
@myjorts 4 года назад
i know this comment is dead, but link in description to self-retweeting tweet
@yanis7336
@yanis7336 4 года назад
Hi
@zyugyzarc
@zyugyzarc 3 года назад
a flutter- what?
@GibusWearingMann
@GibusWearingMann 3 года назад
@@zyugyzarc the yellow pegasus pictured is named Fluttershy. Also, the tweet is still up four years later.
@iirelu
@iirelu 10 лет назад
The biggest and most important detail of this bug is that whatever they used to parse unicode emoji into pictures accidentally made the rest of the tweet get read as HTML. The heart was the most crucial part of that tweet.
@GogiRegion
@GogiRegion 6 лет назад
People in the comments trying out as if filtering out XSS isn’t cyber security 101 level stuff.
@Jono997
@Jono997 5 лет назад
Tfw you forget the video revolves around someone forgetting that 101.
@nuklearboysymbiote
@nuklearboysymbiote 5 лет назад
It should nevah evah evah evah evah evah evah evah evah happen
@markloydcatalo
@markloydcatalo 5 лет назад
-test-
@MrJaniman12
@MrJaniman12 5 лет назад
*what do you mean by that?*
@yojoehojo4291
@yojoehojo4291 5 лет назад
I mean, making everything bold is harmless.
@JontyLevine
@JontyLevine 2 года назад
2014: _"Some fairly significant disruption to what has unbelievably become an important part of how the world communicates. Worrying, isn't it?"_ 2021: This is one of the LEAST worrying things about Twitter.
@antfarmer2227
@antfarmer2227 2 года назад
2022: It Got Worse!
@silasunger
@silasunger 2 года назад
@@antfarmer2227 now: it got *even* worse
@toludaree
@toludaree Год назад
@@silasunger 🤣😂
@southernflatland
@southernflatland Год назад
@@toludaree I see you folks are staying warm watching the dumpster fire too... 😂
@eTiMaGo
@eTiMaGo Год назад
@@southernflatland how much worse can it get? we'll find out :p
@TheCanterlonian
@TheCanterlonian 8 лет назад
What a nice guy to not do anything malicious with this knowledge. He specifically did a harmless thing instead of querying usernames and injecting stuff to release password hashes. A really nice guy and deserving of recognition.
@someenglishgames
@someenglishgames 8 лет назад
he was also.a brony :)
@TheCanterlonian
@TheCanterlonian 8 лет назад
SomeEnglishGames Shows us #NotAllBronies are horrible people, doesn't it?
@someenglishgames
@someenglishgames 8 лет назад
Nikolas Powell Yup
@DonVitoCS2workshop
@DonVitoCS2workshop 7 лет назад
"worrying isn't it?" *starts grinning*
@countpythagoras
@countpythagoras 4 года назад
That's what we call chaotic neutral
@pranjalsmiling
@pranjalsmiling 4 года назад
suspicous of him
@pranjalsmiling
@pranjalsmiling 4 года назад
**Hello**
@Sollace
@Sollace 5 лет назад
Up next: The self-liking RU-vid video.
@0_-
@0_- 4 года назад
please do that
@inactive6200
@inactive6200 4 года назад
Well someone did make a RU-vid video that knows it’s own url
@p0xygen
@p0xygen 4 года назад
@@inactive6200 thats very easy though..multiple people have done it years ago and it's not an exploit
@Slave-of-the-most-merciful
@Slave-of-the-most-merciful 4 года назад
I hate your pfp
@h-Films
@h-Films 4 года назад
Master I hate u
@HaustierYui
@HaustierYui 7 лет назад
A very good and easy to understand explanation of XSS. Very worthwhile watching. Keep up the good work.
@Tagglink
@Tagglink 4 года назад
The explanation of XSS should be credited to the person who wrote the tweet. That was their purpose.
@znefas
@znefas 5 лет назад
I've never seen Tom so angry, seriously.
@Netugi
@Netugi 4 года назад
You should check out some of his Computerphile videos, like timezones, internationalis(z)ation, and electronic voting. Those are the rants of the century.
@extrahourinthepit
@extrahourinthepit 4 года назад
I’ve read him that angry, certainly. Really shouldn’t have sent him that email.
@extrahourinthepit
@extrahourinthepit 4 года назад
To those wondering whether I’m joking, I’m not. I REALLY should not have sent him that email
@trubiso
@trubiso 4 года назад
@@extrahourinthepit ???????????
@nilen
@nilen 4 года назад
Google Cendrum Yep, the email was of bad character
@thenerdyouknowabout
@thenerdyouknowabout 9 лет назад
That's a marvellous little bit of code... Simple but elegant in its execution :)
@theywalkinguptoyouand4060
@theywalkinguptoyouand4060 7 лет назад
Why do I use marvelous (not marvellous) but also cancelled (not canceled) ?
@Dorumin
@Dorumin 6 лет назад
It's also jQuery, and it sucks :D (I'm kidding, it has its uses, but I like to avoid it)
@abdelrahmangamalmahdy
@abdelrahmangamalmahdy 6 лет назад
With plane JS, the code wouldn't run on twitter xD
@thebaseandtriflingcreature174
@thebaseandtriflingcreature174 6 лет назад
A simple spelly,yet quite unbreakable.
@danlarkman2450
@danlarkman2450 4 года назад
Despite several attempts,methods,techniques & even the people pretending to be hackers I've encountered,i was finally refereed to this hacker on Instagram who finally gave me all i wanted from my partners mobile phone.If you are in the same shoe as me,i'm referring you to his Instagram page for help[@elitecoding007]..
@deanobeany
@deanobeany 4 года назад
I don't really understand what we're talking about here, but I know that the filter should never ever ever ever ever EVER have been off.
@xlorrix-6320
@xlorrix-6320 3 года назад
yep never ever ever ever ever EVER turned off
@imperialfish454
@imperialfish454 5 лет назад
"jQuery ... and it works!" yo citation needed on that one because jquery has done it's best to disprove that statement.
@Puzzelism
@Puzzelism 5 лет назад
beauty
@Asdayasman
@Asdayasman 4 года назад
There are two versions of jQuery - the current version, and vulnerable versions. And the current version is also vulnerable - we'll find out how in, say, two weeks.
@TheLukasz032
@TheLukasz032 3 года назад
With all ES6 and ES7 additions, there is currently no reason to use JQuery at all. Except if someone actually enjoys its counterproductive syntax that violates all OO-languages (which JS actually is) principles.
@LibertyMonk
@LibertyMonk 3 года назад
@@Asdayasman plus there's jquery-latest which hasn't been up-to-date in years, because people were abusing it.
@Asdayasman
@Asdayasman 3 года назад
@@TheLukasz032 While I agree that JQuery should be discarded from maintained projects and never included into new projects, I disagree with your implication that "OO" means "better".
@astro4355
@astro4355 7 лет назад
❤️
@skyr8449
@skyr8449 7 лет назад
❤️
@spectrum6474
@spectrum6474 7 лет назад
🖕
@The_Wosh
@The_Wosh 7 лет назад
Spectrum 🖕
@TubeofDestiny
@TubeofDestiny 7 лет назад
❤️
@konatsu_x
@konatsu_x 6 лет назад
astro -test-
@Selur91
@Selur91 9 лет назад
That guy, the one who made the self-retweeting tweet was awfully nice, with the abilty to run a script in your browser he could have redirected you to an add, or even place it on your page and make tons of money, or make you download a virus, or anything else they wanted. Note:those or are the mathematical one, not the normal one.
@coolguy284_2
@coolguy284_2 5 лет назад
@maskyschannel dang, i know, because its totally false. modern js parsers are better than that, with all the exploits fixed
@coolguy284_2
@coolguy284_2 5 лет назад
not anything else, bc javascript is a limited language
@danlarkman2450
@danlarkman2450 4 года назад
Despite several attempts,methods,techniques & even the people pretending to be hackers I've encountered,i was finally refereed to this hacker on Instagram who finally gave me all i wanted from my partners mobile phone.If you are in the same shoe as me,i'm referring you to his Instagram page for help[@elitecoding007].
@joshyoung1440
@joshyoung1440 2 года назад
@@danlarkman2450 referees? Shoes? My word association algorithm thinks you're looking for soccer cleats. Is this correct? Oh, no, you don't wear shoes, because you're a bot
@debjitpaul8580
@debjitpaul8580 4 года назад
Neverevereverevereverever - Tom Scott
@KarateLauren
@KarateLauren 4 года назад
4:49
@dontmindmejustlisteningtom8225
@dontmindmejustlisteningtom8225 4 года назад
Tom Scott stand cry
@azenetmc
@azenetmc 10 лет назад
AFAIK, the heart was mandatory for the injection to work.
@MandrakeHorse
@MandrakeHorse 10 лет назад
Emoji support was added to Tweetdeck only two days ago, which they managed to screw up by not processing them safely. Without the heart emoji stuck on after the closing script tag, the tweet would have been sanitised and all would have been well.
@glitcher880
@glitcher880 9 лет назад
I like how he's so into what hes saying lol "you shoudn't ever ever ever everrr..." He explains so well, really good job man! Keep up your perfect work :)
@edsrule
@edsrule 7 лет назад
Doing the math, working off the screenshot from the BBC Twitter at 0:18, that tweet got roughly 108 retweets per second on average. I'm sure the actual rate was exponential and not linear, but that's still devastatingly impressive.
@BananaLizard
@BananaLizard 3 года назад
tom isn't angry, he's just disappointed.
@HolyEcoly
@HolyEcoly 5 лет назад
5 years later and RU-vid is finally recommending me this.
@Salzui
@Salzui 4 года назад
*6
@EmbyTheEnby
@EmbyTheEnby 3 года назад
@@Salzui it was 5 for them, 6 for us
@Echo024
@Echo024 5 лет назад
I bet Andy’s real name is Robert “Bobby” Tables XKCD #327
@ausnetting
@ausnetting 5 лет назад
I love little Bobby tables!
@elliottsampson1454
@elliottsampson1454 4 года назад
Actually in XKCD 342 it says that Bobby was not much for computers unlike his mother and sister
@ArturoStojanoff
@ArturoStojanoff 10 лет назад
I don't know if you're still making them, but I am a linguistics enthusiast and I have to say your videos on that topic are ABSOLUTELY BRILLIANT. Seriously they're amazing. Cheers.
@Nixitur
@Nixitur 8 лет назад
I'm pretty happy to see that *andy was apparently not banned and is actually still actively tweeting. They also link followers to your video for explanation which is nice.
@MisterOptimous
@MisterOptimous 6 лет назад
Sanatizing outputs is actually so tedious as you need to do it litterally anywhere where an individual might have touched a string.
@thekinginyellow1744
@thekinginyellow1744 4 года назад
That's what wrappers are for.
@v0id_d3m0n
@v0id_d3m0n 4 года назад
Subroutines !
@VoidSixx
@VoidSixx 8 лет назад
Just for everyone here trying to use HTML in their comments, etc. doesn't work in the comments. You need to use Google's tags *Bold* - put * either side of the text _Italics_ - put _ either side of the text -Strikethrough- - put - either side of the text
@jandusek882
@jandusek882 8 лет назад
*test* _test_ -test- it worked, thanks! :D
@VoidSixx
@VoidSixx 8 лет назад
Jan Dusek Np ;) *Np ;)* _Np ;)_ -NP ;)-
@axid8354
@axid8354 8 лет назад
-test-
@isaacfwpc3508
@isaacfwpc3508 8 лет назад
AirCommando12 *test*
@kodama3725
@kodama3725 8 лет назад
-test-
@BakerbrothertvOfficial
@BakerbrothertvOfficial 10 лет назад
So anybody who looked at the tweet retweeted it?
@Fennoman12
@Fennoman12 10 лет назад
Yes.
@BakerbrothertvOfficial
@BakerbrothertvOfficial 10 лет назад
It's a shame that you can only tweet 140 characters otherwise he could have done a lot more!
@TomScottGo
@TomScottGo 10 лет назад
***** The thing is, you can do a lot more: you only need about twenty characters to embed an external script file hosted elsewhere. That file can be as long as you like, as long as the hosting's up to it...
@BakerbrothertvOfficial
@BakerbrothertvOfficial 10 лет назад
They could have had it retweet an advert and wrote @justinbieber @ pewdiepie
@JackBond1234
@JackBond1234 7 лет назад
Though, most browsers have something called the same-origin policy, which will automatically block any attempts to load an external javascript file from a different domain than the page you're on. Typically the best you'll get out of an XSS attack these days is unfiltered input from a form, or from the URL string (a "reflected" vulnerability), or if you're lucky, you'll find a situation like the one in the video where you save your malicious code on the server, and it's loaded up even on simple pages, and neither when you save it, nor when you load it does it filter out risky characters (a "persistent" vulnerability)
@Bildungsromancuddy
@Bildungsromancuddy 6 лет назад
1:40 The Dangerous thing, the really dangerous thing is that he’s filming with blinds behind him which makes everything Moiré-aey
@haider4899
@haider4899 8 лет назад
never EVER EVER EVA EVAAAAA
@paintspot
@paintspot 7 лет назад
GETTING BACK TOGETHER -Paintspot Infez Wasabi! Like if you agree Reply if you've heard of me
@Stallnig
@Stallnig 6 лет назад
Fo eva? For eva eva?
@Banditxam4
@Banditxam4 4 года назад
As a guy who's just learning about JavaScript this video was recommended at the perfect time
@Shazzkid
@Shazzkid 6 лет назад
"worrying, isn't it?" Tom said with a smile...
@jarnMod
@jarnMod 10 лет назад
alert('Yeah, I know it wont work');
@Axel-ro7dn
@Axel-ro7dn 9 лет назад
Here's why: special characters (like < which are needed for tags) are replaced by entities. They render the same as '
@raskr8137
@raskr8137 6 лет назад
I find a smiley! ;
@dannya5690
@dannya5690 7 лет назад
"I'm overly simplifying this" > Bonds text Tom, tom, please.
@jauxro
@jauxro 2 года назад
Breaking Twitter while decked out in a fancy little Fluttershy profile pic,
@arooobine
@arooobine 8 лет назад
$('.xss').for(int i = 0; i < script.size(); i++){alert("How to make someone read nonsense code.");}END IF
@Lou_0b1
@Lou_0b1 8 лет назад
Can you actually increment and decrement with js?
@Akronymus_
@Akronymus_ 8 лет назад
of course you can. thats one of the most basic instructions
@commentator3513
@commentator3513 8 лет назад
How do you think cookie clicker works? That thing is pure js
@Lou_0b1
@Lou_0b1 8 лет назад
Commentator Instead of increment you could just say X=X+1.
@itsthesola10
@itsthesola10 8 лет назад
END IF
@warpedmjia
@warpedmjia 4 года назад
“And then, just to be lovely, a heart.”
@SanicStudios
@SanicStudios 5 лет назад
“Im oversimplifying here” “never ever EVER” “Well done (insert name here)”
@BailsDaCableMan
@BailsDaCableMan 7 лет назад
wait till Tom hears about the root user without a password in MACOS High sierra
@ryannorthup3148
@ryannorthup3148 4 года назад
Or the fact that there's an exploit in Windows 10 to create a user with admin privileges through the recovery boot command line (X:).
@realjameskii
@realjameskii 4 года назад
@@ryannorthup3148 well that would have been nice to know regaining access of my computer
@abc-li7cq
@abc-li7cq 3 года назад
@@ryannorthup3148 and on Linux you can add init=/bin/sh to your boot options. Needless to say, if you have physical access to a computer you can do a lot more than people would assume.
@nodell8729
@nodell8729 3 года назад
@@ryannorthup3148 Again? Like c'mon windows, it has been already in 7
@uuhamm
@uuhamm 10 лет назад
Just to be clear: the solution to preventing XSS is not to sanitize input and remove something that looks like an html tag. The solution is to correctly encode text before you spit it out into an HTML document.
@jamesdaniel4975
@jamesdaniel4975 4 года назад
I came back now, 6 years later and now I'm able to analyze all of this by myself. I sure learned lots about HTML, JavaScript etc
@sethadkins546
@sethadkins546 4 года назад
Welcome to the team
@mushahidhussain1516
@mushahidhussain1516 3 года назад
Hahaha, same here. I had watched this video before but didn't understand it much. Now that I have learned HTML, JS and much more, I can understand it all.
@DuncanJMcMillan
@DuncanJMcMillan 9 лет назад
I like the guy who tweeted this, he was like, ha! Bug! Time to screw with people while also helping the community!
@cerberaodollam
@cerberaodollam 6 лет назад
Chaotic Good.
@hats1642
@hats1642 3 года назад
As of March 2021, the original tweet is still up!
@leBAT54
@leBAT54 3 года назад
Wait, I just realized that the tweet got sent at 5pm (UK) but you still managed to upload that video on that day. Big cheers Tom!
@MeiinUK
@MeiinUK 2 года назад
Suspicious isn't it ? In "real time" !
@skhtrm
@skhtrm 9 лет назад
Love how the original tweet has a Fluttershy profile picture
@skhtrm
@skhtrm 9 лет назад
Iggy Tubmen ?
@Chrnan6710
@Chrnan6710 9 лет назад
+Iggy Tubmen Hey look, a tweet by a brony. Let's ignore what the tweet says and hate on something that ISN'T EVEN RELEVANT!
@commentator3513
@commentator3513 8 лет назад
+BigGamer2525 You should go back to school.
@BigGamer2525
@BigGamer2525 8 лет назад
SquidPlays no ur a back to school night
@commentator3513
@commentator3513 8 лет назад
BigGamer2525 Your grammar is atrocious. What are you, 9?
@kenkenowo420
@kenkenowo420 4 года назад
looks like when I have to take my programming class for college I'll be coming back to you for anything
@CZghost
@CZghost 4 года назад
Hey, this is actually very clever way to spread the word. Making an XSS script as a test if it actually works, and it then turns into a self retweeting tweet. Fits nicely into the limited space and lets the users know about it and they don't even need to spread it further, the script does that for them automatically. Nice.
@Megapixel8063
@Megapixel8063 5 лет назад
You’re way better at cop,wining code than my actual computer science teacher. If you made a Java programming tutorial I would be doing way better in this class.
@xtzyshuadog
@xtzyshuadog 10 лет назад
I learned some HTML, CSS, and JavaScript. And now I learned what $ means. Thank you.
@nopenope7184
@nopenope7184 6 лет назад
Its from jQuery...
@alien4320
@alien4320 9 месяцев назад
Andy even recommended this video to someone who wanted an explanation. Does not seem malicious at all. He brought attention to the error.
@Fennoman12
@Fennoman12 10 лет назад
Great video Tom! Quick to put out and quality content, as usual. But wouldn't they have to actively remove it for that filter to drop off? Was it a spelling error or did someone do it on purpose? Hrm...
@thepiggrinder
@thepiggrinder 10 лет назад
Was not expecting to find you here! Computer science ftw :D
@joeytje50
@joeytje50 10 лет назад
Generally, the most likely cause of XSS in professional websites is someone adding an output without first filtering it. So, if someone creates a new kind of output, like when they implement a new way of adding emojis for example, and they forget to add the encoding command, it will create a vulnerability. This doesn't mean the filter was turned off manually, but it was simply forgotten when adding a new feature.
@Fennoman12
@Fennoman12 10 лет назад
joeytje50 ah, true. You'd think that a filter like that is in the in the base-tweet, and not on smaller parts that make out the tweet. I mean a simple htmlentities() could have prevented this from happening as a whole.
@joeytje50
@joeytje50 10 лет назад
Fennoman yeah it could have, but it only takes _one_ mistake to be completely vulnurable to XSS. If someone forgets that once, they're vulnurable. And I don't know what their internal structure is, so I can't say how they could have prevented it. Simply removing any < and > wouldn't work though, because then you'd also filter out all the tags required for the emojis.
@RonWolfHowl
@RonWolfHowl 10 лет назад
joeytje50 You could make an exception.
@PattyManatty
@PattyManatty 5 лет назад
I think you could have gone into more detail about *why* this is so important. Your viewers may just shrug off a self-retweeting treat as something kind of benign, and it is. But the tweet could have done so much more, like stealing login sessions of the user. This reason this is a big deal is because it exposes an XSS vulnerability, not that someone's tweet can retweet
@Isaac_Stuart
@Isaac_Stuart 2 года назад
Well, it came back again across the internet in 2021, Tom way ahead of the game again
@Minitomate
@Minitomate 4 года назад
This is what I call self-promoting a tweet.
@adamweishaupt3733
@adamweishaupt3733 8 лет назад
does anyone *know* how to change the _font_ on a -RU-vid- -Google+- apparently RU-vid again comment?
@Dave-hn5tl
@Dave-hn5tl 8 лет назад
Yup
@adamweishaupt3733
@adamweishaupt3733 8 лет назад
DaveyGames Then *_how?_*
@adamweishaupt3733
@adamweishaupt3733 8 лет назад
Rechamber That's not the _font_, just the *style*
@user-pq3do4wt6c
@user-pq3do4wt6c 8 лет назад
*I am bold*
@D0N4R_
@D0N4R_ 8 лет назад
NOT REALLY, SORRY.
@serendipity-tilde
@serendipity-tilde 4 года назад
I already knew about JQuery and HTML and CSS, etc. but that little bit of code and your explanation helped me learn SO much JQuery
@BenBrayhoof
@BenBrayhoof 10 лет назад
Oh, hey look. Its Fluttershy! But seriously: That is something that should not have happened. Thats one basic thing the QA should have checked: HTML-Injections (It can be pretty harmless but would have been enough to see this error.) Many Frameworks that are used now a days even do that for you. They just don't let this happen. But still it happens now and then that someone finds an error in a well know and well used software, where other Software-Devs just ask 'How could have this happened?'
@lukenoble2539
@lukenoble2539 Год назад
Correction: how the self-reXing X worked: Cross-Site Scripting (XSS) and X
@tech0494
@tech0494 3 года назад
I have taken many courses about bug Bounty, but this guy is the only one who explained it crystal clear 🔥❤️
@johnnysteward709
@johnnysteward709 3 года назад
Tom Scott hasn't aged a day in 6 years
@dcallstar51
@dcallstar51 10 лет назад
You should do a follow-up on what the author could have done if he was more malicious. Perhaps he could have redirected people to another page on Twitter with more malicious tweets. The initial tweet would just retweet and redirect, then subsequent tweets would do things like follow/unfollow people, steal cookies, collect account information, include other scripts, maybe even mine bitcoin or send a bunch of requests to a specific server (DDoS).
@shugaroony
@shugaroony 4 года назад
Love Tom's channel, but there is nothing duller than programming.
@jeffirwin7862
@jeffirwin7862 8 лет назад
That is some impressive code golf '); DROP TABLES RU-vid;--
@jbcrocuta4236
@jbcrocuta4236 5 лет назад
@Tom Scott: i just found this video even though i subscribed years ago. anyway: the twitter account still exists and his tweet as well, its pinned actually.
@My1xT
@My1xT 7 лет назад
this is a good reminder. it isnt like when building a site completely from the beginning that there's some kind of preinstalled filter you have to turn off to make the xss possible but you have to check any user input and html-escape it yourself, something that can quickly be forgotten when doing MANY other security things, like storing passwords safely and so on.
@Alex_Eicher
@Alex_Eicher 3 года назад
2:19 This is where someone starts to sweat... 2:23 Twitter is hiring new people
@RevsAndWheels
@RevsAndWheels Год назад
Normies : Self-Retweeting Tweet CS Students : Recursive Tweet
@zachogilman7397
@zachogilman7397 7 лет назад
More HTML: is a paragraph is a break between paragraphs serves as italics serves as bold Makes you type in the title font of your page is a divider inside text I could go on and on, but I won't.
@groszak1
@groszak1 5 лет назад
both , , and are newlines
@Gunbudder
@Gunbudder 8 лет назад
does anyone actually communicate with twitter? or do they just all talk at the same time and hope everyone else is listening?
@the1exnay
@the1exnay 6 лет назад
That's how i use RU-vid
@MyNameIsNidos
@MyNameIsNidos 8 лет назад
deletesys32.exe
@gavros9636
@gavros9636 8 лет назад
That is not a proper script, and I'm fairly sure the command to delete anything would not be named delete for this very reason.
@MyNameIsNidos
@MyNameIsNidos 8 лет назад
+D Wells Look in the sky! It's a bird! It's a plane! It's the joke flying over your head!
@KingHalbatorix
@KingHalbatorix 8 лет назад
+MyNameIsNidos that was a joke? your standards of humor are lower than I knew possible
@MyNameIsNidos
@MyNameIsNidos 8 лет назад
+KingHalbatorix a few people here disagree with you
@alexesther787
@alexesther787 8 лет назад
come on guys it's a joke. No need to get so serious about it. just laugh and move on.
@hazardeur
@hazardeur Год назад
this is as emotional as i have ever seen this guy get. it's a topic dear to his heart
@ToastGreeting
@ToastGreeting 4 года назад
I like their profile picture, Fluttershy is good
@MartyScorchedEarthse
@MartyScorchedEarthse 4 года назад
I like how that guy is still on twitter
@PwinoP
@PwinoP 8 лет назад
*im gay*
@TGKcraft
@TGKcraft 8 лет назад
_me too_
@Alex-pf4ps
@Alex-pf4ps 8 лет назад
thats not how it works the html tags wouldnt appear if it worked silly goose
@Lou_0b1
@Lou_0b1 8 лет назад
He did that on purpose, so people try to put in the
@phgoil
@phgoil 8 лет назад
*i'm not*
@taxevasionconnoisseur4499
@taxevasionconnoisseur4499 7 лет назад
*_-bold italic strikethrough-_*
@TwoGoblinsInATrenchCoat
@TwoGoblinsInATrenchCoat 5 лет назад
Thanks. I'm an idiot, so it's nice to be walked through the process of how it all went down.
@virgurilla4084
@virgurilla4084 2 года назад
Honestly if I noticed this mistake in the website I would do the same thing, this is the harmless possible way to get the devs to notice the problem as quick as possible while also being cool, I bet if they had tried notifying through normal measures they would have just been ignored for weeks upon weeks, resulting in a potential huge data breach
@JoseGonzalez-rt5fk
@JoseGonzalez-rt5fk 8 лет назад
Is it weird that I smelled the sharpie he was writing with and I thought he was using a pen? I did not have any open sharpie near me either.
@Wraithling
@Wraithling 6 лет назад
i love how the person who actually did that was a brony
@bananya6020
@bananya6020 4 года назад
the weebs and mlp fans always thr smort
@DMack6464
@DMack6464 4 года назад
How about furries
@bananya6020
@bananya6020 4 года назад
@@DMack6464 also yes
@dragonkyng
@dragonkyng 3 года назад
“Worrying isn’t it?” It’s 7 years later and it’s only gotten worse
@bettercalldelta
@bettercalldelta Год назад
The fix is literally replace "
@ItsMrCube
@ItsMrCube 4 года назад
*Meanwhile Twitter accounts are getting hacked...*
@keaare9478
@keaare9478 7 лет назад
Tom Scott had just forgot about acustics, i mean this should never happen, this is video basics 101 and yet here we are
@heronfountain6215
@heronfountain6215 4 года назад
I wish I knew how to switch my handwriting to that font.
@PhillipH-san
@PhillipH-san 8 лет назад
Nice profile pic there, Andy! Lmao
@justkowal
@justkowal 3 года назад
is not italic, it's for icons
@Maffoo
@Maffoo 9 лет назад
?? You mean , Tom! Deprecation yo.
@Yacliveable
@Yacliveable 9 лет назад
And !
@calaphone1
@calaphone1 9 лет назад
NaiveAmoeba WORKS TOO YA KNOWWW!!!!!!
@Maffoo
@Maffoo 9 лет назад
David Yue You do know what I mean by deprecation, yeah? As in, works, but it won't forever; they will deprecate it. has been highly recommended for use for *years* because "bold" is a stylistic attribute whilst "strong" is a functional one, hence the separation of layout and style.
@Maffoo
@Maffoo 9 лет назад
Tim Stahel Browsers still show tags as being bold, but not necessarily forever. The idea is that you can override it, and make something that's "strong" by making it bigger, or a different colour, or anything. It isn't tied in with a specific visual type. It also means that it's more descriptive of its function rather than style. For example, what does "bold text" mean to a blind person? Nothing. What does "strong" or "emphasised" language mean? Exactly what it says on the tin. That's the idea, and although it's mostly about terminology, it's the early stages of separating lots of stuff out so that it has the same meaning for all devices, people, etc and is more future-proof!
@kraio-sfu
@kraio-sfu 7 лет назад
Nothing like adding unnecessary bytes!
@KingDevyn
@KingDevyn 10 лет назад
So, what exactly did this do? Did the people who posted it flood their profile with hearts and cause the servers to crash or something?
@Vengir
@Vengir 9 лет назад
Luckily, one person can only retweet once per tweet. Everyone had only one retweeded heart on their profile, but it spread like virus: if you visited with Tweet Deck either the original profile OR other profile that already retweeted, you would retweet as well.
Далее
How "Crash Safari" Reboots Your Phone
5:19
Просмотров 1,5 млн
Why The Government Shouldn't Break WhatsApp
11:11
Просмотров 3,7 млн
A Christmas Computer Bug, and the Future of Files
7:52
The Art of the Bodge: How I Made The Emoji Keyboard
17:15
There is No Algorithm for Truth - with Tom Scott
59:34
Why The Web Is Such A Mess
9:51
Просмотров 3,2 млн
I built my own 16-Bit CPU in Excel
15:45
Просмотров 1,5 млн