T05 · Unauthorized Access and Privilege Escalation
Error
- Location
- SKILL.md:10
- Finding
- Unrestricted Access to Local Identity and Payment Credential Files<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:10-16` **Vulnerability Type**: Sensitive local file access that violates least-privilege principles **Risk Level**: High ### Vulnerable Code ```markdown ## User Information Read recipient details (address, phone, email) from `~/Private/用户个人信息.txt`. ## Payment Card Read Zupyak Mynt Card details from `~/Private/Zupyak Mynt card for AI.txt` or `~/.private/payment.env`. **Only use this designated card — never use the user's personal bank cards.** ``` ### Technical Analysis The Skill directs the agent to read identity information and raw payment credentials from fixed files in the user's home directory. The information potentially includes the recipient's address, email address, telephone number, card number, expiration date, and security code. Direct access to persistent secret files gives the agent reusable credentials rather than narrowly scoped, transaction-specific authorization. If malicious retailer content, prompt injection, or a compromised browser session influences the agent, these credentials could be disclosed or used outside the transaction intended by the user. The instruction limiting use to a designated card is a procedural safeguard, not a technical access-control boundary. It does not prevent the agent, another loaded Skill, or injected instructions from reading or misusing the data. ### Attack Path 1. The user invokes the shopping Skill. 2. The Skill instructs the agent to read the fixed PII and payment credential files. 3. A malicious or compromised shopping page presents instructions or content designed to influence the agent. 4. The agent reads reusable identity and payment secrets from the local filesystem. 5. The secrets are entered into an attacker-controlled, compromised, or unintended checkout. 6. The attacker obtains sensitive identity data, attempts unauthorized transactions, or both. ### Impact Assessment Successful exploitation could expose the user's delivery ...[truncated 477 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove instructions that expose raw card credentials directly to the agent. 2. Store payment credentials in a PCI-compliant vault and use tokenized payment methods. 3. Provide the agent with a transaction-scoped payment token restricted by: - Approved merchant - Maximum amount - Currency - Expiration time - Single-use enforcement 4. Obtain recipient information through a constrained interface that returns only the fields required for the current order. 5. Require explicit user approval after displaying the merchant, final amount, delivery address, and selected payment method. 6. Prevent page content and other Skills from accessing secret-retrieval tools. 7. Record auditable access events without logging PII, card data, or authentication secrets. 8. Rotate or revoke any credentials that may already have been exposed to untrusted agent contexts. ]]>
