Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.cors.any-origin-with-credentials

The CORS policy accepts every origin while allowing credentials. Any website can make authenticated cross-origin requests and read the responses.

Last updated:

Suite: Security

csharp

The CORS policy accepts every origin while allowing credentials. Any website can make authenticated cross-origin requests and read the responses.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

List the trusted origins explicitly with WithOrigins(...) (or validate against an allow-list in SetIsOriginAllowed) when credentials are allowed.

References

Source: packages/engine/rules/sast/csharp.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.