T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:234- Finding
External Secret-File Access and Automated Credential Entry Exceed Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 234–237
Vulnerability Type: Unauthorized access to sensitive login information and unnecessary browser automation
Risk Level: MediumVulnerable Instruction
markdown - **Login method**: Web login (https://creator.xiaohongshu.com) - **Phone number**: 13308844548 (stored in ../main-conversation/SECRET.md) - **Use agent-browser to fill it automatically** - **Note**: When a verification code is required, call browser_wait_user_actionTechnical Analysis
The Skill directs the Agent to access a sensitive file outside the Skill directory, retrieve personal login information, and enter that information into an external website through browser automation. It also embeds a personal phone number directly in the Skill instructions.
These actions exceed the minimum privileges required for the declared content-generation, review, and publication-preparation functionality. The Skill explicitly states that publication should be performed manually, so automated access to account credentials is unnecessary.
Referencing
../main-conversation/SECRET.mdalso crosses the Skill package boundary. If the Agent has filesystem access, this instruction could expose additional sensitive information present in that file, not merely the referenced phone number.Attack Path
- A user invokes the publication-preparation workflow.
- The Agent loads the instructions in
SKILL.md. - The Agent follows the relative path to
../main-conversation/SECRET.md. - Sensitive login information is read from outside the Skill directory.
- The Agent opens
https://creator.xiaohongshu.comusing browser automation. - The Agent automatically enters the retrieved personal login information.
- The workflow pauses for user involvement only when a verification code is requested.
- If authentication succeeds, the browser session may obtain access to the associated creat ...[truncated 788 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the hardcoded phone number from
SKILL.md. - Remove all references to
../main-conversation/SECRET.mdand prohibit the Skill from reading files outside its own package. - Do not permit the Agent to read, store, transmit, or automatically enter passwords, phone numbers, verification codes, session tokens, or other authentication data.
- Require the user to open the creator portal and complete authentication manually.
- Restrict the Skill to generating a publication package containing reviewed text, images, tags, and user-approved product links.
- Add an explicit boundary stating that the Skill must not log in, publish, modify account settings, or perform account actions.
- Store any genuinely necessary sensitive data in a managed secret store with explicit user authorization, narrow access controls, audit logging, and no exposure to content-generation prompts.
- Rotate or review any credentials associated with the disclosed phone number if the project has been shared outside its intended environment.
- Remove the hardcoded phone number from
