diff --git a/src/Scan/RestScans.ts b/src/Scan/RestScans.ts index 570bc65c..08a13d20 100644 --- a/src/Scan/RestScans.ts +++ b/src/Scan/RestScans.ts @@ -150,9 +150,9 @@ export class RestScans implements Scans { scanConfig: Omit ): Promise> { const attackParamLocations = - scanConfig.attackParamLocations ?? scanConfig.templateId - ? undefined - : [...ATTACK_PARAM_LOCATIONS_DEFAULT]; + scanConfig.attackParamLocations ?? + (scanConfig.templateId ? undefined : [...ATTACK_PARAM_LOCATIONS_DEFAULT]); + const exclusions = scanConfig.exclusions?.params || scanConfig.exclusions?.requests ? scanConfig.exclusions