Back to Checks
supabase

Supabase Auth has CAPTCHA protection enabled

auth_captcha_enabled
Service: authSeverity: low
OfficialVerifiedPrivate
Categories:identity-access
Resource Type:SupabaseAuthConfig

Checks that CAPTCHA protection is enabled on Supabase Auth sign-up, sign-in and password reset.

Risk

Without CAPTCHA, bots can automate sign-ups, credential stuffing and password reset requests, which leads to abuse, spam and account takeover.

Run this check with Prowler

Run in Prowler Cloud
Install
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-supabase[runtime]"
Run
prowler supabase --checks auth_captcha_enabled

Recommendation

Enable CAPTCHA protection on Auth endpoints.

Remediation

Other

1In the Supabase dashboard, open Authentication > Attack Protection
2Turn on Enable Captcha protection and choose hCaptcha or Cloudflare Turnstile
3Enter the provider's secret key and save
4Send the CAPTCHA token from your client app

Check Code

from prowler.lib.check.models import Check

from prowler_provider_supabase.check_report import CheckReportSupabase
from prowler_provider_supabase.services.auth.auth_client import auth_client


class auth_captcha_enabled(Check):
    def execute(self) -> list[CheckReportSupabase]:
        findings = []
        for config in auth_client.auth_configs:
            if not config.has("security_captcha_enabled"):
                continue
            report = CheckReportSupabase(metadata=self.metadata(), resource=config)
            if config.security_captcha_enabled:
                report.status = "PASS"
                report.status_extended = (
                    f"Project {config.name} has CAPTCHA protection enabled."
                )
            else:
                report.status = "FAIL"
                report.status_extended = (
                    f"Project {config.name} does not have CAPTCHA protection enabled."
                )
            findings.append(report)
        return findings