Back to skill

Security audit

House Price - 房价

Security checks for vulnerabilities and agentic risk

Overview

This house-price skill has a coherent purpose, but its helper script allows broader network fetching and file writing than the stated use requires.

Review before installing. Use only trusted fangjia.fang.com city URLs or city slugs, avoid passing arbitrary URLs, and do not allow untrusted requests to choose a --chart path. Install dependencies in an isolated Python environment if possible.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
get.py:601
Finding

Unrestricted URL Fetching Enables Server-Side Request Forgery

Content
View full analysis
str: r = requests.get(url, headers={"User-Agent": DEFAULT_UA}, timeout=timeout) r.raise_for_status() ``` ```python if args.url: u = args.url.strip() path = urlparse(u).path.strip("/").split("/") slug = path[0] if path and path[0] else "" ``` ### Technical Analysis The `--url` option accepts an arbitrary URL and passes it directly to `requests.get()`. The code parses the URL path to obtain a slug but does not validate the scheme, hostname, port, resolved IP address, or redirect destination. Consequently, the documented option can be used to send requests to destinations other than the intended `fangjia.fang.com` service. Depending on the execution environment, reachable targets may include: - Loopback services such as `127.0.0.1` - Private-network services - Link-local cloud metadata endpoints - Internal administrative interfaces - Services exposed through HTTP redirects A timeout limits request duration but does not prevent unauthorized network access. The use of `raise_for_status()` also does not mitigate SSRF because the request has already reached the target. ### Attack Path 1. An attacker supplies a request that causes the Agent to invoke the Skill with a crafted `--url` value. 2. The value identifies an internal destination, such as a loopback service, private address, or metadata endpoint. 3. The URL is assigned to `u` without validation. 4. `fetch_html(u)` passes the value directly to `requests.get()`. 5. The Skill connects to a destination reachable from the Agent's network context. 6. Response content may be partially exposed through title, heading, price-block, or error-derived output, while timing and status behavior may also permit internal service discovery. ### Impact Assessment ...[truncated 580 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
get.py:546
Finding

Arbitrary Chart Output Path Permits File Overwrite

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:33
Finding

Unpinned Runtime Dependencies Create Supply-Chain Exposure

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- 需要 **查房价直达链接** 或 **slug 查询**(全国城市 slug 见同目录 **`city.md`**,与 `SKILL.md` 一层)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill instructs use of Python code that performs outbound network requests and can write files (for --chart HTML output), but it does not declare any explicit tool scope or permission boundaries. In an agent environment, this mismatch can lead to overbroad execution authority, making unintended network access or filesystem writes easier if the skill is triggered or reused in unsafe contexts.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger description includes broad language like 'or similar city housing price questions,' which weakens invocation boundaries and can cause the skill to activate on loosely related queries. In an agent system, overbroad triggering increases the chance of unnecessary web requests, unintended file-generating behavior, or the skill influencing answers outside its narrow domain.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

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

md
| 文件 | 说明 |
|------|------|
| `skills/house-price/SKILL.md` | 本技能说明(Agent 主入口) |
| `skills/house-price/city.md` | 城市 slug 速查表 |
| `skills/house-price/get.py` | 命令行抓取并打印 |

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown file presents all instructions, labels, and examples exclusively in Chinese, and does not indicate that the user can opt into another language or that the skill is intentionally limited to a Chinese-speaking audience. Under the policy rule, forcing a specific language without user opt-in 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
82% confidence
Finding

The generated HTML hard-codes lang="zh-CN" and all visible labels/content are emitted in Chinese. This imposes a specific language/locale without any user opt-in or configuration, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.