Back to Checks
Supabase Auth requires passwords to mix character types
auth_password_required_characters
Service: authSeverity: low
OfficialVerifiedPrivate
Categories:identity-access
Resource Type:SupabaseAuthConfig
Checks that Supabase Auth requires passwords to contain specific character types, such as lowercase, uppercase letters and digits.
Risk
Without character requirements, users can choose simple passwords that are easy to guess in brute-force and dictionary attacks.
Run this check with Prowler
Run in Prowler CloudInstall
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_password_required_charactersRecommendation
Require passwords to include lowercase and uppercase letters, digits and, ideally, symbols.
Remediation
Other
1In the Supabase dashboard, open Authentication > Sign In / Providers > Email
2Under Password Requirements, require lowercase, uppercase letters and digits (and symbols)
3Save
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_password_required_characters(Check):
def execute(self) -> list[CheckReportSupabase]:
findings = []
for config in auth_client.auth_configs:
if not config.has("password_required_characters"):
continue
report = CheckReportSupabase(metadata=self.metadata(), resource=config)
if config.password_required_characters:
report.status = "PASS"
report.status_extended = (
f"Project {config.name} requires passwords to mix character types."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Project {config.name} does not require passwords to mix "
"character types."
)
findings.append(report)
return findings