Back to skill

Security audit

2ryun第二现实(中文版)

Security checks for vulnerabilities and agentic risk

Overview

This is a legitimate 2Ryun API guide, but it gives an agent broad content upload, publishing, deletion, and API-key powers without enough guardrails.

Install only if you intend to let an agent operate your 2Ryun account. Use a narrowly scoped, revocable API key; do not paste long-lived secrets into ordinary chat if a safer secret mechanism is available. Require the agent to confirm exact files, document/page/note titles, IDs, and visibility before upload, publish, update, delete, or extraction, and treat returned attachment or published-page URLs as potentially public.

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 (3)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:206
Finding

Uploads Produce Unauthenticated Public File URLs Without a Required Privacy Warning

Content
View full analysis
``` The Skill states that this URL can be used directly in image and video elements. It does not require explicit user confirmation or provide a confidentiality warning before uploading. ### Technical Analysis The Skill instructs the Agent to transfer local files to a third-party service. Once uploaded, the returned file path is accessible without authentication. Although public-by-URL delivery may be an intended service feature, the Skill does not establish a security boundary between public assets and confidential local files. The instructions do not require the Agent to: - Confirm the exact local file selected for upload. - Inform the user that the resulting URL is unauthenticated. - Reject secrets, private documents, personal data, or proprietary material. - Obtain explicit consent before transferring a local file to the service. - Verify whether the service supports private attachment visibility. The absence of these safeguards creates a data-disclosure risk when an Agent selects a file based on an ambiguous user request or handles sensitive content without recognizing that the resulting URL is publicly accessible. ### Attack Path 1. A user asks the Agent to upload or embed an image, document, video, or other local asset. 2. The Agent selects a local file and submits it to `/restapi/attachments/upload` using the user's bearer token. 3. The third-party service stores t ...[truncated 1117 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:44
Finding

Conflicting Knowledge-Extraction Field Can Defeat the User's Processing Choice

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:291
Finding

Skill Directs the Agent to Ask for a Bearer API Key Without Secure Secret-Handling Requirements

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (28)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
84% confidence
Finding

The skill exposes a destructive delete-document operation that an agent could invoke with only an ID parameter. In this skill context, the agent is meant to classify and manage documents for knowledge-base inclusion, so access to deletion materially increases the risk of prompt-driven destructive actions, accidental deletion, or misuse if user intent is ambiguous.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 268)May include surrounding context.

1.7 删除文档

text
DELETE /restapi/documents/delete/:id

返回

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

This endpoint revokes sharing for a specified document/user pair and could be misused through parameter manipulation or ambiguous user instructions. Although less destructive than deletion, it can remove legitimate access and disrupt collaboration if the agent acts on the wrong IDs.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 421)May include surrounding context.

1.17 取消分享

text
DELETE /restapi/documents/share/:id/:userId

取消对特定用户的文档分享。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
82% confidence
Finding

Deleting knowledge-base entries is a destructive state-changing action that can remove curated structured knowledge and related downstream value. In an agentic integration focused on extraction and organization, this endpoint broadens the blast radius of prompt injection or operator error beyond a single document.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 755)May include surrounding context.

2.8 删除条目

text
DELETE /restapi/wiki/entries/:id

2.9 审核 Enrichment

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Deleting generated HTML/pages can remove published or draft content and cause content availability loss. In this context, the skill also includes public publishing, so unintended deletion could break shared links or published pages that users expect to remain accessible.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 1105)May include surrounding context.

3.8 删除生成记录

text
DELETE /restapi/gen-html/generations/:id

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

The note deletion endpoint is destructive and can be triggered with only a note ID. Even though notes are lower-impact than documents/wiki entries, an agent could still delete personal or operational information due to ambiguous prompts or parameter confusion.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 1357)May include surrounding context.

5.5 删除笔记

text
DELETE /restapi/note/:id

返回

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
83% confidence
Finding

Deleting attachments removes both metadata and the physical file, which can permanently break embedded images/videos/documents across pages and documents. Because uploaded files are also publicly addressable by URL, accidental or malicious deletion can create visible broken content and irreversible data loss if no recovery path exists.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 1467)May include surrounding context.

6.5 删除附件

text
DELETE /restapi/attachments/:id

删除附件(同时删除物理文件与缩略图),并释放存储配额。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
94% confidence
Finding

技能暴露文档删除接口,但未要求在执行删除前进行资源确认、范围校验或二次确认。若 Agent 受到提示词混淆、参数注入或用户表述含糊影响,可能删除错误文档,造成不可逆的数据丢失。

Content

Scanner excerpt · SKILL.md (reported line 84)May include surrounding context.

md
### 场景 1.3:更新 / 删除

- `PUT /restapi/documents/update/:id -d '{"title":"...","content":"..."}'`
- `DELETE /restapi/documents/delete/:id`

---

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

技能说明发布后会生成可访问 URL,但没有明确警告该链接可能是公开可访问的。用户若误将内部报告、客户信息或未审阅内容发布,可能导致立即的信息公开泄露。

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
94% confidence
Finding

笔记删除接口同样属于破坏性操作,但技能没有规定确认、对象验证或撤销机制。攻击者或误操作可借由模糊指令触发删除,导致用户笔记内容丢失。

Content

Scanner excerpt · SKILL.md (reported line 200)May include surrounding context.

md
- `GET /restapi/note?page=1&pageSize=20` — 笔记列表
- `GET /restapi/note/:id` — 获取单篇
- `PUT /restapi/note/update/:id -d '{"title":"...","content":"..."}'` — 更新
- `DELETE /restapi/note/delete/:id` — 删除

**笔记 vs 文档**:笔记**不进入知识库**,没有 `wikiAutoExtract` 设置。适合临时内容、随手记、灵感备忘。需要长期保存并进入知识库的内容用文档。

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

技能明确写明上传后返回的素材 URL 无需 API Key 即可访问,但没有将其作为显式安全警告处理。若上传内容包含敏感图片、视频或文档,任何获得链接的人都可直接访问,形成公开泄露面。

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

附件删除会直接移除素材资源,且这些资源可能被文档、网页或外部链接引用。技能未要求先检查引用关系、确认目标或提示后果,容易导致内容损坏、链接失效或重要资产丢失。

Content

Scanner excerpt · SKILL.md (reported line 235)May include surrounding context.

md
- `GET /restapi/attachments?type=image` — 列表(`type`: image/video/audio/document,支持分页、关键词、文件夹)
- `GET /restapi/attachments/file/:id` — 下载文件
- `DELETE /restapi/attachments/:id` — 删除

支持格式:图片(png/jpg/jpeg/gif/svg/webp)、视频(mp4/webm)、音频、文档等,单文件上限 20MB。

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 168)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/documents/create \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The spec instructs users to upload files and send full document content to endpoints like import, wiki extraction, and HTML generation, but it does not include warnings that user documents and attachments are transmitted to a remote service. For markdown files, behaviors affecting user data and privacy should be disclosed clearly.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 255)May include surrounding context.

请求示例

bash
curl -X PUT https://www.2ryun.wiki/restapi/documents/update/6a69810fef276a17f2fb089f \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "更新后的标题", "content": "更新后的内容", "tags": ["新标签"]}'

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

This markdown file describes deletion and publication endpoints such as document deletion and later public publishing, but it does not warn users about irreversible effects, access changes, or the need to confirm before invoking them. Under the markdown-file criteria, descriptions that omit warnings for actions affecting user data or system/privacy exposure should be flagged.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 296)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/documents/batch \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": ["6a69810fef276a17f2fb089f", "6a69810fef276a17f2fb08a0"]}'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 467)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/wiki/extract \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 581)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/wiki/extract-batch \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 959)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/gen-html/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 1127)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/gen-html/generations/xxx/chat \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"feedback": "请把页面标题颜色改为深蓝色,字号增大到 32px"}'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 1303)May include surrounding context.

请求示例

bash
curl -X POST https://www.2ryun.wiki/restapi/note/create \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "灵感备忘", "content": "想到一个好点子..."}'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · 2ryun-api-spec-cn.md (reported line 1346)May include surrounding context.

请求示例

bash
curl -X PUT https://www.2ryun.wiki/restapi/note/6a69810fef276a17f2fb0900 \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "更新后的备忘", "content": "补充了更多细节"}'

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

技能描述中的触发词覆盖“文档管理、网页、发布”等较宽泛场景,容易在用户仅泛泛提及相关词汇时被误触发。误触发后,Agent 可能在缺乏明确授权与上下文确认的情况下调用外部 API、请求 API Key 或推动数据外发。

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

该技能的核心能力就是通过 REST API 将文档内容发送到外部 2Ryun 服务,因此外部传输本身是真实存在的风险面。结合文档管理和知识库场景,若缺少用户知情与确认,可能把敏感文本、研究资料或内部信息外发到第三方平台。

Content

Scanner excerpt · SKILL.md (reported line 47)May include surrounding context.

从文本内容创建:

bash
curl -X POST https://www.2ryun.wiki/restapi/documents/create \
  -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{
    "title": "文档标题",

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

文档导入和文件上传会将本地或用户提供的数据发送到第三方服务,但技能未要求在操作前显式提醒用户这是一次外部传输。对于可能包含敏感资料、内部文档或受监管数据的内容,这会增加无意数据泄露和合规风险。

Content

No source excerpt is available for this finding.