Open sspradhan1 opened 4 years ago
This appears to be a bug in Checkmarx, where the mere presence of a class named Startup triggers the analyzer.
I confirmed this by renaming the class to ApiStart, and the analyzer warning immediately went away.
Yes, same. For me this was the case with Azure Functions
We are using Azure function .net SDK for writing httptrigger, timetrigger azure functions. When we ran the SAST scan using Checkmarx, we are getting following two issues:
We have already added cookiepolices for them, but still getting the issue: public class Startup : IWebJobsStartup { public void Configure(IWebJobsBuilder builder) { builder.Services.AddScoped<IDataProcessingRepository, DataProcessingRepository>(); builder.Services.Configure(options =>
{
options.Secure = Microsoft.AspNetCore.Http.CookieSecurePolicy.Always;
options.HttpOnly = Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy.Always;
});
}
}