Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.cookies.secure-flag-disabled

A cookie is explicitly allowed to be sent over plain HTTP (Secure = false or CookieSecurePolicy.None). Network attackers can read or inject it.

Last updated:

Suite: Security

csharp

A cookie is explicitly allowed to be sent over plain HTTP (Secure = false or CookieSecurePolicy.None). Network attackers can read or inject it.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Set Secure = true / CookieSecurePolicy.Always (or SameAsRequest only for local development).

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.