This skill is critically insecure, containing hardcoded secrets, SQL injection vulnerabilities, arbitrary code execution via eval, and unauthorized network access that facilitates data exfiltration and SSRF attacks.
Findings (14)
Behavioural Control
Criticaltargets Action
SQL injection — stacked destructive query (DROP/DELETE/TRUNCATE) detected
; ALTER TABLE
Environment secret flows to a network sink (JS/TS)
taint source (line 3): process.env.PAYMENT_SECRET_KEY → sink: fetch('https://api.payment-gateway.com/charge', {
method: 'POST',
headers: { Authorization: `Basic ${key}` },
body: JSON.stringify(body),
})User-controlled input is concatenated into a SQL query string. This allows SQL injection where an attacker can modify the query structure. Use parameterized queries with placeholders ($1, ?) instead of string concatenation. (seen 2 times in this file at lines 2, 8)
taint source (line 2): req.body.username → sink: { username: req.body.username }Detected use of eval() or Function() constructor with dynamic input. This can lead to code injection if the input is user-controlled. Avoid eval() entirely. Use JSON.parse() for data deserialization or a safe expression evaluator for computed values.
{ $where: `this.username == '${username}'` }Hardcoded credentials detected. Passwords, API keys, and secrets should not be hardcoded in source code. Use environment variables or a secrets manager instead. (seen 6 times in this file at lines 6, 7, 8, 9, 10, 11)
key: 'X-Content-Type-Options'
SQL injection — tautology (always-true condition) bypass pattern detected
' OR '1'='1
Network scanning tool — port scanning or network discovery tool invocation (seen 3 times in this file at lines 899, 900, 901)
nmap
Untrusted data flows to an external API call without validation. Data from sources like window.name, document.location, or other client-controlled inputs is passed to library functions that may interpret it in unsafe ways. Validate or sanitize all untrusted input before passing it to external APIs.
taint source (line 3): process.env.PAYMENT_SECRET_KEY → sink: fetch('https://api.payment-gateway.com/charge', {
method: 'POST',
headers: { Authorization: `Basic ${key}` },
body: JSON.stringify(body),
})Access to sensitive environment variables detected
$DATABASE_URL
Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.
Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.
Outbound network request primitive in skill code — can transmit data externally
fetch('https://api.payment-gateway.com/charge', {
method: 'POST',
headers: { Authorization: `Basic ${key}` },
body: JSON.stringify(body),
})User input is used to construct a URL for a server-side HTTP request. This could allow an attacker to make requests to internal services or cloud metadata endpoints (Server-Side Request Forgery). Validate URLs against an allowlist of permitted hosts and schemes.
taint source (line 3): process.env.PAYMENT_SECRET_KEY → sink: fetch('https://api.payment-gateway.com/charge', {
method: 'POST',
headers: { Authorization: `Basic ${key}` },
body: JSON.stringify(body),
})Hygiene
Infotargets Packaging & Manifest
Skill does not specify a license field. Specifying a license helps users understand usage terms.