T09 · Insecure Skill Coding Practices
- Location
SKILL.md:179- Finding
Authentication Token Exposure Through Process Command-Line Arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This appears to be a real Meituan coupon helper, but it handles live account tokens in ways that could expose them through logs, command arguments, URLs, and local files.
Install only if you are comfortable giving this skill access to your Meituan login flow and storing account tokens locally. Avoid using it on shared machines or environments where command output, process arguments, or agent logs may be retained, and clear both login and device data when finished.
SKILL.md:179Authentication Token Exposure Through Process Command-Line Arguments
scripts/auth.py:252Session and Device Tokens Returned in Standard Output
scripts/auth.py:239Session Token Included in Token-Verification Query String
scripts/issue.py:87Raw Session Tokens Stored as Plaintext Coupon-History Keys
The skill instructs the agent to use shell execution, environment variables, local file storage, and network access, but it declares no explicit tool scope or permission boundaries. This increases the risk of over-privileged execution: an agent or platform may grant broader access than necessary, enabling unintended file access, token handling, or external requests beyond the minimal needs of coupon issuance and login.
The trigger list is very broad and includes generic phrases like '领优惠券', '美团优惠', and '外卖红包', which can match casual conversation or ambiguous user intent. That can cause unintended activation of a skill that performs authentication, sends SMS, accesses local token files, and issues network requests, leading to surprise side effects and privacy-sensitive actions without sufficiently clear user intent.
The file prescribes fixed Chinese user-facing prompts for login and subsequent interaction, and the overall instructions are written as mandatory response templates in Chinese. There is no indication that the user may choose another language or that the locale restriction is optional or justified as a region-specific language policy.
This Python file contains the primary module docstring and CLI descriptions entirely in Chinese, including usage examples and operational messages. Under the policy rule for natural-language violations, forcing a specific language without opt-in or a clearly justified regional constraint is reportable.
The script sends a sensitive user token together with locally stored redeem-code history to a remote Meituan endpoint, but the executable flow provides no explicit user-facing notice, consent step, or data-minimization control. In a coupon-query skill this network transmission is functionally expected, but the local history file and token are still sensitive identifiers, so silent transmission increases privacy and misuse risk if the skill is invoked unexpectedly or in a broader agent context.
This file contains natural-language strings only in Chinese, including the module description and usage/help text. Under the policy, forcing a specific language without user opt-in is a locale/language policy violation unless the constraint is explicitly documented and justified.