Back to skill

Security audit

pikpak-webdav-guide

Security checks for vulnerabilities and agentic risk

Overview

The skill provides user-controlled WebDAV setup guidance and an optional account checker with clearly disclosed limits.

WebDAV credentials permit file changes, so keep them in trusted clients and revoke them when no longer needed, as described in [PikPak’s documentation](https://mypikpak.com/zh-CN/help-center/connected_apps/webdav/how_to). Use a trusted CLI and environment for optional account queries. The checker cannot confirm WebDAV connectivity or remaining transfer quota. The disclosed referral code is optional. All three bundled files were inspected; the supplied pre-scan signal was not supported by concrete harmful behavior.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (3)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/webdav_check.py (reported line 35)May include surrounding context.

python
def pikpak_json(*args: str, timeout: int = 60):
    bin_path = os.environ.get("PIKPAK_BIN", "pikpak")
    try:
        proc = subprocess.run([bin_path, *args, "-F", "json"],
                              capture_output=True, text=True, timeout=timeout)
    except FileNotFoundError:
        return None, f"找不到 pikpak 命令(官方安装页:https://mypikpak.com/cli)"

Tainted flow: 'bin_path' from os.environ.get (line 33, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/webdav_check.py (reported line 35)May include surrounding context.

python
def pikpak_json(*args: str, timeout: int = 60):
    bin_path = os.environ.get("PIKPAK_BIN", "pikpak")
    try:
        proc = subprocess.run([bin_path, *args, "-F", "json"],
                              capture_output=True, text=True, timeout=timeout)
    except FileNotFoundError:
        return None, f"找不到 pikpak 命令(官方安装页:https://mypikpak.com/cli)"