From efb593e4c891663acce7a4e60e6cbcaf2bc317c6 Mon Sep 17 00:00:00 2001 From: HDVinnie Date: Thu, 23 Sep 2021 21:50:33 -0400 Subject: [PATCH] security: cross-site request forgery - huntr bounty --- resources/views/Staff/chat/bot/index.blade.php | 16 ++++++++++++---- resources/views/partials/dashboardmenu.blade.php | 10 +++++++--- routes/web.php | 6 +++--- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/resources/views/Staff/chat/bot/index.blade.php b/resources/views/Staff/chat/bot/index.blade.php index e27ec1d70f..09a04f2eb1 100644 --- a/resources/views/Staff/chat/bot/index.blade.php +++ b/resources/views/Staff/chat/bot/index.blade.php @@ -54,11 +54,19 @@ class="btn btn-warning">@lang('common.edit') @else @if($bot->active) - @lang('common.disable') +
+ @csrf + +
@else - @lang('common.enable') +
+ @csrf + +
@endif @endif diff --git a/resources/views/partials/dashboardmenu.blade.php b/resources/views/partials/dashboardmenu.blade.php index b308be3194..969f60ef7a 100644 --- a/resources/views/partials/dashboardmenu.blade.php +++ b/resources/views/partials/dashboardmenu.blade.php @@ -48,9 +48,13 @@
  • - - @lang('staff.flush-chat') - +
    + @csrf + + +