How web applications are secured

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 82

  • @alex-ca-p3i
    @alex-ca-p3i 2 місяці тому +88

    sent this video to marc lou

    • @animeverse5912
      @animeverse5912 2 місяці тому +2

      lmao

    • @preetjariwala9300
      @preetjariwala9300 2 місяці тому

      lol he's probably watching this rn

    • @WebDevCody
      @WebDevCody  2 місяці тому +21

      Y’all are naughty

    • @comosaycomosah
      @comosaycomosah 2 місяці тому

      @@preetjariwala9300 seething at the comments preparing his block button while searching out bros name on x

    • @felixallistar
      @felixallistar 23 дні тому

      omg i scrolled to comments to say this and i got beat

  • @danielocampo543
    @danielocampo543 2 місяці тому +22

    I learned more from this than 5 security videos, please do more like this !!!!!

  • @HarisMuneer26
    @HarisMuneer26 2 місяці тому +4

    Really did a great job with this video. It really provides all the necessary details needed for a web dev security. I remember going through hundreds of videos just to learn these points individually.

  • @Jeanpierrec19
    @Jeanpierrec19 2 місяці тому +5

    I can sometimes be critical of your videos ( I watch them anyway ) but this one I can say is 100% spot on and amazingly presented.

  • @QtheCoder
    @QtheCoder 2 місяці тому +16

    Yep, theae are the kinds of videos that kept me on your channel. 👍

    • @QtheCoder
      @QtheCoder 2 місяці тому

      The diagram walk-through then a code session would be golden

  • @mryasinize
    @mryasinize 2 місяці тому +5

    I really like this man for making such content for us beginners. Really helps to understand important concepts at a high level. Please bring more content like this one 👍

  • @SeibertSwirl
    @SeibertSwirl 2 місяці тому +48

    Good job babe!!!!! Woot woot beginners crew check in here 🎉

    • @juliopolo7216
      @juliopolo7216 2 місяці тому +5

      Love how supportive you are!

    • @kazmi401
      @kazmi401 2 місяці тому

      Marc lou was first one on this. not you

    • @dreamsachiever212
      @dreamsachiever212 2 місяці тому

      @@kazmi401 underrated comment 4sure

    • @SeibertSwirl
      @SeibertSwirl 2 місяці тому

      @@kazmi401 huh?

  • @dreamsachiever212
    @dreamsachiever212 2 місяці тому +6

    golden content. Easy to do when using separate backend as nest.js

  • @pranjalagnihotri6072
    @pranjalagnihotri6072 Місяць тому

    If you have an app a good idea is to add SSL Pinning to it really helps a ton if user/hacker wants to reverse engineer your API (network calls) and inspect the payload etc etc it will add a extra layer of strength which is hard to bypass and you can ensure your API usage is being done by the app only

  • @davesiarez7229
    @davesiarez7229 2 місяці тому +2

    crazy how i understood all of these stuff just by building one system.

  • @salamandr4111
    @salamandr4111 2 місяці тому +3

    very cool vid!
    would be nice to see another video from you about rate limiting and how to implement it & best practices

  • @rida_brahim
    @rida_brahim 2 місяці тому

    i love backend and i will focus on it next coming months, thanks for the video man

  • @dayvee5634
    @dayvee5634 2 місяці тому +11

    Oh please do Role-Based Authorization.

  • @wasaabbi
    @wasaabbi 2 місяці тому

    golden content, loved that❤ You clearly have talent to present packed informations with understandable manner .
    It would be supper cool to have each step detailed with simple example to follow.
    You should’ve your own course, Id buy that

  • @filipesommer8253
    @filipesommer8253 2 місяці тому +1

    🎵 Soft kitty, script kiddie, little ball of fur 🎵

  • @HjalmarsProjekt
    @HjalmarsProjekt 2 місяці тому

    Good stuff!! Checking in from Sweden! 🇸🇪

  • @drendelous
    @drendelous Місяць тому

    ty for starting the video without 10 minute roundabouts

  • @harshitpant07
    @harshitpant07 2 місяці тому +1

    This my go to: either find a platform/app which provide similar services as you and try to abuse it or just think if it were me how would I bypass this or abuse then you will know a million ways to bypass your security and its time to work.

  • @kwaku_2023
    @kwaku_2023 2 місяці тому

    Awesome high-level overview. Well thought out.

  • @continuouslearner
    @continuouslearner 2 місяці тому

    Cody for President. Nice one cody more such videos please.

  • @casadogaspar
    @casadogaspar 2 місяці тому

    This is the kind of content that make me follow you.

  • @MasterEd725
    @MasterEd725 2 місяці тому

    Love these types of videos!!! Please do more videos like THIS!!!!!!!!!!👍

  • @davistodt3866
    @davistodt3866 13 днів тому

    Please do another one, which goes into more detail on specific implementations (but still framework agnostic), such as oauth2 and using jwts vs session cookies

  • @db5552
    @db5552 2 місяці тому

    Thank you for this :>>

  • @thirtykey
    @thirtykey 2 місяці тому +2

    next video: comprehensive dos and don'ts for avoiding DDoS attacks

  • @hfislwpa
    @hfislwpa 2 місяці тому

    Great video needed this! Thanks

  • @AndreasFroyland
    @AndreasFroyland 2 місяці тому

    Thank you! Incredible valueable knowledge.

  • @DjangoElRey
    @DjangoElRey 2 місяці тому

    Hey from Germany ❤ perhaps you could go more into detail about when to use the different API types: trpc, Server action, RSC? WOULD BE NICE 🎉

  • @yourchannel5714
    @yourchannel5714 2 місяці тому

    Could you make a video on connecting different backends to different frontends? Like svelte / go or react / nodejs. Coming from nextjs where everything is just set up for you i'm struggling to find info on how to progress into more "real" full stack development. Been learning a ton from you thanks a lot!!!

  • @okadz7037
    @okadz7037 2 місяці тому

    you are legendary👑 keep up

  • @thein3rovert-l9c
    @thein3rovert-l9c 2 місяці тому

    I love this❤, thanks a lot

  • @roycohen.
    @roycohen. 2 місяці тому

    Great video, thanks man.

  • @ghost91827
    @ghost91827 2 місяці тому

    What keyboard are you using? Sounds cool)

  • @MrArod1207
    @MrArod1207 2 місяці тому

    Great video!!

  • @donle9553
    @donle9553 2 місяці тому

    Thx man :X
    Could you advise any Sec cert that can be attached to the web, verifies that that SAAS safe enough ? so business customers will have less concern before using
    some kind of automated pentest
    Most of the time all they know to say is "using 3rd party SAAS is forbidden" and keep doing stuff manually like dumps and at the same time, some of them do use crked desktop app or even the OS. LOL

  • @-lumqua-827
    @-lumqua-827 2 місяці тому

    Web dev Cody cool topic
    Great explanation

  • @xd9050
    @xd9050 2 місяці тому

    keep cooking ser !

  • @userasd360
    @userasd360 2 місяці тому

    where can one find these eraser workspaces or even the images are fine.

  • @AkshatRamanathan
    @AkshatRamanathan 2 місяці тому

    Need more on auth stuff ❤

  • @Tyheir
    @Tyheir 2 місяці тому

    Great vid.

  • @melihguleyupoglu6594
    @melihguleyupoglu6594 2 місяці тому

    easy to follow and useful video, thank you. Your keyboard sounds nice. can you tell me its name?

  • @Anonym-mw5lz
    @Anonym-mw5lz 2 місяці тому

    great video

  • @alessandrosalzo8280
    @alessandrosalzo8280 2 місяці тому

    “Never trust the users input”.
    First law of software developers imo.

  • @patolorde
    @patolorde 2 місяці тому

    Great content

  • @notMichal
    @notMichal 2 місяці тому +3

    Do you have some examples of bad security practices out in the wild? Asking for a friend

    • @WebDevCody
      @WebDevCody  2 місяці тому +6

      A common one I’ve seen is letting your API accept a user ID in the post request body and then they use that user ID and think that it’s the authenticated user ID instead of checking the actual session

    • @sulek23
      @sulek23 2 місяці тому

      @@WebDevCody Is it better then to send user ID in the JWT? Or maybe in the httpOnly secure cookie?

  • @mohammed.haydar
    @mohammed.haydar 2 місяці тому +1

    Could you make a dedicated video about RateLimiting using NextJS server actions or NextJS APIs

    • @WebDevCody
      @WebDevCody  2 місяці тому

      I think I have one maybe

    • @mohammed.haydar
      @mohammed.haydar 2 місяці тому

      @@WebDevCody Awesome, just checking it out r n
      btw would you extend your previous vid about next15, maybe walkthrough us on how to upgrade existing projects, and how the breaking changes might affect existing projects?

    • @breakjee163
      @breakjee163 2 місяці тому

      ​​@@mohammed.haydar that'll be a new video in every major version then

  • @Aditya_Vyas
    @Aditya_Vyas 2 місяці тому +1

    It was a great video. Can you make some actionable code video around it? Code teaches better ❤. Happy Coding

  • @rhrkv
    @rhrkv 2 місяці тому

    great explanation, i feel like i know how to implement all of these, i didn't know more about NextJS like an expert (but i trust my self to be able to implement all of these though because the word terms u said, it's kinda similar to word which is referenced in php framework i'm currently working on)
    About rate limiting, the cookie data saved on a file (it"s default btw) will it be a problem from a performance perspective? i see the most popular ones are memory based thing, redis or whatever it is...

    • @WebDevCody
      @WebDevCody  2 місяці тому

      Cookies are storied in the browser. I’m not sure what you mean by file

    • @rhrkv
      @rhrkv 2 місяці тому

      @@WebDevCody the file that saved on server, with a bunch of cookies data from visitor/client

  • @anonAcc575
    @anonAcc575 2 місяці тому

    I have been too lazy and haven't put post request rate limiting to my cloudflare tunnel. Does reactjs prevent script tags from executing? I think solidjs does "sanitize" automatically

    • @WebDevCody
      @WebDevCody  2 місяці тому

      Not of the frameworks don’t let you render html directly to the page unless using dangerous set html. You should still always sanitize the data that goes into your database because you may forget and try to display it in the browser if you end up making a new ui or open your api for others to integrate with it

  • @eniolaogundipe2264
    @eniolaogundipe2264 2 місяці тому

    Can the rate limiting be set on the reverse proxy ???

    • @WebDevCody
      @WebDevCody  2 місяці тому

      Sure, but I’ve found in real systems some endpoints need more restrictions because they use more cpu or do big sql queries. Also, often you need to rate limited based on userId, so as long as your reverse proxy supports that, sure.

  • @sulek23
    @sulek23 2 місяці тому

    Is it safe to store user ID in jwt? Or maybe in the httpOnly & secure cookie?

    • @WebDevCody
      @WebDevCody  2 місяці тому +1

      Yes usually the userId (called sub sometimes) is stored in the jwt. If the jwt is properly verified, you can trust the userId in it. No, you don’t store the userId in a cookie ever. You need to generate a sessionId which links to the userId. The reason is you can’t allow anyone to guess the userId because then they could potentially just hit your api with their own cookie. Remember a cookie is just a header and anyone can use curl to fake the userId

  • @alitonoliveira1700
    @alitonoliveira1700 2 місяці тому

    Sometimes we don't need authentication or authorization, we just want our domain to be able to hit our api endpoints.

  • @carry_boats
    @carry_boats 2 місяці тому

    thx bruh

  • @jaedonfarr
    @jaedonfarr 2 місяці тому +2

    Video game dev when?

    • @developedbyed
      @developedbyed 2 місяці тому +1

      get on it Cody, we want flappy bird

  • @maherkhalil007
    @maherkhalil007 2 місяці тому

    great

  • @navishthings
    @navishthings 2 місяці тому

    Bro lucia v3 tutorial

  • @kashmirtechtv2948
    @kashmirtechtv2948 Місяць тому

    No. We don't use NEXT anymore