Running a XSS Attack + How to defend

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 137

  • @codbo2222
    @codbo2222 3 года назад +2

    The only video on youtube that was able to explain XSS well, ty

  • @eliotanderson5201
    @eliotanderson5201 4 года назад +63

    Thank you max for posting this,expecting more content about security.

  • @samms7922
    @samms7922 4 года назад +2

    Finally, You're the first one I hear that agrees with me who thinks that 3rd party packages maybe malicious!!

  • @KostasOreopoulos
    @KostasOreopoulos 4 года назад +5

    A nice addition to mitigating XSS is to use the Content-Security-Policy header which will stop any javascript from executing except that code that originates on some specific web sites.

    • @colindante5164
      @colindante5164 3 года назад

      Thankyou much for this information. ))

  • @Chim
    @Chim 4 года назад +5

    Max,
    I certianly appreciate you posting content like this. It is extremely helpful. I was not aware of the npm sanitizeHtml package which is actually extremely helpful. This also helped me identify a couple of XSS Vulnerabilities in some software I am working on which thanks to you, I have been able to resolve.
    Kudos and keep up the good work!

  • @Thilina4321
    @Thilina4321 4 года назад +25

    Thanks
    You are a great teacher (legend in JS)

  • @Crosfake
    @Crosfake 4 года назад +9

    Thanks Max. You doing a great job! Your Angular course is legendary!

  • @blueice3124
    @blueice3124 3 года назад

    Great video, if anyone's severing pages from the server with Node helmet blocks all incline code out of the box (options available to make changes).

  • @gknt7234
    @gknt7234 4 года назад +1

    Like it without thinking if it is worth. Max is here!

  • @arbaztyagi123
    @arbaztyagi123 4 года назад +2

    Thank you max. Looking for more security topics from you 🙂

  • @coded6799
    @coded6799 3 года назад +1

    Hey, are you Maximilian Schwarzmüller? I've taken all your Udemy courses, and they are the BEST! You put a lot of passion and hard work into all your videos, keep going! :)

  • @tajpouria
    @tajpouria 4 года назад +1

    Thanks Max great explanation, there is not really a complete guide over such known attacks for frontend devs out there, we highly appreciate your high quality contacts

  • @adityathaker9734
    @adityathaker9734 4 года назад

    thank you max for this video i really like your teaching style i have taken up your nodejs,mongodb,react,flutter,angular courses love your dedication, i wish to one day become as good of a developer as you are💕💕

  • @riskitall7421
    @riskitall7421 3 года назад

    Bro you’re amazing at explaining things and keep your explanations down to earth. Very good skills man 👍🏼

  • @berk473
    @berk473 2 года назад

    Finally a practical explanation and solution!! Thank you

  • @ravalravi882
    @ravalravi882 4 года назад +1

    Father of JavaScript 💛🤘🤘🤘

  • @randomtravels3439
    @randomtravels3439 4 года назад

    You are an inspiration to me.
    Like the way you explain concepts with 💯 clarity.

  • @anug4246
    @anug4246 2 года назад

    12:45 is there an audit feature in PHP libraries?

  • @davidjiang7929
    @davidjiang7929 4 года назад +1

    This is great Max, please post more contents like this!

  • @rahultirkey7950
    @rahultirkey7950 4 года назад +2

    You're my favourite instructors.

  • @vitus6644
    @vitus6644 4 года назад

    You are the best teacher in today's web dev! Are you planing to update your course to vue3 or you going to create a new one?

    • @academind
      @academind  4 года назад +1

      Thank you, I'll update the existing Vue course.

  • @ezzabuzaid
    @ezzabuzaid 4 года назад +1

    Thank you, waiting for the CSRF video!

  • @igu642
    @igu642 2 года назад +1

    Awesome class really helpfull

  • @khaledmahfoz8356
    @khaledmahfoz8356 4 года назад +1

    Great as always, please make more security videos like this one and thank you

  • @alialghamdi4028
    @alialghamdi4028 4 года назад +1

    you are amazing instructor

  • @reactive_00
    @reactive_00 4 года назад

    Thanx Maxi. Presently I m going thru your node.js complete guide, then after that will go to mongodb complete guide. I request you to make a tutorial guide on web application security and these type of attacks. You are great and wonderful.

  • @SinaGilassi
    @SinaGilassi 4 года назад +3

    Good job and very useful as always. Could you explain more about securing back-end such as an API?

    • @tyrrelldavis9919
      @tyrrelldavis9919 4 года назад

      This was the only non liked comment,
      Yet the only relevant question.
      Shows how superficial these grifters are
      If this is here then it's watered down , plain and simple.

  • @aissa.bouguern
    @aissa.bouguern 4 года назад +2

    Where is the video about cookies vs localstorage ?

  • @mohsin_sheikhani
    @mohsin_sheikhani 4 года назад +1

    Which vs code theme you are using?

  • @stevejones371
    @stevejones371 2 года назад

    This helped me earn a flag - thanks!

  • @awabelmahe9700
    @awabelmahe9700 2 года назад

    Very nice and well-explained. Thank you very much for this great video.

  • @TanayBhalani
    @TanayBhalani 3 года назад +1

    Can we also use innerContent, instead of innerHTML; to what extent will that help?

  • @gamingmessiah1133
    @gamingmessiah1133 4 года назад +6

    Wow 2 videos at once

  • @FordExplorer-rm6ew
    @FordExplorer-rm6ew 4 года назад

    Thankg u.
    9:00
    Very few code youtubers describe how to defend against these kind of things.
    People who deploy websites need dis thgx

  • @symonxd
    @symonxd 4 года назад

    i literally love your videos bro :))
    great explanation much love

  • @luis_soul1
    @luis_soul1 4 года назад +1

    Great content quality as always. Thank you, keep it up.

  • @dailymeow3283
    @dailymeow3283 3 года назад

    Some of the injection way, they link a javascript file from another site, if you activate the Adblocker you might find it in the console, how can we protect against it please

  • @cebe125er
    @cebe125er 4 года назад

    i got a popup saying xxs attack alert or something. do i have to worry?

  • @watchlistsclips3196
    @watchlistsclips3196 3 года назад

    It's great.Keep making videos like this.Can you make some live demonstration of how an attacker can change javascript and redirects a user to other website.I know how to find these vulnerabilities.But how it is called vulnerability.That's what i want to know

  • @kashyaptejani1056
    @kashyaptejani1056 4 года назад

    hello sir i got your blockchain video using python but i am having problem that i can use input() to take input of string in IDLE shel but can't take string input in terminal.pleas help sir.

  • @jovanietienne8739
    @jovanietienne8739 4 года назад +1

    Awesome as usual.

  • @josephjojo756
    @josephjojo756 4 года назад

    Thank you for the tips Max.

  • @alexanonymous5823
    @alexanonymous5823 3 года назад

    wow thanks a lot that's a really useful thing to know when building some websites=)) thanks again!

  • @piyushkesharwani1987
    @piyushkesharwani1987 4 года назад +1

    Thanks for sharing.Really helpful❤

  • @huzaifaqayyum786
    @huzaifaqayyum786 4 года назад

    Sir If we enable same site in http only cookies, you can not steal it using xss, plz guide me if m right!? nd as far as I know modern browsers encrypts header, so man in the middle attack will also fail even if http strip attack applied..

  • @luckerz2
    @luckerz2 4 года назад +2

    I Hope you can make full course about Web Apps Security and all vulnerabilites on web apps Max... i searched it yesterday on Academind's Udemy, but found none about it..

    • @academind
      @academind  4 года назад +1

      Got no plans on that at the moment, but never say never :)

  • @Youssef-lv6wp
    @Youssef-lv6wp 4 года назад +1

    Thanks u for more information sir

  • @npriyajit
    @npriyajit 4 года назад

    Thats a great one, I loved it, Can you please make videos on all types of attacks, like DDos.. etc

  • @emmyleke7049
    @emmyleke7049 3 года назад

    Xss confuses me. Will the hacker need to hijack the server first, before injecting the script?

  • @ravalravi882
    @ravalravi882 4 года назад +1

    Sir I Take your Two course from Udemy (For React and Node and Planing To The Express Course)
    You are awsome sir
    You are Life Chanager
    Love From India.

  • @shredder_plays
    @shredder_plays 4 года назад

    correct me if i am wrong prop types in react are also used for sanitizing the input right!!

  • @nikhil.dhawan
    @nikhil.dhawan 4 года назад +1

    Thanks Max ; it was helpful!!

  • @andri_sul
    @andri_sul 4 года назад

    Great explanation. Thanks for sharing!

  • @alexandros-markovits
    @alexandros-markovits 4 года назад

    That was a great video Max, thank you!

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 года назад

    Thanks for this info topics tq so much this kind of topics are very rare

  • @davidmyg7825
    @davidmyg7825 4 года назад

    I was attacked before, what are the options to defend against attack?

  • @jocelynhuang8831
    @jocelynhuang8831 4 года назад

    Brilliant!! That's really helpful, thanks a lot.

  • @deepchaudhari3474
    @deepchaudhari3474 3 года назад

    Which framework are you using for running JavaScript files here?...plz reply asap

  • @otwoc
    @otwoc 4 года назад

    Great explanation!!

  • @郑宇-k9i
    @郑宇-k9i 4 года назад

    Thanks for sharing. There are millions of malicious behaviors whiches are hard to imagine. ..

  • @PrinjuVaidyan
    @PrinjuVaidyan 4 года назад

    I like it very much please do more

  • @عبدالقادرعبدالرحمنعبدالله

    Very useful content.
    Thanks for sharing.

  • @vatsalpatel3669
    @vatsalpatel3669 4 года назад +1

    now that's what I really want to know thank you.

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 года назад

    Can u help me on hw to handle in jquery library please

  • @codingcrashkurse6429
    @codingcrashkurse6429 4 года назад

    Hey Max, in one of your courses you said that in VueJS you can store access-tokens in localstorage, since VueJS by default prevents XSS attacks. Do modern frameworks do this for me? I still struggle where and how to store the tokens (refresh and access tokens) from my Flask API. Can you or anyone else who knows this help me with this problem?

    • @juniordev4190
      @juniordev4190 4 года назад

      Yes, modern frameworks include preventive mechanism against XSS. You can store access tokens in localstorage.

  • @MrH4X0RZZ
    @MrH4X0RZZ 4 года назад +1

    Interesting video. Thanks you

  • @DiimaPopov
    @DiimaPopov 3 года назад

    amazing. always quality

  • @sgtalexxx
    @sgtalexxx 4 года назад +1

    Please make a video about CSRF

  • @CathalMacDonnacha
    @CathalMacDonnacha 3 года назад

    Great video. In the real world, would there ever be a situation where a script tag is not surrounded by HTML? For example in your todos example it's surrounded by a tag so the script won't run, on a blogging website you could add a script tag to a comment but most of those would be rendered with a or element as well, so in what scenario would it actually run?

  • @gunjankothari4257
    @gunjankothari4257 4 года назад

    I shared the post securely.

  • @safwenronaldo
    @safwenronaldo 4 года назад

    that's why enterprises use Angular because it doesn't depend or need any third party packages unlike React and Vue, when u use angular u get full core features for building a high performance web app, from creating UI and manipulating the DOM, to the routing, state management (using observables and services or ngrx) to handling and validating forms and sending http requests and a lot of other feature like translation/internationalization etc... using angular is like using a platform for creating a large web app (or even mobile with ionic), imagine migrating your app which contains a lot of third party packages and one of them contains a malicious code or it breaks or something, this will break the whole app, so relying on third party packages in insecure specially for enterprise solutions, that's why i think Angular is the best frontend framework for enterprises.

  • @freevoice8099
    @freevoice8099 4 года назад

    You are a great person 😊 bro

  • @gullukumar4497
    @gullukumar4497 3 года назад

    Max,any plan on web security topics ?

  • @adammorait7429
    @adammorait7429 4 года назад

    Thanks for sharing your knowledge

  • @neobayjan3894
    @neobayjan3894 4 года назад

    Great content, please consider making Ethical Hacking and Cybersecurity course!

  • @Mohit-il9gx
    @Mohit-il9gx 4 года назад

    2020 react vs flutter which one should be learned in this lockdown for future (1-1.5 years to apply for job)

  • @semralxdrov220
    @semralxdrov220 3 года назад

    Thank you for content.

  • @shubhammapara4181
    @shubhammapara4181 4 года назад

    Hey Max, can you suggest some tools to detect these types of attacks.

  • @saidkamolanvarkhujaev1048
    @saidkamolanvarkhujaev1048 4 года назад +1

    Hi Max. I bought monthly subscription , and now I would ask you "Can I and my friend watch your courses from different devices using this same account simultaniously or this is not the case?"

  • @samisbgh6253
    @samisbgh6253 4 года назад

    Its too important vedio !! ❤

  • @abhijith4252
    @abhijith4252 4 года назад +3

    That's why we have to add toString() to every text field

  • @yuliyacher67
    @yuliyacher67 3 года назад

    Thank you!

  • @vaibhavsarode2426
    @vaibhavsarode2426 4 года назад

    Thank you so much for the video

  • @Di-il4
    @Di-il4 4 года назад

    Is there a way to get the Academind pro membership without a credit card? I'd love to become a pro member but I really don't like credit cards😅

    • @academind
      @academind  4 года назад

      Sorry but this is not possible at the moment.

  • @dharmang
    @dharmang 4 года назад +2

    Really informative!
    But isn't this easily solved by placeholders and htmlentities?

  • @uniontic
    @uniontic 4 года назад +1

    Thanks techer

  • @TheillegalPrime
    @TheillegalPrime 3 года назад

    Dude you r god

  • @balajiv7328
    @balajiv7328 4 года назад

    Can you please do a sperate video on web application security in detail

  • @Hotatoes
    @Hotatoes 4 года назад

    wow awesome hints :D

  • @EricOnYouTube
    @EricOnYouTube 4 года назад

    I really wish you did a course on Kubernetes.

  • @Chrosam
    @Chrosam 4 года назад +3

    That made me self conscious about all the open tabs I have..

  • @rakeshpk4991
    @rakeshpk4991 3 года назад

    If you are doing something serious, subscribe to this channel. Worth to be mentioned.

  • @lodrickthomas5230
    @lodrickthomas5230 4 года назад

    Can csrf token do the trick?

  • @mdsajaldeowan1054
    @mdsajaldeowan1054 4 года назад +1

    Thanks

  • @babatundeololade6765
    @babatundeololade6765 4 года назад

    Thanks boss.

  • @hazartilirot1014
    @hazartilirot1014 4 года назад

    Is the video a part of a course or is it just an enticing video?

    • @academind
      @academind  4 года назад

      It's just a single video.

  • @depurandocodigo9336
    @depurandocodigo9336 2 года назад

    Cool 🔥

  • @Youssef-lv6wp
    @Youssef-lv6wp 4 года назад

    Xss attack in innerHTML : dev.to/caffiendkitten/innerhtml-cross-site-scripting-agc

  • @MERNStack
    @MERNStack 4 года назад

    yes, we really need to be careful of this innerHTML, as the book Javascript and JQuery by John Duckett has already told multiple times not to use it. Really a mind opener. Frameworks like react does really a great job for securing things.

  • @JasonJA88
    @JasonJA88 4 года назад +1

    I can just do a quick run through of user data and change all " ' / { [ ... etc. to special characters in HTML.