T05 · Unauthorized Access and Privilege Escalation
Warning
- Location
- _meta.json:20
- Finding
- Declared Network and Cloud Credential Access Exceeds Implemented Requirements## Vulnerability Details **File Location**: `_meta.json`, lines 20–35 **Vulnerability Type**: Excessive permissions and unnecessary sensitive credential exposure **Risk Level**: Medium ```json "environmentVariables": [ "ALIYUN_ACCESS_KEY", "ALIYUN_SECRET_KEY", "BAIDU_ACCESS_TOKEN" ], "permissions": { "network": true, "networkEndpoints": [ "dashscope.aliyuncs.com", "api.aliyundrive.com", "pan.baidu.com" ], "fileRead": true, "fileWrite": true, "fileWriteScope": "user_directories" } ``` ### Technical Analysis The metadata declares access to cloud credentials and network endpoints for DashScope, Aliyun Drive, and Baidu services. The shipped executable does not contain a network client, cloud provider implementation, AI provider integration, or environment-variable access. The implemented functionality only requires reading files selected by the user, writing organized copies, moving duplicate files, and maintaining a local cache. Consequently, network access and cloud credential declarations are not required by the current implementation and violate least-privilege principles. The risk depends on how the host platform enforces metadata. If declared environment variables and network permissions are made available to the Skill process, later-modified, substituted, or compromised code could use them without requesting an additional permission change. ### Attack Path 1. The Skill is installed with the permissions declared in `_meta.json`. 2. The host exposes the listed cloud credentials or allows access to the declared network endpoints. 3. A later update, compromised dependency, or replaced entry-point script reads the available credentials. 4. The malicious component sends authenticated requests to an allowed cloud endpoint. 5. Cloud data or resources accessible to those credentials may be read, modified, or uploaded. No such credential theft or network transmission e ...[truncated 453 chars]
- Remediation
- ## Remediation Suggestions 1. Remove `network`, `networkEndpoints`, and cloud-related environment variables from `_meta.json` until reviewed cloud functionality is actually implemented. 2. Keep only filesystem permissions necessary for explicitly selected source and destination directories. 3. If cloud synchronization is later added, isolate it as an optional, separately permissioned component. 4. Request provider-specific credentials only when the user enables that provider. 5. Use narrowly scoped, short-lived tokens instead of account-wide or long-lived secrets. 6. Require explicit user confirmation before any upload or remote modification. 7. Add tests verifying that local-only operations cannot access environment credentials or the network.
