Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.cookies.httponly-disabled

A cookie is explicitly made readable from JavaScript (HttpOnly = false). Any XSS on the site can then steal it.

Last updated:

Suite: Security

csharp

A cookie is explicitly made readable from JavaScript (HttpOnly = false). Any XSS on the site can then steal it.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Keep HttpOnly = true for session and authentication cookies; only non-sensitive UI cookies may be script-readable.

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.