T09 · Insecure Skill Coding Practices
- Location
scripts/fetch_news.py:78- Finding
TLS Certificate Verification Disabled for Official RSS Retrieval
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent Chinese economic-news aggregator, but its fallback script can present unauthenticated or spoofed links as official news.
Review before installing. The skill does not show local persistence or credential access, but its fallback script can weaken the reliability of official-source claims. Use it only if you are comfortable with web access to Chinese news sites and Bing, and treat generated links as unverified unless the script is fixed to require HTTPS, validate certificates, and check parsed hostnames against an exact allowlist.
scripts/fetch_news.py:78TLS Certificate Verification Disabled for Official RSS Retrieval
scripts/fetch_news.py:128Official Source Allowlist Bypass Through URL Substring Matching
The skill instructs use of network-capable tools such as web_search and web_fetch, and even a local script that fetches remote content, but it does not declare any explicit tool scope or allowed-tools boundary. This creates an authorization ambiguity where the runtime may permit broader network access than intended, increasing the risk of unintended external requests or misuse if the skill is triggered in the wrong context.
The trigger phrases are very broad and map to common finance and news queries such as '经济新闻', 'GDP', 'CPI', and '今日财经', so the skill may activate for many ordinary conversations not specifically requesting this skill. That overbroad activation can cause unintended web access, unexpected tool use, and result steering toward this skill when a user may have wanted a general answer instead.
The skill is entirely specified in Chinese and describes output behavior for Chinese economic news, but it does not explicitly let users choose another language for the response. Under the policy, forcing a specific language without opt-in can be a natural-language policy violation unless the locale restriction is clearly justified and documented.
The natural-language description, CLI help text, and output are all hard-coded in Chinese and the search query logic is specific to the zh-CN/CN locale. There is no indication that users can opt into another language or locale, which conflicts with the policy against forcing a specific language without user choice.
Disabling TLS certificate verification allows man-in-the-middle attackers to intercept and modify HTTPS RSS responses. In this skill's context, that could let an attacker inject fake news items or malicious links while the output still appears to come from trusted official sources.
Using verify=False is an unsafe default because it disables server identity verification for HTTPS connections. Since this skill markets content as authoritative economic news, tampered transport can directly undermine integrity and user trust by substituting attacker-controlled articles or links.
def fetch_rss(feed):
"""抓取 RSS 源"""
try:
resp = requests.get(feed["url"], headers=HEADERS, timeout=10, verify=False)
resp.encoding = "utf-8"
root = ET.fromstring(resp.text)
articles = []
The manifest description says the skill fetches news only from specific official media outlets, which implies those outlets are the direct sources. In practice, the code queries cn.bing.com and extracts results from a search engine before filtering by official domains, so the aggregation pipeline depends on an unlisted third-party source rather than exclusively scraping the named media sites directly.
The search parsing code labels results as '官方媒体' before strict allowlist enforcement, and domain checking later relies on substring matching rather than robust hostname validation. An attacker could craft or surface deceptive URLs containing approved-domain strings and have them presented as authoritative, enabling phishing, misinformation, or unsafe link delivery under a trusted label.