code-review

Warn

Audited by Socket on Jul 8, 2026

2 alerts found:

Securityx2
SecurityMEDIUM
evals/files/LoginForm.tsx

This module is primarily a login UI, but it includes several severe security red flags: a hardcoded live API key in client code, plaintext credential logging to console, persistent storage of auth tokens in localStorage, and rendering of backend-controlled error content via dangerouslySetInnerHTML (direct XSS risk). While there is no clear sign of overt malware, these patterns materially increase the likelihood of account compromise and session theft if any input/error message can be influenced by an attacker. Remediation should prioritize removing the hardcoded secret, eliminating credential logging, avoiding dangerouslySetInnerHTML (sanitize/escape error text), and reducing token exposure (prefer HttpOnly cookies over localStorage).

Confidence: 84%Severity: 92%
SecurityMEDIUM
evals/files/orders.js

No clear malware/backdoor behavior is present, but the module is high-risk due to critical security flaws: JWT authentication is implemented incorrectly using jwt.decode (signature/claim verification is missing), GET /orders uses unsafe string-built SQL enabling likely SQL injection, and cancel/update logic weakens authorization invariants (UPDATE is not scoped by user_id). Additionally, error responses leak stack traces, increasing exploitability. This code should not be deployed without remediation (use jwt.verify, parameterize all SQL, enforce user scoping consistently, and remove stack traces from client responses).

Confidence: 82%Severity: 93%
Audit Metadata
Analyzed At
Jul 8, 2026, 08:09 PM
Package URL
pkg:socket/skills-sh/Noorkhalel%2Fsaas-ai-skills%2Fcode-review%2F@162068f0699e43cd97f0443bcfea6feb8ee16278b2ae7c6f00d9d2c76e3f2223
Security Audit — socket — code-review