Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.ini.session-cookie-httponly-off

PHP session cookies are explicitly made readable by JavaScript (session.cookie_httponly off). Any XSS can then steal the session identifier.

Last updated:

Suite: Security

regex

PHP session cookies are explicitly made readable by JavaScript (session.cookie_httponly off). Any XSS can then steal the session identifier.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Set session.cookie_httponly = 1 (and session.cookie_secure = 1 on HTTPS sites).

References

Source: packages/engine/rules/sast/config.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.