Getting API Security Right - Philippe De Ryck - NDC Security 2022

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

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

  • @richardfrimpong5891
    @richardfrimpong5891 2 года назад +2

    Now that is a really really good talk.
    Thanks a lot Philippe De Ryck

  • @sCr33nSh0o71
    @sCr33nSh0o71 2 года назад +2

    what if you have endpoint user/tasks/{id} and you dont put validation if you have access to this task but when you make call to the db you use the filter task = id and userid = token.userid ?

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

      too late better than never ; you waste a call to the database (sometimes costly, and it can stack up), you break single responsibility principle (data layer is not responsible for auth), you make testing, auditing and maintenance difficult (change of schema? distributed databases?). There must be even nastier and more obvious things I don't see from a security standpoint, but these reasons are already enough in terms of best practices.