Back to skill

Security audit

xhs-short-url

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report broad data-collection capabilities beyond its stated short-link purpose and security weaknesses; the scan was partial, so the evidence is incomplete.

Consider not installing unless you need and trust the reported collection features. Before using it, clarify why it requests environment, network, and shell capabilities, whether the optional TLS bypass is enabled, and how authentication tokens are protected. The scan inspected only 2 of 7 components fully, so it cannot establish that unreported behavior is absent.

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

T09 · Insecure Skill Coding Practices

Warning
Location
src/config.js
Finding

Default HTTP transport exposes reusable authentication credentials

Content
View full analysis

Impact

Captured bearer tokens can be replayed to impersonate the user within the token's existing platform permissions, including accessing account information and submitting tasks that consume account points.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (4)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The declared scope is narrowly Xiaohongshu URL shortening, but the supplied module provides extensive unrelated data-collection capabilities across multiple platforms. Its methods can create, advance, finish, and retrieve collection sessions, which materially exceeds short-link generation. No dedicated long-to-short conversion method or 1–50 URL batch validation is visible in this chunk. Authentication, request handling, and export plumbing can be legitimate supporting details and are not the basis of the mismatch. These are callable client capabilities; the chunk does not demonstrate that collection runs automatically or establish the backend's implementation.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
98% confidence
Finding

When invoked, allowInsecureTls disables certificate verification process-wide, allowing a network attacker to impersonate HTTPS services and capture bearer tokens or alter API results. This is a conditional insecure mode rather than a demonstrated default, but warnings do not restore authentication, and the global setting affects other subsequent TLS connections in the process.

Content

Scanner excerpt · src/client.js (reported line 75)May include surrounding context.

js
/** 忽略 HTTPS 证书校验 (服务端自签/域名不匹配证书时由 insecure 配置开启)。进程级。 */
function allowInsecureTls() {
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
}

/** 业务错误: code 为后端错误码 (1001/1002/3001/...) */

The short-link skill exposes unrelated profile, comment, and danmaku collection capabilities across multiple platforms.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest describes only Xiaohongshu URL shortening, task polling, and result export, but the exported ApiClient implements authenticated collection-session creation, stepping, and retrieval for Xiaohongshu profiles (L178–L205), Douyin danmaku (L207–L233), and comments across numerous platforms (L257–L520). It also exposes generic platform-collection task submission (L240–L245), explicitly distinguished from URL-conversion tasks in the comment. These are callable collection capabilities unrelated to shortening supplied note URLs; their presence does not establish that they execute automatically.

Content

No source excerpt is available for this finding.