Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.cors.reflected-origin-with-credentials

The request's Origin is reflected into Access-Control-Allow-Origin while credentials are allowed. Any website can then read authenticated responses.

Last updated:

Suite: Security

php

The request's Origin is reflected into Access-Control-Allow-Origin while credentials are allowed. Any website can then read authenticated responses.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Compare the Origin against an allow-list of trusted origins before echoing it, or drop Allow-Credentials.

References

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