T05 · Unauthorized Access and Privilege Escalation
Warning
- Location
- references/browser-workflow.md:55
- Finding
- Authenticated account access and state-changing commerce actions exceed the declared read-only scope<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:32-36`, `SKILL.md:76-80`, `SKILL.md:292-296`, and `references/browser-workflow.md:55-80` **Vulnerability Type**: T05: Unauthorized Access and Privilege Escalation **Risk Level**: Medium The package description declares a safety boundary of “no login, no order submission, no payment,” but the operational workflow instructs the Agent to reuse an authenticated session, modify shopping-account state, enter checkout, and extract the user's delivery address. ### Vulnerable Code Snippets The declared boundary in `SKILL.md:1-4` is: ```yaml --- name: pdd-shopping description: "Pinduoduo shopping assistant. Input a product name or PDD link; evaluate 百亿补贴, 拼团 rules, seller risk, visible price, review signals, refund caveats, and whether the low price is worth it. Safe boundary: no login, no order submission, no payment." --- ``` The capability table in `SKILL.md:32-36` nevertheless permits authenticated, state-changing operations: ```markdown | **Add to Cart** | ✅ Required | Add items to shopping cart | | **View Cart** | ✅ Required | Review cart contents | | **Join Group Buy** | ✅ Required | Initiate or join 拼团 | | **Apply Coupons** | ✅ Required | Check and apply platform/seller coupons | | **Generate Order Preview** | ✅ Required | Calculate final price with subsidies | ``` The workflow in `SKILL.md:76-80` directs the Agent to perform these actions: ```markdown ### Phase 3: Cart & Pre-Order (Agent-Assisted with Login) 1. **Add to Cart** - Agent adds item to cart (requires login) 2. **Group Buy Action** - Initiate or join 拼团 (requires login) 3. **Cart Review** - Agent shows cart contents 4. **Coupon Application** - Agent checks platform + seller coupons 5. **Order Summary** - Agent generates complete order preview ``` The execution guide in `SKILL.md:292-296` further instructs the Agent to alter account state: ```markdown Step 5: Order Generation (Requires login) - Add to cart - Initiate or join ...[truncated 3606 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Make the default workflow strictly read-only and restrict it to public product, seller, price, review, and service-guarantee pages. 2. Remove instructions that add products to the cart, initiate or join group purchases, apply account coupons, or enter checkout. 3. Remove `.delivery-address` from all extraction rules. Price calculations should collect only item identifiers, discounts, fees, and totals that do not expose personal information. 4. If authenticated functionality is intentionally retained, update `SKILL.md`, `package.json`, and `clawhub.json` so their descriptions explicitly disclose authenticated access and state-changing operations. 5. Require separate, action-specific confirmation immediately before every account mutation rather than relying on a single general login confirmation. 6. Stop before opening checkout. Present manual instructions so the user can review the cart, delivery address, coupons, order submission, and payment independently. 7. Add runtime checks that reject selectors or actions associated with checkout, final confirmation, order submission, payment, addresses, credentials, SMS codes, CAPTCHA responses, and identity verification. 8. Minimize snapshots and logs so that account-specific personal information cannot be retained accidentally. 9. Add tests verifying that public evaluation requests never access an authenticated profile or invoke cart, group-buy, checkout, or address selectors. ]]>
