Log inGet a Demo

client-secret-exposure

Critical · Risk 100

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

Critical

targets Action

13 findings
#1SQL injection — stacked destructive query (DROP/DELETE/TRUNCATE) detectedcriticalsql injection95% confidenceline 814

SQL injection — stacked destructive query (DROP/DELETE/TRUNCATE) detected

;
ALTER TABLE
#2Environment secret flows to a network sink (JS/TS)criticaldata exfiltration95% confidenceline 5

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),
  })
#3User-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.criticalvuln95% confidenceline 2

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 }
#4Detected 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.criticalvuln95% confidenceline 5

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}'` }
#5Hardcoded credentials detected. Passwords, API keys, and secrets should not be hardcoded in source code. Use environment variables or a secrets manager instead.criticalvuln95% confidenceline 6

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'
#6SQL injection — tautology (always-true condition) bypass pattern detectedhighsql injection95% confidenceline 742

SQL injection — tautology (always-true condition) bypass pattern detected

' OR '1'='1
#7Network scanning tool — port scanning or network discovery tool invocationhighlateral movement95% confidenceline 899

Network scanning tool — port scanning or network discovery tool invocation (seen 3 times in this file at lines 899, 900, 901)

nmap
#8Untrusted 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.highvuln95% confidenceline 5

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),
  })
#9Access to sensitive environment variables detectedmediumcredential theft95% confidenceline 805

Access to sensitive environment variables detected

$DATABASE_URL
#10Missing allowed-tools declarationlow90% confidence

Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.

#11Undeclared network usagelow60% confidence

Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.

#12Outbound network request primitive in skill code — can transmit data externallylowdata exfiltration95% confidenceline 5

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),
  })
#13User 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.lowvuln95% confidenceline 5

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

Info

targets Packaging & Manifest

1 finding
#1Missing licenseinfo100% confidence

Skill does not specify a license field. Specifying a license helps users understand usage terms.