Back to skill

Security audit

Poyo Seedance 2 Mini

Security checks for vulnerabilities and agentic risk

Overview

This skill is a clearly scoped PoYo video-generation helper, but users should only submit trusted JSON payload files because its helper script uploads the file path it is given.

Install only if you are comfortable sending prompts, media URLs, callback URLs, and generation parameters to PoYo. Keep POYO_API_KEY in a server-side environment variable, and use the helper script only with a trusted, prepared JSON payload file, not arbitrary local files or files influenced by untrusted instructions.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/submit_seedance_2_mini.sh:9
Finding

Unvalidated Local File Submission to an External API

Content
View full analysis

Vulnerability Details

File Location: scripts/submit_seedance_2_mini.sh, lines 9–17
Vulnerability Type: Arbitrary local file disclosure through an unvalidated file argument
Risk Level: Medium

Vulnerable Code

bash
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

Technical Analysis

The script accepts an arbitrary path as its only positional argument and passes that path directly to curl using --data @file. This syntax instructs curl to read the referenced local file and transmit its contents to the external PoYo API.

The path is correctly quoted, so this is not shell command injection. However, the script does not verify that the supplied path:

  • Refers to a regular file rather than a symbolic link or special file.
  • Is located in an approved payload directory.
  • Contains valid JSON.
  • Conforms to the expected Seedance request schema.
  • Is within a reasonable size limit.

Consequently, an attacker who can influence the script argument could cause any file readable by the executing user to be transmitted to PoYo. The fixed HTTPS destination limits the exfiltration destination, but it does not prevent disclosure to that third party.

Attack Path

  1. An attacker, malicious instruction, or untrusted automation input influences the argument supplied to submit_seedance_2_mini.sh.
  2. The attacker supplies the path of a sensitive file instead of a prepared JSON payload, for example a readable credentials or configuration file.
  3. The script assigns that path to payload_file without validation.
  4. curl --data @"${payload_file}" reads the file under the privileges of the user running the skill.
  5. The file contents are sent in the request body to `https://api.poyo.ai/api/generate/subm ...[truncated 817 chars]
Remediation
View remediation

Remediation Suggestions

  • Resolve the supplied path to its canonical form and require it to remain within a dedicated, trusted payload directory.
  • Require the target to be a regular file and reject symbolic links, devices, FIFOs, sockets, and other special files.
  • Apply a conservative maximum file-size limit before reading or submitting the payload.
  • Parse the file with a JSON parser and reject invalid JSON.
  • Validate the request schema before submission, including the required model and input fields.
  • Require model to equal seedance-2-mini and validate supported input fields and value ranges.
  • Reject unexpected top-level fields where practical.
  • Consider reading the validated JSON into memory and passing the validated serialization to curl, rather than allowing curl to dereference an arbitrary caller-selected path.
  • Run the script with least-privilege filesystem access so unrelated secrets are not readable even if argument validation is bypassed.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (13)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/api.md (reported line 19)May include surrounding context.

Content-Type: application/json

text

Get API keys from <https://poyo.ai/dashboard/api-key>.

Recommended skill env var:

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill declares shell-capable execution via its metadata and references a submission script, but it does not define any explicit tool scope such as permissions or allowed-tools. That increases the chance an agent can invoke shell access more broadly than intended, which is risky in a skill that handles secrets and network submission workflows.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api.md (reported line 55)May include surrounding context.

Text-to-Video Example

bash
curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/submit_seedance_2_mini.sh (reported line 13)May include surrounding context.

sh
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script performs an HTTP POST to an external service and transmits the contents of a user-supplied JSON file, but it does not include any confirmation prompt, informational echo/logging, or comment/docstring disclosing that data will be sent off-host. For code files, outbound network transmission of user data should have some visible warning unless already clearly disclosed.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 3)May include surrounding context.

md
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api.md (reported line 5)May include surrounding context.

md
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api.md (reported line 6)May include surrounding context.

md
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api.md (reported line 56)May include surrounding context.

md
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api.md (reported line 76)May include surrounding context.

md
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api.md (reported line 100)May include surrounding context.

md
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/submit_seedance_2_mini.sh (reported line 14)May include surrounding context.

sh
payload_file="$1"

curl --fail-with-body --request POST \
  --url "https://api.poyo.ai/api/generate/submit" \
  --header "Authorization: Bearer ${POYO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data @"${payload_file}"

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The script accesses a sensitive environment variable, POYO_API_KEY, but provides no comment or user-facing explanation about credential usage beyond a missing-variable error. Under the code-file criteria, access to credentials without any disclosure can warrant a warning finding.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.