Running a XSS Attack + How to defend

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 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.

  • @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. ))

  • @samms7922
    @samms7922 4 роки тому +2

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

  • @Thilina4321
    @Thilina4321 4 роки тому +25

    Thanks
    You are a great teacher (legend in JS)

  • @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!

  • @gknt7234
    @gknt7234 4 роки тому +1

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

  • @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).

  • @rahultirkey7950
    @rahultirkey7950 4 роки тому +2

    You're my favourite instructors.

  • @berk473
    @berk473 2 роки тому

    Finally a practical explanation and solution!! Thank you

  • @arbaztyagi123
    @arbaztyagi123 4 роки тому +2

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

  • @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

  • @ravalravi882
    @ravalravi882 4 роки тому +1

    Father of JavaScript 💛🤘🤘🤘

  • @davidjiang7929
    @davidjiang7929 4 роки тому +1

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

  • @riskitall7421
    @riskitall7421 2 роки тому

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

  • @gamingmessiah1133
    @gamingmessiah1133 4 роки тому +6

    Wow 2 videos at once

  • @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! :)

  • @ezzabuzaid
    @ezzabuzaid 4 роки тому +1

    Thank you, waiting for the CSRF video!

  • @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💕💕

  • @randomtravels3439
    @randomtravels3439 4 роки тому

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

  • @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

  • @anug4246
    @anug4246 2 роки тому

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

  • @stevejones371
    @stevejones371 2 роки тому

    This helped me earn a flag - thanks!

  • @igu642
    @igu642 2 роки тому +1

    Awesome class really helpfull

  • @mohsin_sheikhani
    @mohsin_sheikhani 4 роки тому +1

    Which vs code theme you are using?

  • @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.

  • @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.

  • @safwenronaldo
    @safwenronaldo 3 роки тому

    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.

  • @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.

  • @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 :)

  • @luis_soul1
    @luis_soul1 4 роки тому +1

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

  • @郑宇-k9i
    @郑宇-k9i 4 роки тому

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

  • @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.

  • @awabelmahe9700
    @awabelmahe9700 2 роки тому

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

  • @aissa.bouguern
    @aissa.bouguern 4 роки тому +2

    Where is the video about cookies vs localstorage ?

  • @symonxd
    @symonxd 4 роки тому

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

  • @TanayBhalani
    @TanayBhalani 3 роки тому +1

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

  • @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

  • @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

  • @abhijith4252
    @abhijith4252 4 роки тому +3

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

  • @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

  • @Chrosam
    @Chrosam 4 роки тому +3

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

  • @cebe125er
    @cebe125er 4 роки тому

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

  • @vatsalpatel3669
    @vatsalpatel3669 4 роки тому +1

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

  • @josephjojo756
    @josephjojo756 4 роки тому

    Thank you for the tips Max.

  • @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?"

  • @alexandros-markovits
    @alexandros-markovits 4 роки тому

    That was a great video Max, thank you!

  • @rakeshpk4991
    @rakeshpk4991 3 роки тому

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

  • @npriyajit
    @npriyajit 4 роки тому

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

  • @dharmang
    @dharmang 4 роки тому +2

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

  • @piyushkesharwani1987
    @piyushkesharwani1987 4 роки тому +1

    Thanks for sharing.Really helpful❤

  • @nikhil.dhawan
    @nikhil.dhawan 4 роки тому +1

    Thanks Max ; it was helpful!!

  • @andri_sul
    @andri_sul 4 роки тому

    Great explanation. Thanks for sharing!

  • @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.

  • @Youssef-lv6wp
    @Youssef-lv6wp 4 роки тому +1

    Thanks u for more information sir

  • @alexanonymous5823
    @alexanonymous5823 3 роки тому

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

  • @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..

  • @emmyleke7049
    @emmyleke7049 3 роки тому

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

  • @deepchaudhari3474
    @deepchaudhari3474 3 роки тому

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

  • @jocelynhuang8831
    @jocelynhuang8831 4 роки тому

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

  • @gullukumar4497
    @gullukumar4497 3 роки тому

    Max,any plan on web security topics ?

  • @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.

  • @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?

  • @sgtalexxx
    @sgtalexxx 4 роки тому +1

    Please make a video about CSRF

  • @shredder_plays
    @shredder_plays 4 роки тому

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

  • @shubhammapara4181
    @shubhammapara4181 4 роки тому

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

  • @jovanietienne8739
    @jovanietienne8739 4 роки тому +1

    Awesome as usual.

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 роки тому

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

  • @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)

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

    Very useful content.
    Thanks for sharing.

  • @neobayjan3894
    @neobayjan3894 4 роки тому

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

  • @gunjankothari4257
    @gunjankothari4257 4 роки тому

    I shared the post securely.

  • @adammorait7429
    @adammorait7429 4 роки тому

    Thanks for sharing your knowledge

  • @davidmyg7825
    @davidmyg7825 4 роки тому

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

  • @PrinjuVaidyan
    @PrinjuVaidyan 4 роки тому

    I like it very much please do more

  • @EricOnYouTube
    @EricOnYouTube 4 роки тому

    I really wish you did a course on Kubernetes.

  • @MrH4X0RZZ
    @MrH4X0RZZ 4 роки тому +1

    Interesting video. Thanks you

  • @otwoc
    @otwoc 4 роки тому

    Great explanation!!

  • @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.

  • @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.

  • @freevoice8099
    @freevoice8099 4 роки тому

    You are a great person 😊 bro

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 роки тому

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

  • @balajiv7328
    @balajiv7328 4 роки тому

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

  • @vaibhavsarode2426
    @vaibhavsarode2426 4 роки тому

    Thank you so much for the video

  • @semralxdrov220
    @semralxdrov220 3 роки тому

    Thank you for content.

  • @uniontic
    @uniontic 4 роки тому +1

    Thanks techer

  • @Youssef-lv6wp
    @Youssef-lv6wp 4 роки тому

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

  • @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.

  • @JasonJA88
    @JasonJA88 4 роки тому +1

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

  • @yuliyacher67
    @yuliyacher67 3 роки тому

    Thank you!

  • @vasiovasio
    @vasiovasio 4 роки тому

    PHP. htmlspecialchars(). That's it.

  • @DiimaPopov
    @DiimaPopov 3 роки тому

    amazing. always quality

  • @samisbgh6253
    @samisbgh6253 4 роки тому

    Its too important vedio !! ❤

  • @mdsajaldeowan1054
    @mdsajaldeowan1054 4 роки тому +1

    Thanks

  • @TheillegalPrime
    @TheillegalPrime 3 роки тому

    Dude you r god

  • @RC568
    @RC568 3 роки тому +1

    My friend found one for my school testing site lmaooo

  • @roglick9154
    @roglick9154 3 роки тому +1

    alert("Thanks!");

  • @lodrickthomas5230
    @lodrickthomas5230 4 роки тому

    Can csrf token do the trick?