owasp-security

Warn

Audited by Socket on Jul 11, 2026

4 alerts found:

Securityx4
SecurityMEDIUM
examples/cryptographic-failures.js

This 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.

Confidence: 70%Severity: 85%
SecurityMEDIUM
examples/k8s-rbac.yaml

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.

Confidence: 76%Severity: 87%
SecurityMEDIUM
examples/api-auth-bypass.js

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.

Confidence: 82%Severity: 92%
SecurityMEDIUM
examples/injection.js

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).

Confidence: 82%Severity: 82%
Audit Metadata
Analyzed At
Jul 11, 2026, 08:48 PM
Package URL
pkg:socket/skills-sh/davila7%2Fclaude-code-templates%2Fowasp-security%2F@cf51e9715880d4cd6777e5e5bc9c09f66b9c7d6ac64595ea3b3843f3aedd751b
Security Audit — socket — owasp-security