From 7e7c651a333ddf1709ed64eb754b69d4b0415847 Mon Sep 17 00:00:00 2001 From: Claudia Murialdo Date: Tue, 16 Jan 2024 14:20:55 -0300 Subject: [PATCH] Fix error security transparent issue with method HandleExceptionImp --- dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs index 5b9490dbb..6da5f4545 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs @@ -12,6 +12,7 @@ namespace GeneXus.Http { internal class CSRFHelper { + [SecuritySafeCritical] internal static bool HandleException(Exception e, HttpContext httpContext) { if (RestAPIHelpers.ValidateCsrfToken()) @@ -20,6 +21,7 @@ internal static bool HandleException(Exception e, HttpContext httpContext) } return false; } + [SecuritySafeCritical] private static bool HandleExceptionImp(Exception e, HttpContext httpContext) { if (e is HttpAntiForgeryException)