Back to skill

Security audit

wb-comments

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports insecure connection settings and collection capabilities beyond its stated Weibo-only purpose; some checks were incomplete.

Consider the suspicious verdict and the reported credential and transport risks before installing. The Skillspector scan was partial: it fully inspected 2 of 6 components, and its tool-misuse analysis was degraded, so the evidence is incomplete.

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 plaintext HTTP exposes bearer tokens and login credentials

Content
View full analysis

Impact

An intermediary can capture the bearer token and replay authenticated API requests, including reading account/session data and issuing credit-consuming collection steps within that token's authority.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The /wb/comments/sessions methods align with the declared workflow. However, the exported ApiClient also exposes parallel non-Weibo collection APIs and unrestricted capability-based task submission through /platform/tasks. These are additional collection capabilities, not merely transport or authentication details. They require explicit invocation; this chunk does not automatically collect data from those platforms. Authentication, timeout handling, and export helpers are supporting implementation details. CSV formatting, billing, short-link resolution, and user confirmation between steps cannot be verified from this client-only chunk.

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, this function disables TLS certificate verification process-wide, allowing a network attacker to impersonate HTTPS services and intercept bearer tokens or modify collected results. It is an optional insecure mode rather than a demonstrated default, but its process-wide scope also exposes unrelated HTTPS requests; warnings do not restore authentication.

Content

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

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

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

The client exposes comment-collection capabilities for multiple platforms outside the declared Weibo-only scope.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The manifest describes collecting comments from Weibo, but L134–L243 implement separate Xiaohongshu, Douyin, Kuaishou, and Bilibili session APIs. These callable methods can create and advance collection sessions and retrieve results using the client's bearer token; they are additional platform capabilities, not implementation details required for Weibo collection.

Content

No source excerpt is available for this finding.

Configuration resolution automatically imports credentials and security settings from a different skill/service.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

Configuration resolution automatically imports a legacy bearer token, destination URL, and potentially insecure TLS setting without confirmation or destination validation. Although shared credentials are documented, carrying forward insecure settings or pairing an imported token with an overridden destination can silently weaken transport security or disclose the credential to an unintended service.

Content

No source excerpt is available for this finding.