DO NOT USE alert(1) for XSS

  Рет қаралды 166,338

LiveOverflow

LiveOverflow

Күн бұрын

Пікірлер: 252
@mattp12
@mattp12 3 жыл бұрын
ok fine I’ll use alert(2)
@user-zu6ts5fb6g
@user-zu6ts5fb6g 3 жыл бұрын
based
@magicmulder
@magicmulder 3 жыл бұрын
alert(0.5+0.5);
@1Hippo
@1Hippo 3 жыл бұрын
alert(Math.PI)
@FUTUREPES
@FUTUREPES 3 жыл бұрын
😂
@goodrun88
@goodrun88 3 жыл бұрын
console.log(1-alert(1)) or eval(alert(1))
@nk2ishere
@nk2ishere 3 жыл бұрын
It would have been funny for google to really alert 1 when you input alert(1) into search box
@ThomasOrlita
@ThomasOrlita 3 жыл бұрын
I think they did something like that once on the Bughunter page.
@2das
@2das 3 жыл бұрын
Oh no, hell no, it would not. Imagine all the amateur bug hunters who then spam their reports to the google bug bounty XD
@wrng-i9f
@wrng-i9f 3 жыл бұрын
@FBI Federal Bureau of Investigation Then they would pretty much ignore every XSS reports, sorry FBI.
@2das
@2das 3 жыл бұрын
@LastName Almaember you better ignore my browsing history
@1e1001
@1e1001 3 жыл бұрын
@@wrng-i9f well they can state that you have to use alert(document.domain) and just ignore all alert(1) ones or whatever
@whydoineedausername1386
@whydoineedausername1386 3 жыл бұрын
"Look into the chrome developer tools" *Opens firefox*
@dertythegrower
@dertythegrower 3 жыл бұрын
Yeah.. it calling home every time I open the browser.. yeah, no go for me. Also lack of script-viewing tools on chrome compared to firefox... mm, minimal.
@nicoper
@nicoper 3 жыл бұрын
Since this video is seemingly paid for by google, it's not strange that it contains some advertisement for Chrome.
@vaisakh_km
@vaisakh_km 3 жыл бұрын
"In a browser, the chrome is any visible aspect of a browser aside from the webpages themselves (e.g., toolbars, menu bar, tabs)." - so technically dev tools is a chrome (Not google chrome , it's just a name of a browser which they stollen)
@sebastianelytron8450
@sebastianelytron8450 3 жыл бұрын
@@vaisakh_km ^^ Can somebody verify that? I've literally never heard it before and information online on it is scarce. Is this really a technical term?
@vaisakh_km
@vaisakh_km 3 жыл бұрын
@@sebastianelytron8450 I also came to know about this from one of his own videos...."sandbox escape in Firefox" or something like that..... Checkout that video
@charlesfries
@charlesfries 3 жыл бұрын
This channel has taught me so much
@DawnnDusk-k4n
@DawnnDusk-k4n 3 жыл бұрын
This guy precisely
@tytangameplay3118
@tytangameplay3118 3 жыл бұрын
This channel got me a detention ;-;
@DeadDad1
@DeadDad1 3 жыл бұрын
Same! I absolutely love way he explains things!
@cedricvillani8502
@cedricvillani8502 3 жыл бұрын
You want his bounty all over your chin
@tytangameplay3118
@tytangameplay3118 3 жыл бұрын
@@LethalSwizzle found xss and other vulnerabilities in school website, and apparently I violated some policy
@TheMAZZTer
@TheMAZZTer 3 жыл бұрын
Funny thing is you're using a browser that shows the origin in the alert box regardless of message, so alert(1) is fine in those browsers. Though you do show the edge case where there is no origin (eg it's blank) the alert box title is different, so it's worth keeping that edge case in mind.
@dasten123
@dasten123 3 жыл бұрын
I though so too, but look at this case 7:30 it just says "An embedded page on this page says"
@_DeProgrammer
@_DeProgrammer 3 жыл бұрын
The browser may show the origin in the alert but I think you're missing the point. It's not a bug. Using alert(1) would render a false positive and it would be better to use something other than alert(1) that shows an actual xss on the origin.
@4.0.4
@4.0.4 3 жыл бұрын
The reason we use alert is because of old browsers that didn't have such nice consoles. It was the easiest way to see something on screen. In fact I remember an old Microsoft site where I got a debug alert when I pressed some combination of buttons (by chance).
@hikari_no_yume
@hikari_no_yume 3 жыл бұрын
Why is there an “advertisement” mark at the top-right, and a mention of sponsorship by Google in the subtitles, but not in the video itself?
@jaralara6429
@jaralara6429 3 жыл бұрын
Maybe this whole video is an ad from Google telling us to stop with the alert(1) reports 😂😂😂
@uttiya10
@uttiya10 3 жыл бұрын
I guess the “paid promotion” message at the beginning might be enough?
@violetwtf
@violetwtf 3 жыл бұрын
yeah this seems so sketchy
@luphoria
@luphoria 3 жыл бұрын
@@violetwtf not really.. the video is an ad
@unicodefox
@unicodefox 3 жыл бұрын
I think it was originally going to be that, then at the last moment he edited it out. The video is also low quality, almost as if he quickly downloaded it, edited and reuploaded
@GiveAcademy
@GiveAcademy 3 жыл бұрын
in the past, my reason for using alert was because it took the least amount of characters, where many forms that were being tested had character limits. also most things would check for eval specifically, however alert was often forgotten... hehe
@IsAMank
@IsAMank 3 жыл бұрын
Huh, never considered the bug bounty angle. From my experience with clients, issues in the components of a client's application were still very valid, and would often prompt further discussion and remediation across org boundaries, which I see as the ideal outcome. Good practice for XSS checks nonetheless, great video!
@kissinger2867
@kissinger2867 3 жыл бұрын
The more I watch you the more I find something new, interesting and worth my time. Thank you very much.
@thapr0digy
@thapr0digy 3 жыл бұрын
When you said Google at 6:37, you triggered my Google assistant. Too bad it interrupts the video otherwise you could open malicious web sites on the users behalf
@yashrathi6862
@yashrathi6862 3 жыл бұрын
Actually might, be a nice idea lol, but don't you have your voice recognition setup?
@user-ko7oo2qg1g
@user-ko7oo2qg1g 3 жыл бұрын
One of those rare videos by you about which I can say that I knew most of the things you mentioned. But still, a great one as always! 👍
@JPlexer
@JPlexer 3 жыл бұрын
How do some people say "Good Video" or "Amazing Explanation"? The Video literally just released
@reastle1307
@reastle1307 3 жыл бұрын
they fake it
@byekou
@byekou 3 жыл бұрын
gotta earn the likes
@LiveOverflow
@LiveOverflow 3 жыл бұрын
it's always true for my videos 🙃
@GamingBlake2002
@GamingBlake2002 3 жыл бұрын
*cough cough* cyberchiranjit *cough cough*
@JPlexer
@JPlexer 3 жыл бұрын
@@LiveOverflow well yes, but actually yes
@OdinRu1es
@OdinRu1es 3 жыл бұрын
Don’t use for security reasons. Uses for security reasons.
@jackharbor3347
@jackharbor3347 3 жыл бұрын
Why we shouldn't use for security reasons?
@JustPlayerDE
@JustPlayerDE 3 жыл бұрын
@@jackharbor3347 back in the past s where bad, now they are good i guess
@1Hippo
@1Hippo 3 жыл бұрын
Chrome and Firefox both always display the origin domain in the alert, shown in the video for example at 3:41. I don't see the point of writing such a unnecessarily long payload, the video title seems a bit much clickbait, otherwise good explanation tho. alert(1) is still fine. btw: Opera and Vivaldi do it too, I guess all chromium based browsers.
@SolomonUcko
@SolomonUcko 3 жыл бұрын
It looks like inside s, at least browsers just say "an embedded page" rather than the actual domain or origin of the .
@dasten123
@dasten123 3 жыл бұрын
See 7:30
@1Hippo
@1Hippo 3 жыл бұрын
@@SolomonUcko They report the actual domain if it is set, blogger uses an too, see 4:26. In his selfmade example src is just not set, so it falls back to the generic message.
@1Hippo
@1Hippo 3 жыл бұрын
@@dasten123 See 7:45, in any case you get basically the same info.
@menkiguo7805
@menkiguo7805 3 жыл бұрын
I was working for a website and their filter of XSS has alert(1) in it
@thomascodes
@thomascodes 3 жыл бұрын
Different WAF'S Have diffrent responses to payloads some times destructuring the payload may work throw[onerror]=[alert],1
@mekb-the
@mekb-the 3 жыл бұрын
seems you accidentally left advertisements watermark in the top right corner for the video lol
@gurglemurgle5
@gurglemurgle5 3 жыл бұрын
The vid might be sponsored by Google
@Test123747
@Test123747 3 жыл бұрын
saw a few german youtuber doing this for legal reasons. Otherwise competitors will assume you are breaking a law if some products are highlighted in the videos, even if there is no sponsorship. They will ask for money and for you to stop doing this in the feature (with some legal document ). In return those youtuber then have to explain that there is no sponsorship and might even need the assistance of a lawyer. If it was sponsored he probably has to pay money to the competitor. So they just place a advertisement note on every single video to just not having to deal with that kind of bullshit.
@bernhardschmidt9844
@bernhardschmidt9844 3 жыл бұрын
I mean, he does link to Googles new bug hunter University thing in the description and he does talk about how to do stuff in regards to google products throughout the video, so it being sponsored in some way isn't too far fetched. That said, it's weird he doesn't explicitly mention it anywhere...
@lilyliao9521
@lilyliao9521 3 жыл бұрын
@@Test123747 interesting
@arivanhouten6343
@arivanhouten6343 3 жыл бұрын
Finally another masterpiece!
@zaphooxx8779
@zaphooxx8779 3 жыл бұрын
Very good , valuable and helpful information you are providing here. Thanks !
@devprogramming
@devprogramming 2 жыл бұрын
Use print() instead of alert() because browsers are disabling the alert() for cross-domain s.
@Jimmy1985
@Jimmy1985 3 жыл бұрын
But can i still deploy malware on the client machine via this xss? A bEEF hook could hook into the browser of the client. I would not call any xss a safe xss but i guess it is out of scope.
@chiranjit9529
@chiranjit9529 3 жыл бұрын
Amazing explanation
@piyh3962
@piyh3962 3 жыл бұрын
This taught me more about XSS than any other video I've seen so far.
@marcoschincaglia
@marcoschincaglia 3 жыл бұрын
ok, I had to interrupt my lazy Saturday afternoon to actually learn something useful
@scou1yy
@scou1yy 3 жыл бұрын
Imagine getting a pop-up saying "2", that would be threatening
@elessandro39
@elessandro39 3 жыл бұрын
Your channel is pure gold. Thank you
@asdfghyter
@asdfghyter 3 жыл бұрын
Is there any practical difference between document.domain and window.origin for these purposes?
@sharemarket1971
@sharemarket1971 3 жыл бұрын
I'm new in bug hunting... I understand nothing but I watched this video
@paprika5487
@paprika5487 3 жыл бұрын
Thank you! This is good to bear in mind in future testing!
@h4ckv157
@h4ckv157 3 жыл бұрын
All your videos are my favorite. 💎 I really appreciate this one too 🙏
@realjameskii
@realjameskii 3 жыл бұрын
Ok thanks, ill use alert(2) instead
@4ag2
@4ag2 3 жыл бұрын
Very well explained! Thanks 👍
@TheJDebski
@TheJDebski 3 жыл бұрын
Thanks so much. You're doing great work. I would love more hunting videos. Very interesting
@michaeldouglas1052
@michaeldouglas1052 2 жыл бұрын
Very precious and important tips, thank you!
@aldison5070
@aldison5070 3 жыл бұрын
We use eval()
@seclilc
@seclilc 3 жыл бұрын
Great video as always
@dasten123
@dasten123 3 жыл бұрын
This is interesting! Cool video man!
@HacknMate
@HacknMate 3 жыл бұрын
For Pentesting you use alert(1) because you need to document everything that is vulnerable on a blackbox webapp. For bug bounty, however this will not work because of 'impact'.
@coldplay5467
@coldplay5467 3 жыл бұрын
Not unless the organization’s webapp you’re pentesting is purposely allowing scripts to be executed by the end-users.
@HacknMate
@HacknMate 3 жыл бұрын
@@coldplay5467 that would be an isolated case. I'm talking in general.
@soroushhd2408
@soroushhd2408 3 жыл бұрын
man I believe in it I got a xss from an imortant web site thats belong to a very important organization that was pentested for 3 times 🤣🤣🤣
@156785543
@156785543 3 жыл бұрын
Excuse me my ignorance. What is the most dangerous thing you can do with that kind of attack? (xss) in Real life. I mean if I found a xss vuln the hacker just could catch my token/credentials by fishing? Or there is a other most power full attack. Excelente video and cheers from Argentina!
@10oneluv10
@10oneluv10 2 жыл бұрын
GREAT VIDEO! I never knew any of this.
@soonpeace9938
@soonpeace9938 3 жыл бұрын
Very Informative.............Keep it up
@sql7002
@sql7002 3 жыл бұрын
As usual 🔥🔥🔥🔥👌
@drahoxx3076
@drahoxx3076 3 жыл бұрын
Why is there an "advertisement" message in the top right corner ? Is it just a mistake ? Anyway, very instructive video ! (Like the others!)
@tercmd
@tercmd Жыл бұрын
It's because Google paid him to produce this for Bug Hunter University and he thought it to be a good video, so he published here.
@medpro5612
@medpro5612 3 жыл бұрын
Can I use alert(1337) ?
@rupesholee
@rupesholee 3 жыл бұрын
why not
@DiThi
@DiThi 3 жыл бұрын
Are web workers another way of sandboxing potentially unsafe code?
@pixelorange9651
@pixelorange9651 3 жыл бұрын
Thank you for your suggestions on XSS! Your video is very good, so I want to translate it and share it on the Chinese video website (bilibili) in my free time. I will keep the introduction and title of your video consistent and declare the author, and I will not get any profit from it. Do you agree with this matter?
@MrItrollaround
@MrItrollaround 3 жыл бұрын
Wait, so I'm not allowed to name my Skyrim player this anymore? Darn.
@anthonation
@anthonation 3 жыл бұрын
Thank you so much 🙌🏻
@starkline3962
@starkline3962 3 жыл бұрын
which video editing tool you use to edit video
@hawk__
@hawk__ 3 жыл бұрын
Very Beautiful Explanation :)
@Seedhi-Baat
@Seedhi-Baat 3 жыл бұрын
Very nice observation! keep it up!
@krlst.5977
@krlst.5977 3 жыл бұрын
That was great, very interesting video. Thank you
@Hackerone1444
@Hackerone1444 Жыл бұрын
print(5)
@omri9325
@omri9325 3 жыл бұрын
Is this a new video-file format? the quality looks too compressed :|
@shaswatmjha
@shaswatmjha 2 жыл бұрын
Is it self or reflected XSS if I modify the response in BURP and it shows alert, but doesnt show in URL?
@LiveOverflow
@LiveOverflow 2 жыл бұрын
Neither ;) it’s nothing ;)
@shaswatmjha
@shaswatmjha 2 жыл бұрын
@@LiveOverflow
@ceilidhDwy
@ceilidhDwy 3 жыл бұрын
Why is it marked as a sponsored video? Did google sponsor this one?
@tercmd
@tercmd Жыл бұрын
They paid for it to be created and he thought it to be a good video, so he published it on LiveOverflow
@fairchild9able
@fairchild9able 3 жыл бұрын
Really nice clip. Thank you
@Lantalia
@Lantalia 3 жыл бұрын
We use alert because it predates chrome, firebug, and most useful 'consoles'
@dclxviclan
@dclxviclan 2 жыл бұрын
Cool, nice tut
@HackoMedia404
@HackoMedia404 2 жыл бұрын
Very informative video
@rafaeldacosta8581
@rafaeldacosta8581 2 жыл бұрын
destroying kids dreams under 12 minutes huahuahuahuahuahua
@mindreader3947
@mindreader3947 3 жыл бұрын
wonderful video Thanks @liveoverflow
@TianyuQi
@TianyuQi 3 жыл бұрын
me, who uses alert(): intensive sweating
@Baeyk
@Baeyk 2 жыл бұрын
I love this guy
@arenaesports2580
@arenaesports2580 3 жыл бұрын
For Chrome we can use print now
@danhorus
@danhorus 3 жыл бұрын
I use console.log or console.trace :)
@mekb-the
@mekb-the 3 жыл бұрын
dark mode intro pog
@randomguy3784
@randomguy3784 3 жыл бұрын
Superb video👌
@thejswaroop5230
@thejswaroop5230 3 жыл бұрын
Bro i have a suggestion.... can u please put a video on PEGASUS spyware...like I'm genuinely confused what is it and why news channels are milking it so much....is it a thing to be afraid of? I would love to see your perspective on this.... If not here maybe atleast in your other channel liveunderflow pls....?
@KickoffCentral24
@KickoffCentral24 3 жыл бұрын
I need help in APDU setup
@ZelenoJabko
@ZelenoJabko 3 жыл бұрын
Not all browsers support sandboxed s. Those browsers are vulnerable.
@ThePizzabrothersGaming
@ThePizzabrothersGaming 3 жыл бұрын
which one doesn't, internet explorer? thats EoL
@ZelenoJabko
@ZelenoJabko 3 жыл бұрын
@@ThePizzabrothersGaming your mom doesn't
@muha0644
@muha0644 3 жыл бұрын
You make your videos really well. Amazing script, you speak clearly and enthusiastically, and you make cool graphics that are easy to understand and look nice in general, etc... The only thing I can complain about is that your IRL background looks kinda scary, like you are about to make an apology video or a documentary. It's not really a complaint but I though you could use the feedback. If you still have the breadboard pc you could make a counter and hang it in the background...or add some shelves or something. Unless you like the empty backdrop in which case ignore what I just said. Keep up the good work!
@isvladxxe
@isvladxxe 3 жыл бұрын
is this a recipe how to make user js safe?
@Epinardscaramel
@Epinardscaramel 3 жыл бұрын
5:02 Sorry Flash, f.
@b391i
@b391i 3 жыл бұрын
alert("You Are The Best")
@gradientO
@gradientO 3 жыл бұрын
alert(1)
@spv420
@spv420 3 жыл бұрын
I just realized I wasn’t subscribed. I fixed that.
@mualifulmizan9066
@mualifulmizan9066 3 жыл бұрын
Nice this video
@Quget
@Quget 3 жыл бұрын
4:22 But you are using the much better browser.... Firefox!
@lmaoroflcopter
@lmaoroflcopter 3 жыл бұрын
Use prompt(2) ?? :D
@velho6298
@velho6298 3 жыл бұрын
Advertisement, nice touch.
@b33bo93
@b33bo93 3 жыл бұрын
Why doesn't html just ignore scripts from the body?
@lmaoroflcopter
@lmaoroflcopter 3 жыл бұрын
📎 Hi it looks like you're trying to use a CSP?
@charlie5tanley
@charlie5tanley 2 жыл бұрын
thank you thank you....
@ThePowerRanger
@ThePowerRanger 3 жыл бұрын
Very interesting.
@thesheep6248
@thesheep6248 3 жыл бұрын
great info
@mrspy8972
@mrspy8972 3 жыл бұрын
Make a video on Pegasus Too..
@prawnstarrr
@prawnstarrr 3 жыл бұрын
alert("xss") -- a classic
@AntiWanted
@AntiWanted 3 жыл бұрын
Nice 👍
@ThatGuy-bx3pv
@ThatGuy-bx3pv 3 жыл бұрын
KZbin recommend me this and I don't understand a thing. Why youtube? Why?
@w3w3w3
@w3w3w3 3 жыл бұрын
damm super interesting :)
@iooosef6006
@iooosef6006 3 жыл бұрын
Good thing I use alert(2)
@IudiciumInfernalum
@IudiciumInfernalum 3 жыл бұрын
I generally just `alert(%27MyHandle%27)`
@Jason-uv5tm
@Jason-uv5tm 3 жыл бұрын
very cool
@Agilato
@Agilato 3 жыл бұрын
Please, work on you over all sound volume, each time i watch your channel have to wear a headset cus volume is too low compare to other channels. Thanks for your work!
@iicloudbob8793
@iicloudbob8793 3 жыл бұрын
Please try reverse engineering Synapse X. It will be a challenge for you
@bibelwalker
@bibelwalker 3 жыл бұрын
Michael Cera's cooler, more extraverted brother
@neilthomas5026
@neilthomas5026 3 жыл бұрын
Gold
@me-ashacker233
@me-ashacker233 3 жыл бұрын
Sir plese re upload how real hacking viedo sir you removed that viedo
@nameless_9504
@nameless_9504 3 жыл бұрын
And one more I have a came across a xss. But they aren't storing any information about user in cookies or localstorage. They are using completely stateless JSON web tokens and refresh token. When we are in certain endpoint then it will assign a in cookie using JWT. Best example using ( KEYCLOAK ). So I hosted a FORM to prove a attack possible in the domain.
Script Gadgets! Google Docs XSS Vulnerability Walkthrough
18:57
LiveOverflow
Рет қаралды 142 М.
What is a Browser Security Sandbox?! (Learn to Hack Firefox)
18:06
LiveOverflow
Рет қаралды 144 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 13 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 7 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 26 МЛН
The Origin of Cross-Site Scripting (XSS) - Hacker Etymology
14:21
LiveOverflow
Рет қаралды 50 М.
Cracking Websites with Cross Site Scripting - Computerphile
8:34
Computerphile
Рет қаралды 1,5 МЛН
Generic HTML Sanitizer Bypass Investigation
14:05
LiveOverflow
Рет қаралды 141 М.
Authentication Bypass Using Root Array
13:24
LiveOverflow
Рет қаралды 126 М.
Cross-Site Scripting (XSS) Explained
11:27
PwnFunction
Рет қаралды 459 М.
Trying to Find a Bug in WordPress
18:07
LiveOverflow
Рет қаралды 92 М.
Hacker Tweets Explained
13:47
LiveOverflow
Рет қаралды 160 М.
Bug Hunting is easy if you KNOW this
8:23
Bug Hunter Labs
Рет қаралды 34 М.
HOW FRCKN' HARD IS IT TO UNDERSTAND A URL?! - uXSS CVE-2018-6128
15:47
GoogleCTF - Cross-Site Scripting "Pasteurize"
29:21
John Hammond
Рет қаралды 97 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 13 МЛН