Back to skill

Security audit

美团外卖

Security checks for vulnerabilities and agentic risk

Overview

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.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (4)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:179
Finding

Authentication Token Exposure Through Process Command-Line Arguments

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/auth.py:252
Finding

Session and Device Tokens Returned in Standard Output

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/auth.py:239
Finding

Session Token Included in Token-Verification Query String

Content
View full analysis
`. 2. A reverse proxy, server, monitoring agent, or tracing system records the complete request URL. 3. An attacker gains read access to the corresponding logs or telemetry. 4. The attacker extracts the token from the query string. 5. The token is replayed against Meituan APIs before expiration or revocation. ### Impact Assessment Exploitation can compromise the Meituan session represented by the leaked token. The accessible operations are limited by server-side token permissions, but may include coupon issuance or coupon-history operations. The vulnerability does not directly grant access to the local host or elevate operating-system privileges. ]]>
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/issue.py:87
Finding

Raw Session Tokens Stored as Plaintext Coupon-History Keys

Content
View full analysis
list[str]: history = load_history() token_data = history.get(sub_channel_code, {}).get(user_token, {}) codes = [] for date in dates: date_codes = token_data.get(date, {}).get(TASK_TYPE, []) codes.extend(date_codes) ``` The documented history format also explicitly uses the raw token as a key: ```json { "": { "": { "": { "coupon": ["redeem_code_1"] } } } } ``` ### Technical Analysis The coupon-history file uses a live account token as a JSON object key. This duplicates authentication material outside the dedicated authentication file and combines it with activity metadata and redemption codes. The code attempts to apply mode `0600`, which is a positive control on operating systems that enforce POSIX permissions. It does not eliminate the underlying exposure because: - The file may be copied into backups or diagnostic bundles. - The storage path can be redirected through `XIAOMEI_COUPON_HISTORY_FILE`. - Windows may not enforce the requested mode because chmod failures are ...[truncated 1309 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

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.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

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.

Content

No source excerpt is available for this finding.