HIGH AI PREVALENCE: MEDIUM auth.iac.tf-oauth-insecure-callback
This Terraform resource registers an OAuth redirect/callback URL that is either plaintext http:// (not on localhost) or uses a wildcard host.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
A non-TLS callback exposes the authorization code or token to network interception, and a wildcard-host redirect lets an attacker who controls any matching subdomain steal the code (open redirect, CWE-601). Register exact https:// callback URLs with fixed hosts. Keep http:// only for localhost/127.0.0.1 during local development, and never register a redirect target with a * in the host.
VULNERABLE
SAFE
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.iac.tf-oauth-insecure-callback -- <reason>