T09 · Insecure Skill Coding Practices
- Location
scripts/create_listing.py:13- Finding
Hardcoded supplier wallet can cause unintended financial attribution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill openly automates Clawlancer marketplace actions, but it can create active listings and purchases with unsafe defaults and too little confirmation.
Review every listing and order payload before running this skill. Provide explicit wallet and listing IDs, avoid relying on defaults or automatic first-listing selection, and do not pass payment_preparation output to a signer unless you independently verify the supplier, token, amount, chain, contract, and order details.
scripts/create_listing.py:13Hardcoded supplier wallet can cause unintended financial attribution
scripts/create_order.py:74Unvalidated automatic listing selection can create an order for an unintended supplier
The code’s actual purpose is narrowly focused: it parses CLI arguments, validates input/output schema JSON, constructs a service listing payload, and submits it to the Clawlancer API endpoint /v1/services. This aligns only with the sell-side listing creation portion of the description. The broader declared description materially overstates the behavior by claiming buy-side order creation, payment parameter preparation, purchase tracking, and full workflow automation, none of which appear in this code chunk. Therefore the description does not accurately represent what this supplied code actually does.
The code behavior is narrower than the declared description. It does support several declared functions: auto-creating a Clawlancer/OpenClaw order, optionally preparing payment parameters, and tracking purchase status. However, the declared purpose prominently includes automatic sell-side listing creation and end-to-end buy/sell workflows, which are not present in this code chunk. The script never creates listings; it only fetches existing listings to choose one for purchase. Therefore the description does not accurately represent this specific code chunk.
The skill advertises and documents network-capable automation but does not declare any tool scope such as permissions or allowed-tools. That weakens sandboxing and review controls, making it easier for the skill to perform outbound requests without explicit governance or user-visible restriction.
The skill is framed around automatically executing buy/sell workflow actions, indicating autonomous decision-making in a domain with external side effects. In marketplace and payment-adjacent contexts, autonomy without strong confirmation boundaries can cause unauthorized listings, purchases, or preparation for on-chain settlement.
name: clawlancer
version: 1.4.0
author: fozagtx
description: Integrate OpenClaw with Clawlancer and automatically execute both sell-side listing creation and buy-side order creation through executable scripts. Use when users ask to auto-create a listing, auto-create a Clawlancer order, prepare Kite Chain payment params, track purchase status, or run end-to-end buy/sell workflows on the Clawlancer marketplace.
---
# Clawlancer
The invocation guidance is broad enough that the skill may trigger on generic requests like creating orders, listings, or tracking purchases, even when the user did not clearly intend to interact with Clawlancer. In a skill that performs external state-changing actions, overbroad matching increases the risk of unintended execution and accidental transactions.
The instruction to 'always run scripts directly' and 'do not ask users' removes a critical human-in-the-loop control for operations that make external changes. In this context, the skill becomes more dangerous because it automates listing and order creation on third-party services and could act on ambiguous prompts without informed consent.
- `scripts/create_listing.py`: auto-create seller listing
- `scripts/create_order.py`: auto-create buyer purchase(order)
Always run scripts directly for automation. Do not ask users to manually craft curl unless debugging.
## Sell-Side Automation (Create Listing)
The documentation explicitly instructs automatic execution of scripts that create external marketplace listings and orders, but it does not require an explicit warning or confirmation about side effects. Because these actions can create persistent marketplace state and potentially lead to financial/payment follow-on actions, silent automation materially increases the risk of unauthorized or mistaken transactions.
The skill metadata explicitly promotes automatic execution of marketplace actions on both the sell and buy side, including listing creation, order creation, payment parameter preparation, and status tracking. In an agent context, this enables autonomous commitment of funds or assets without an explicit per-action approval boundary, which is dangerous because prompt injection, user confusion, or misinterpretation could trigger real external transactions.
interface:
display_name: "Clawlancer"
short_description: "Auto execute Clawlancer sell and buy flows"
default_prompt: "Use this skill to auto-create Clawlancer listings (sell side) and purchases/orders (buy side), then prepare payment params and track status."