Hacker Tweets Explained

  Рет қаралды 158,025

LiveOverflow

LiveOverflow

Күн бұрын

Let me explain to you what you can learn from these tweets. Did you know the name trick?
Buy my terrible font (ad): shop.liveoverflow.com
Learn hacking (ad): hextree.io
Quote Tweet: / 1697869590569582932
Original Tweet: / 1696862832841916679
Critical Thinking Podcast: www.criticalthinkingpodcast.io/
XSS Origin Series: • The History of XSS
Chapters:
00:00 - Intro
00:37 - Tweets About Tricky XSS
01:24 - XSS Testbed Setup with php
03:45 - Exploring the XSS Context
05:24 - The window Object
06:46 - Tweet 1: Justin's XSS Explained
08:22 - Tweet 2: Mathias's Variant With Object
09:52 - Tweet 2: Mathias's Variant Creating Class
10:30 - The window.name Trick
12:00 - Closing Script Tag XSS
12:28 - Outro
=[ ❤️ Support ]=
→ per Video: / liveoverflow
→ per Month: / @liveoverflow
2nd Channel: / liveunderflow
=[ 🐕 Social ]=
→ Twitter: / liveoverflow
→ Streaming: twitch.tvLiveOverflow/
→ TikTok: / liveoverflow_
→ Instagram: / liveoverflow
→ Blog: liveoverflow.com/
→ Subreddit: / liveoverflow
→ Facebook: / liveoverflow

Пікірлер: 258
@LoafyHarbinger
@LoafyHarbinger 9 ай бұрын
This episode could have been 13m37s in length, surely...!
@LiveOverflow
@LiveOverflow 9 ай бұрын
oooof.... missed opportunity
@hyronharrison8127
@hyronharrison8127 9 ай бұрын
​@@LiveOverfloweeh leet, leat, same thing
@nesieARK
@nesieARK 9 ай бұрын
It must be an AI. There is no way the Real liveoverflow would have ever let this slip, He cut it, he render it, he watch it He uploads it. Multiple occasions where an Actual human would have seen the magical number but not an AI.. For an AI it's just a number. Therefore Liveroverflow has replaced himself with an AI
@lukasjetu9776
@lukasjetu9776 9 ай бұрын
could, but wans't
@GeorgeValkov
@GeorgeValkov 9 ай бұрын
@@lukasjetu9776 I think Leet + 9 seconds bonus is also cool. Nice video, now I'm hungry for more XSS.
@efrkool
@efrkool 9 ай бұрын
Nice video explaining the issue. One thing that I think is good to mention is what is the underlying mistake. This makes it a better resource for devs and also for researchers. In my humble opinion this is due to the fact that the person implementing this tried to it's own filtering instead of using the native available functionality and/or standard package. The red flag beeing the specific list of characters used for filtering
@xorlop
@xorlop 9 ай бұрын
PLEASE do more vids like these! I love the way you explained every bit.
@fededamian
@fededamian 9 ай бұрын
Great video and explanation, professional, and gets to the point. I think one main takeaway one can get, that would especially help guys who may feel overwhelmed by these injections, is that the core problem here to be spotted while you are testing is the lack of the encoding / filtering of the double quotes, which allows you to escape the context of the string where the contents of the parameter is being injected. After that is just a matter of playing around to see what you are allowed to inject and find a way to run code, which is what these injections are all about.
@KyoSawada1
@KyoSawada1 9 ай бұрын
This was super interesting and fun to learn about. Great lesson! Hope to see more of your content, keep up the great work
@xB-yg2iw
@xB-yg2iw 9 ай бұрын
This format is fun and useful, please do it again!
@fourtwizzy
@fourtwizzy 9 ай бұрын
I like this as a reoccurring video. It is nice to be able to decipher what someone was referring to. Given everyone has different levels of knowledge, I would give it a 2 thumbs up. Keep ‘em coming!
@_hackwell
@_hackwell 9 ай бұрын
neat! these tricks go straight into my notes ! Nice video format too. I'd like to watch more of this kind
@karlkastor
@karlkastor 9 ай бұрын
Great video! Really well explained and easy to understand. Would like more in this series to just explain a short exploit in a way that anyone can understand.
@SoreBrain
@SoreBrain 9 ай бұрын
I'm really into all kinds of quirks of js and I can't believe that knowledge finally paid off and I was able to fully follow a liveoverflow video 🎉
@ChillerDragon
@ChillerDragon 7 ай бұрын
Yea its one of the more easy to follow videos for web soydevs like us :D
@AntoshaPushkin
@AntoshaPushkin 9 ай бұрын
It's such a weird filtering when you disallow ( ' and ` but allow " < and >
@forestcat512
@forestcat512 9 ай бұрын
Cool format, please more of this :)
@WistrelChianti
@WistrelChianti 9 ай бұрын
Wow thanks! It's so important for people to have a handle on this sort of thing so we can be aware of what we need to look out for when writing code.
@VxMxPx
@VxMxPx 9 ай бұрын
This is not really JS problems as some people seems to think. Carelessly treating user's input would always lead to big problems. In general when developing FE applications we rarely set any user provided values in any context that could be evaluated like this. Concatenating user's input with code is just bad practice and big no-no. In general, interesting information, but highly theoretical: so many characters are disallowed while double quote still being allowed. I feel IRL, if such case would be allowed, would be either no input cleaning or stricter rules.
@shapelessed
@shapelessed 9 ай бұрын
Sadly most websites stubbornly develop their own ways of providing rich text display methods instead of using standards, which generally just tends to expose users to exploits... I know that all too well. Been working on the frontend for a while (please kill me)
@aa-fi9ks
@aa-fi9ks 9 ай бұрын
I have seen a lot of old codebase concatenating user's input with code, it really isn't that bad as long as you know what you are doing. Also in those applications you just can't rewrite the majority of the codebase just to fix a newly discovered XSS. Sorry I lied it was so damn bad that it has become a joke where the filter list just increases day by day. We slapped on a 5000$ IDS and IPS service and everyone pretends like everything is in control but deep inside we all know that the codebase is on fire. I know Robert had told me for a thousand time that concatenating user input with code is bad, but when deadline is chasing off my a** I just can't help but pray and do it anyway, I just want to go home. Sorry Robert, I swear it will be the last time I do it. Amen.
@BrotWurst
@BrotWurst 8 ай бұрын
you are absolutely right. thats also almost always my first thought. but i have to throw that thought away for a moment because it gets more interessting if you think about all the existing websites who still could have flaws like this. and its also interesting just to see again how sh*tty and dirty compilcated and entangled javascript can be as a scripting language :D
@furiat5981
@furiat5981 8 ай бұрын
it kind of is. javascript is dogshit and was made to do simple things when it was created but some clowns said "hold my beer" and other clowns took it seriously, then nodejs happened and embedded webshit posing as fully functional desktop applications known as electron came to be and it's at its worse. Thank God I don't ever was forced to dabble in this cesspool profesionally
@staCats
@staCats 9 ай бұрын
Very insight and presented in a way you can understand. I had no idea about XSS or an and now I do.
@lukasjetu9776
@lukasjetu9776 9 ай бұрын
same
@hydejel3647
@hydejel3647 9 ай бұрын
great video. learned a lot. would love to see more like it 👍
@seybsen
@seybsen 9 ай бұрын
Super useful and interesting format. Thanks for sharing
@HritikV
@HritikV 4 ай бұрын
this was an open tab for so long. greatly explained !!
@galopeian
@galopeian 9 ай бұрын
Love this explanation. Would use this as a quick explanation for javascript injection methods in general
@exoZelia
@exoZelia 9 ай бұрын
This is a really cool format. Had this recommended, never seen your channel. Ngl I thought it was gonna be clickbaity and surface level, but this was great! I subbed
@FuzzyLitchi
@FuzzyLitchi 9 ай бұрын
very fun format! :) learnt a few tricks
@the6278
@the6278 9 ай бұрын
awesome format! i learned so much
@gergelykalman9822
@gergelykalman9822 7 ай бұрын
Man, I almost never do websec, so this was fascinating. I learned a ton, your content is always top notch! Thanks for this ❤
@XPOnion
@XPOnion 9 ай бұрын
Super interesting video, liked this very much!
@adrianoverona
@adrianoverona 9 ай бұрын
Loved this one! Please, keep them coming :)
@JohnnyNilsson83
@JohnnyNilsson83 9 ай бұрын
Super interesting. Thanks for the explanation.
@tweeko6903
@tweeko6903 9 ай бұрын
I would love to see more of this new format.
@0xteknogeek
@0xteknogeek 9 ай бұрын
super cool bug, and great explanation!
@SteveLEKORodrigue
@SteveLEKORodrigue 9 ай бұрын
I love these videos. Insightful!
@a.for.arun_
@a.for.arun_ 9 ай бұрын
Loved it. Please continue.
@yuhanaatmaja
@yuhanaatmaja 9 ай бұрын
as always Xcelent Xplanation....
@Sp3cia1m4n
@Sp3cia1m4n 9 ай бұрын
wow it's an awesome idea, I always took ton of researches to understand.
@periclayton1282
@periclayton1282 9 ай бұрын
I really liked the video and I hope to see more videos like this, they are very helpful
@heli_9
@heli_9 9 ай бұрын
Amazing, more of these type of videos!
@space_0027
@space_0027 9 ай бұрын
Love this format!
@ya_Ra28
@ya_Ra28 9 ай бұрын
Nice, we want more :) Thanks mate, as always.
@TwoTeaTee
@TwoTeaTee 9 ай бұрын
One of such video which I followed start to end!
@kalinunesferreira815
@kalinunesferreira815 9 ай бұрын
I really enjoyed this format
@logicerror
@logicerror 9 ай бұрын
yes, this was both fun and useful! thanks liveoverflow
@a.k.b.a.l.
@a.k.b.a.l. 9 ай бұрын
Not even a minute of reproduction and I can say "I love this series"
@ahmedMohamed-zu2qp
@ahmedMohamed-zu2qp 8 ай бұрын
Good usage for the new Twitter logo 👏👏
@aaravsinha6610
@aaravsinha6610 9 ай бұрын
This was awesome. Lots of love.
@MrNevado
@MrNevado 9 ай бұрын
Awesome content. Make more like this, please.
@olaola-yh5ge
@olaola-yh5ge 9 ай бұрын
This is great, Insiteful as always @LiveOverflow, can this type of xss vulnerabilities be found in react applications as well ?
@KimYoungUn69
@KimYoungUn69 9 ай бұрын
Yes
@SamuelLing
@SamuelLing 9 ай бұрын
if it runs javascript, it runs
@nikensss
@nikensss 9 ай бұрын
that was amazing, thanks for the video
@lol-hz9mc
@lol-hz9mc 9 ай бұрын
That's a clean explanation!!!
@carefulwithmoney4699
@carefulwithmoney4699 9 ай бұрын
Amazing, thank you for this!
@Haapavuo
@Haapavuo 9 ай бұрын
Great video, thanks!!
@catmage
@catmage 9 ай бұрын
That's crazy creative. I'd be interested in learning how this could be mitigated. Better input sanitation?
@Th3Mag1c1an
@Th3Mag1c1an 9 ай бұрын
Thank you very much for this video
@chrysun9891
@chrysun9891 9 ай бұрын
Love this series👌
@antenna8836
@antenna8836 8 ай бұрын
The longer I watched this the more upset I became at web development that 1. they're using direct string replace and 2. they didn't properly sanitize the input but then I became legitimately impressed with the use of the javascript uri the hex encoding, and the use of objects
@sebscripts
@sebscripts 4 ай бұрын
This video started my web hacking journey, Thank you!
@abdulx01
@abdulx01 9 ай бұрын
Amazing explanation ❤
@ThaLiquidEdit
@ThaLiquidEdit 9 ай бұрын
Nice video series idea
@Roll4Combat
@Roll4Combat 9 ай бұрын
This was utterly amazing
@navibongo9354
@navibongo9354 9 ай бұрын
brilliant breakdown
@MrEpphrodont
@MrEpphrodont 9 ай бұрын
Incredible vidéo, thanks !
@r3d_r078
@r3d_r078 8 ай бұрын
This will be a great series
@shayarand
@shayarand 9 ай бұрын
I absolutely love this!!!!!! You literally read my mind but I didnt have the guts to ask.
@supergamerfr
@supergamerfr 8 ай бұрын
Most valuable piece of information I saw today
@plippero7870
@plippero7870 9 ай бұрын
Does the name trick also work in stored xss when another user doesnt set his window name to the xss-payload?
@thatcreole9913
@thatcreole9913 9 ай бұрын
More of this please!
@eckersplode
@eckersplode 9 ай бұрын
this is great, thank you
9 ай бұрын
In the 'name' case, is it really an XSS, when you need to open the window with the page in a special way?
@0xrudrapratap
@0xrudrapratap 9 ай бұрын
This was awesome!
@KaiaLoken
@KaiaLoken 9 ай бұрын
Thank you
@berndeckenfels
@berndeckenfels 9 ай бұрын
Hm does it make sense to cancel out name on top of each page (or can it CSPed?)
@daem0n1ze
@daem0n1ze 9 ай бұрын
Thank you for the information
@jasonv6303
@jasonv6303 9 ай бұрын
it is very fun and useful.
@slickis
@slickis 9 ай бұрын
great video, thank you
@memejeff
@memejeff 8 ай бұрын
Great stuff
@yassinesafraoui
@yassinesafraoui 9 ай бұрын
Please make more vids like this!
@roymoshe7822
@roymoshe7822 9 ай бұрын
A couple of questions: When does the evaluation of the parameter takes place? Right after the function call and before any part of the function takes place? Are there any possible mitigations for this kind of exploit? I mean if this code runs before anything else I don’t see any possibility of mitigations which is wild, but I might be missing something
@joechristo2
@joechristo2 9 ай бұрын
i have no idea what i’m talking about (as in the context of the video cuz i haven’t watched it) but JS might use C calling conventions in some cases i think (?) and with those, usually the parameters are passed to the function BEFORE the function gets “called” (as in the CALL assembly instruction) but it really doesn’t matter what the function “is” because it can be overrided to not even use the parameters in the first place but get called by the same name, which might be a security risk if some people don’t know what they’re doing
@roymoshe7822
@roymoshe7822 9 ай бұрын
@@joechristo2 well in the video it’s shown that parameters are evaluated pre call to the function which causes a security risk at a fundamental level since the parameter inserted may contain js code that will run before the call of the function Maybe having input checks before each function calll can be a solution but still it seems clunky and weird
@xelspeth
@xelspeth 8 ай бұрын
The assignment is evaluated before the function call. It has to because otherwise you couldn't use the return value of assignments in functions. The mitigation for this is to not have it in the first place e.g. sanitizing the userinput before placing it in the dom
@fmaximus
@fmaximus 9 ай бұрын
About using the name variable, wouldn't that only work on your window? I can't see how the xss would do something nefarious on a targets browser.
@schwingedeshaehers
@schwingedeshaehers 9 ай бұрын
You link them to your website, that redirects with the name "parameter"?
@brypleb5792
@brypleb5792 8 ай бұрын
@@schwingedeshaehers thanks i was confused
@exec_mayank
@exec_mayank 8 ай бұрын
fun and useful, thanks!
@markusjohansson4949
@markusjohansson4949 9 ай бұрын
would also work in this example
@user-tn1uk2ug7b
@user-tn1uk2ug7b 8 ай бұрын
Как же круто ты объясняешь. Плохо знаю английский, но при этом всё понял
@procrast
@procrast 9 ай бұрын
awesome!
@hurrayboy1995
@hurrayboy1995 9 ай бұрын
This was insanely interesting!
@bioblade87
@bioblade87 9 ай бұрын
the hex encoding trick is impressive too.
@sergeipetrukhin79
@sergeipetrukhin79 9 ай бұрын
awesome! Thank you!
@arkadiymel5987
@arkadiymel5987 9 ай бұрын
9:00 Concatenation is executed first and the result is a string, which cannot be assigned to. It's essentially equivalent to writing 1 = 2
@LiveOverflow
@LiveOverflow 9 ай бұрын
No, because you get a syntax error ;)
@Qbe_Root
@Qbe_Root 9 ай бұрын
@@LiveOverflow I guess nothing gets "executed" because of the syntax error, but JavaScript does know in what order to execute this: first the concatenation, then the assignment. It just so happens that the expression makes no sense using that order
@arkadiymel5987
@arkadiymel5987 9 ай бұрын
@@LiveOverflow My bad, I meant parsed, not executed. What I was trying to say is that the reason the expression in the video results in a syntax error is that the addition is treated as the left side of the assignment and is not assignable, and that it is similar to the 1 = 2 case in that regard. I looked it up in the ECMAScript documentation to try to be more precise this time and it seems that the reason it results in a syntax error is that the left side of the assignment is not a valid LeftHandSideExpression (13.3) or because of the second bullet in (13.15.1). The fun thing is that I actually tested that with " true ? 0 : (1 = 2) " before writing the comment and it did fail with a syntax error instead of executing.
@DaveyPerron
@DaveyPerron 9 ай бұрын
You should do this with John Carmack tweets!
@AlissonNunes
@AlissonNunes 8 ай бұрын
Would you be able to create an array, instead of an object?
@nincsx
@nincsx 8 ай бұрын
could you upload a video about how to learn effektively?
@hamzahajjaj4106
@hamzahajjaj4106 9 ай бұрын
Tnx teacher
@georgehammond867
@georgehammond867 9 ай бұрын
Good work 👍
@ganeshdatha8240
@ganeshdatha8240 8 ай бұрын
It feels like it's a special case of DOM Clobbering, right? We are overwriting the names/definitions of defined variables/functions with our payloads so that they get executed when the page's code calls the overwritten function without knowing it.
@dannytutor6383
@dannytutor6383 9 ай бұрын
This is awesome 😊
@12...
@12... 8 ай бұрын
you don't need to write , those tags are all optional and are inserted automatically
@sullivan3503
@sullivan3503 9 ай бұрын
Why would the input end up as ""..."" instead of "\"...\""? Why would the quotes not get automatically escaped by the input form?
@LiveOverflow
@LiveOverflow 9 ай бұрын
Why would it get automatically escaped by the input form. Or the correct question would be, why would it not get automatically escapes by PHP? Well. Because PHP doesn’t do that automatically. If you want that you need to program that
@AssemblyWizard
@AssemblyWizard 9 ай бұрын
For the first solution, what about using square brackets to define an array instead of an object? For the second solution, I believe the "new class b" part can be deleted if you replace the equals after toString with a colon. Great video!
@KirkWaiblinger
@KirkWaiblinger 9 ай бұрын
Agreed that the toString in object literal should work too.... maybe they're trying to be general as far as including the case that different characters are prohibited (for example the colon). I think your suggestion with the array gives a nice way of solving it if curly braces are prohibited too.
@avlidienbrunn
@avlidienbrunn 9 ай бұрын
@@KirkWaiblinger this! if colon is available, might as well use the first example. If it isnt, but one of many whitespace/line terminator/multiline comment characters are, we can use the second example. [location=name] is a good point!
@joechristo2
@joechristo2 9 ай бұрын
but in lua members of objects are referred to by square brackets as WELL as members of arrays because every variable is an object in lua and every variable is an object in JS
@_chris_6786
@_chris_6786 9 ай бұрын
But, is this like, preventable with input validation?
@steneostrain
@steneostrain 8 ай бұрын
very useful
@NeverGiveUpYo
@NeverGiveUpYo 9 ай бұрын
Coole Sache Alter!
@Nonomi
@Nonomi 9 ай бұрын
nice vid!
@thetrends5670
@thetrends5670 9 ай бұрын
This mean TypeScript devs won't find this vuln, as they type the func to accept only N number of args, and TS will throw runtime error if they try to use N+K args, but in build time there code will create this vuln.
@KirkWaiblinger
@KirkWaiblinger 9 ай бұрын
TS will not throw a runtime error if a function is called with extra arguments. At runtime it's just raw JS and anything goes.
@joechristo2
@joechristo2 9 ай бұрын
@@KirkWaiblingertypescript is meant to PREVENT runtime errors from even happening
@KirkWaiblinger
@KirkWaiblinger 9 ай бұрын
@@joechristo2 yeah but it can only type check intentionally authored code. TS will be no help at runtime against injected code, since that's all long after the type-checking time
@tanzeelsalfi
@tanzeelsalfi 8 ай бұрын
keep making these videos
@lancemarchetti8673
@lancemarchetti8673 9 ай бұрын
Nice!
baby_web
3:20
COZT
Рет қаралды 10
DLL Injection with CreateRemoteThread
14:00
Pavel Yosifovich
Рет қаралды 3,6 М.
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 13 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 54 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 102 МЛН
Local Root Exploit in HospitalRun Software
20:48
LiveOverflow
Рет қаралды 67 М.
The Circle of Unfixable Security Issues
22:13
LiveOverflow
Рет қаралды 111 М.
Hacking Google Cloud?
21:59
LiveOverflow
Рет қаралды 123 М.
Breaking Bitlocker - Bypassing the Windows Disk Encryption
9:11
stacksmashing
Рет қаралды 874 М.
"Please Hack My Computer"
17:50
John Hammond
Рет қаралды 1 МЛН
Attacking LLM - Prompt Injection
13:23
LiveOverflow
Рет қаралды 367 М.
Accidental LLM Backdoor - Prompt Tricks
12:07
LiveOverflow
Рет қаралды 142 М.
I Hacked & Exposed This Fake Website for Educational Purposes - CTF
11:26
I Hacked Into My Own Car
20:29
Steve Mould
Рет қаралды 2,7 МЛН
My YouTube Financials - The Future of LiveOverflow
35:00
LiveOverflow
Рет қаралды 104 М.