zion-baas
Warn
Audited by Socket on Jun 13, 2026
2 alerts found:
SecurityAnomalySecuritySKILL.md
MEDIUMSecurityMEDIUM
SKILL.md
Anomalyscripts/authenticate.ts
LOWAnomalyLOW
scripts/authenticate.ts
This code is not overtly malicious, but it is security-sensitive. It captures an authentication token from a local HTTP GET query parameter on a callback route without state/nonce validation or origin correlation, making the stored token vulnerable to replacement by any party that can reach the local callback port. It then persists the token (plaintext) into a predictable YAML file, and it derives expiry by decoding the token without verifying its signature. These issues warrant review/mitigation (e.g., state/nonce validation, stricter callback validation, and safer storage/permissions).
Confidence: 100%Severity: 60%
Audit Metadata