Better WordPress Security with WordPress Nonces | WordPress PHP Security

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

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

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

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

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

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

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

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

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

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

    Great to see your video after long time..

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

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

      Perhaps best to just exclude that page from caching?

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

    Thank you so much!

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

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

    Thank you!

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

    Great stuff!

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

    nice! Thank you very much

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

    People in the UK reading the title 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. ????

    • @АлександрГригорий-е6о
      @АлександрГригорий-е6о 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.

  • @АлександрГригорий-е6о

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

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

    Super useful

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

    Thanks!

  • @Zak_Nike
    @Zak_Nike День назад

    No nonce jokes😮 I'm obviously in the wrong place

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

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

    Noooonce

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

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

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

      Glad to hear that!