owasp-security
Audited by Socket on Jul 11, 2026
4 alerts found:
Securityx4This module is not overtly malicious (no backdoor/persistence/network exfiltration observed), but it contains multiple high-impact insecure patterns in “vulnerable_*” functions: plaintext credential storage to users.txt, hardcoded API key and encryption key, MD5 password hashing, DES encryption with a hardcoded key, AES-256-ECB mode, and predictable token generation via Math.random. Additionally, the Express HTTPS canonicalization middleware trusts x-forwarded-proto and redirects using req.url, which can introduce redirect/URL handling risks. The exported API appears to use safer implementations (bcrypt, AES-256-GCM, crypto.randomBytes, env-based secrets), but the embedded vulnerable code and hardcoded secrets make overall security risk high if those functions are ever invoked.
No evidence of classic malicious code behavior (no obfuscated payloads, no network/execution logic). However, the manifest includes explicitly dangerous Kubernetes security misconfigurations: wildcard RBAC bound to a ServiceAccount, a privileged root pod, a writable Secret mount, and credentials embedded directly in the YAML via stringData. If applied in a real cluster, these settings could enable broad authorization and credential exposure/tampering. The presence of hardened alternatives suggests the file is educational, but shipping or applying it without strict controls would create a high security risk.
No malware or obfuscation behavior is evident. However, this module is security-critical if deployed with the /vulnerable endpoints reachable: it trusts a base64-decoded JWT payload without verifying signatures and it allows arbitrary user deletion after only checking that an Authorization header exists. The /secure routes use jwt.verify and role checking and are comparatively safer. Overall, the presence and behavior of the /vulnerable routes create a high likelihood of unauthorized data access and destructive actions.
This module is not clearly malicious (no backdoor/exfiltration/obfuscation patterns), but it contains a high-impact SQL injection vulnerability in `/user/unsafe` due to concatenating `req.query.id` into the SQL string and executing it. The other two routes use parameterized queries, with `/user/safest` additionally validating input and limiting output fields, making them substantially safer (assuming correct placeholder binding by the DB driver).