Better WordPress Security with WordPress Nonces | WordPress PHP Security

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • In this video, I go over how to create better security on your #WordPress site with #Nonces!
    github.com/alexander-young/wp...
    💖 Become a Patron to show support & get perks!
    / wpcasts
    Sign up for the newsletter. Free course coming in 2020:
    wpcasts.tv
    *SOCIAL*
    Twitter: / alexanderbyoung
    Instagram: / the_alex_young
    Facebook: / wpcasts.tv
  • Наука та технологія

КОМЕНТАРІ • 29

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

    Let's chat on Twitter! twitter.com/AlexanderBYoung

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

    I'm a lot closer to wrapping my head around nonces than I was before - thank you! Looking forward to digging through your other videos.

  • @jlcdrivewayramps7343
    @jlcdrivewayramps7343 Рік тому

    simple. clear. I cant stand tutorials which are too complex. they confuse more than help. keep it simple and you did. thank you.

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

    Hey! Ryan here from WPScan. Great video. Just something to note that wasn't mentioned is that Chrome and other browsers will soon be enabling "SameSite=Lax" cookies by default, which will prevent most CSRF attacks in modern web browsers, when they implement it by default. Nonces should absolutely still be used of course, but the risk of a CSRF attack should also be reduced when web browsers implement SameSite by default.

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

    Great format with you facing diagonally. Best format I've seen for screencast videos.

  • @leebuckle8288
    @leebuckle8288 4 роки тому +5

    People in the UK reading the title like -.-

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

    Great to see your video after long time..

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

    Thank you so much!

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

    Thank you!

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

    nice! Thank you very much

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

    Great stuff!

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

    Thanks!

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

    Super useful

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

    Could you explain how to use a nonce with cached form pages? I want to serve the form page from a static cache

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

    How to get NOnce for Headless WordPress? Custom endpoint i.e with REST API?
    And if yes then should we secure the Nonce endpoint by checking like current_user_can() or should just let it be without any checks?

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

    What happens if user open this form as not logged in state and then login in another tab, return to first tab and submit the form? Nonce error happens. Why? how to deal with that situation?

  • @user-ck7rb1hg8o
    @user-ck7rb1hg8o 4 роки тому

    Hello, what are you using for bundling JS?

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

      I actually wasn't bundling it. I was just using the browser-supported ES6 :)

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

    Always love how you dig deeper into WP more than the average channel! Check out the function check_ajax_referer() (developer.wordpress.org/reference/functions/check_ajax_referer/). It pretty much does what you built, but with a simple function call. It's super handy.

  • @msvmanikantasrivishnu7788
    @msvmanikantasrivishnu7788 4 роки тому +4

    1st like :-)

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

    I don't understand it. Because the nonce filed is a hidden field. Evey when bot submit the request still isset return true and query get executed. ????

    • @user-ck7rb1hg8o
      @user-ck7rb1hg8o 4 роки тому +1

      Note that the nonces are unique to the current user's session, so if a user logs in or out asynchronously any nonces on the page will no longer be valid.
      codex.wordpress.org/WordPress_Nonces

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

      Nonces are to stop replay attacks, they are to help ensuring that a request was made from a valid source and that the request is only run only once and that the primed request can expire if the user fails to submit. Nonces are basically useless on forms that don't require user authentication.

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

    Noooonce

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

    it's not useful.... it is very useful....:) thankx

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

      Glad to hear that!