Back to skill

Security audit

Cctv News Fetcher Conflict

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to fetch CCTV news as advertised, but its crawler follows unvalidated links from remote pages and sends a built-in cookie, so users should review its network behavior before installing.

Install only if you are comfortable running a local news crawler that makes outbound web requests. The main issue is not hidden behavior or persistence; it is that the crawler trusts links found in remote pages and may request destinations outside CCTV if those pages are manipulated. A safer version should allowlist CCTV HTTPS domains, validate redirects, remove the hard-coded cookie, cap fetched links and response sizes, add timeouts, and pin dependencies exactly.

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

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/news_crawler.js:124
Finding

Unvalidated article URLs permit server-side request forgery

Content
View full analysis
a.getAttribute('href') || ''); const headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8', 'Cache-Control': 'no-cache', 'Cookie': 'cna=DLYSGBDthG4CAbRVCNxSxGT6', 'Host': 'tv.cctv.com', 'Pragma': 'no-cache', 'Proxy-Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36' }; const data = await Promise.all(pageUrls.map(async pageUrl => { try { const pageResponse = await fetch(pageUrl, { headers }); ``` The same vulnerable pattern also occurs in the older and mid-period crawler paths: ```javascript const pageUrls = rawList.slice(1).map(item => item.match(/(http.*)/)?.[0].split('\'')[0] || ''); ``` ```javascript const pageUrls = soup.querySelectorAll('#contentELMT1368521805488378 li a') .slice(1) .map(a => a.getAttribute('href') || ''); ``` Each resulting value is subsequently passed to `fetch(pageUrl, { headers })`. ### Technical Analysis The crawler retrieves an index page from a fixed CCTV URL but then trusts article links extracted from that remotely supplied HTML. Before issuing secondary requests, it does not validate: - The URL scheme. - The destination hostname. - The destination port. - Whether the URL contains embedded credentials. - Whether DNS resolution points to loopback, private, link-local, or other restricted addresses. - Whether redirects remain on a ...[truncated 2211 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/news_crawler.js:133
Finding

Unnecessary hard-coded tracking cookie is disclosed with article requests

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill instructs the agent to execute a local JavaScript crawler that fetches external content, but the manifest declares no explicit tool scope or permissions. This creates an authorization gap where a user-invocable skill can perform network-capable actions without clear restriction or review, increasing the risk of unintended data access or misuse of execution capabilities.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The only demonstrated user prompt is written in Chinese, which implies the skill is intended to operate in a fixed language. There is no accompanying note that users may choose another language or that the Chinese locale is a documented requirement, so this may violate language/locale policy expectations.

Content

No source excerpt is available for this finding.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

This manifest file uses the description "Fetch news from CCTV," which describes a general capability but does not define any specific trigger phrases, scope boundaries, or exclusion conditions. In manifest files, vague capability descriptions can contribute to ambiguous activation and unintended invocation.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
87% confidence
Finding

Using a caret range for dependencies allows automatically accepting future minor or patch releases, which can introduce malicious code, regressions, or breaking security behavior through the supply chain. In this skill's context, the risk is somewhat limited because there is only one dependency and package.json itself contains no active code, but it still weakens build reproducibility and increases exposure to compromised upstream releases.

Content

Scanner excerpt · package.json (reported line 7)May include surrounding context.

json
"description": "Fetch news from CCTV",
    "main": "scripts/news_crawler.js",
    "dependencies": {
        "node-html-parser": "^7.0.2"
    }
}

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The code hard-codes Accept-Language: zh-CN,zh;q=0.9,en;q=0.8, which imposes a locale preference in outbound requests. Under the policy, forcing a specific language or locale without user choice or a clearly documented region-specific justification is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

This function also hard-codes Accept-Language: zh-CN,zh;q=0.9,en;q=0.8, creating the same locale restriction in outbound requests. The file does not provide a user-selectable language option or explain why this locale must be enforced.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The hard-coded Accept-Language value enforces a Chinese locale preference for requests in this code path as well. Because no opt-in or justification is present in the file, this matches the language/locale policy violation category.

Content

No source excerpt is available for this finding.