T09 · Insecure Skill Coding Practices
- Location
scripts/upload_file.py:47- Finding
API Credential Exposed Through Required Command-Line Arguments
- Content
View full analysis
``` `SKILL.md:77-83`: ```bash # 1. Upload the file upload_result=$(python3 /models/openclaw/skills/flow/scripts/upload_file.py token local_file_path ) server_path=$(echo $upload_result | jq -r .file_path) # 2. Generate the report python3 /models/openclaw/skills/flow/scripts/generate_report.py token "$server_path" query ``` ### Technical Analysis Both scripts support reading the API token from the `ZY_TOKEN` environment variable, but their command-line interfaces require a positional `token` argument. The documented workflow consequently instructs operators or an agent to place the credential directly in the process argument list. Command-line arguments may be exposed through: - Process-inspection utilities available to other local users or monitoring services. - Shell history and terminal-sessi ...[truncated 1496 chars]- Remediation
View remediation
