Skip to content

Commit

Permalink
Add necessary security exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Aug 22, 2024
1 parent 775d84d commit 232c30b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ public static Task RunAndConfigureAndAssertFullSecurityScanForContinuousIntegrat
// There is no need to security scan the admin dashboard.
configuration.ExcludeUrlWithRegex(@".*/Admin/.*");
// There is no need to security scan anything in Lombiq.Tests.UI.Shortcuts.
configuration.ExcludeUrlWithRegex(@".*/Lombiq.Tests.UI.Shortcuts/.*");
configuration.MarkScanRuleAsFalsePositiveForUrlWithRegex(
".*/(Login|ChangePassword)([?].*)?",
6,
"Path Traversal",
"Setting the returnUrl attribute to a itself yields a false positive");
// Active scan takes a very long time, this is not practical in CI.
configuration.ModifyZapPlan(plan => plan
.SetActiveScanMaxDuration(maxActiveScanDurationInMinutes, maxRuleDurationInMinutes));
Expand Down

0 comments on commit 232c30b

Please sign in to comment.