Skip to content

[AD0001] Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeFor*InjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute. #6929

@MaceWindu

Description

@MaceWindu

Analyzer

Diagnostic ID: CA30xx

Analyzer source

NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers

Version: 8.0.0-preview.23420.2

Describe the bug

RC1 analyzers release produce multiple Collection was modified; enumeration operation may not execute in different analyzers

Steps To Reproduce

No idea how to debug AD0001. At least stack trace in error message will help a lot.

Expected behavior

Works

Actual behavior

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForCommandExecutionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'.

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForDllInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForFilePathInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForOpenRedirectVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForRegexInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForSqlInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForXamlInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForXmlInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

AD0001 Analyzer 'Microsoft.NetCore.Analyzers.Security.ReviewCodeForXPathInjectionVulnerabilities' threw an exception of type 'System.InvalidOperationException' with message 'Collection was modified; enumeration operation may not execute.'

Additional context

Metadata

Metadata

Assignees

Labels

BugThe product is not behaving according to its current intended designPriority:0Critical to the releaseReliabilityIndicates a reliability issue (crash/data loss/test flakiness)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions