pocketbase-best-practices
Warn
Audited by Socket on Sep 15, 2026
1 alert found:
AnomalyAnomalyrules/auth-impersonation.md
LOWAnomalyLOW
rules/auth-impersonation.md
The code is a legitimate administrative impersonation example and contains no evident malware or supply-chain attack behavior. Its primary risks are inherent to privileged token handling: superuser credentials, impersonation tokens, and API tokens must remain server-side, be access-controlled, audited, and protected from leakage. The hardcoded localhost URL and lack of explicit validation or authorization around user identifiers are deployment and access-control concerns, but no malicious behavior is shown.
Confidence: 98%Severity: 55%
Audit Metadata