Back to skill

Security audit

report-viewer

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this report-viewer skill suspicious because it reports serious unauthenticated access and file exposure risks, capabilities beyond the stated local report workflow, and incomplete inspection of the artifact.

Treat this as a review warning and weigh the reported unauthenticated file access and network exposure carefully before installing. The scan is incomplete: all 38 components were marked partially inspected, and several analyzers were degraded, so the results cannot establish that unreported behavior is safe.

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

T09 · Insecure Skill Coding Practices

Error
Location
app.py
Finding

Unauthenticated network API exposes local files and destructive operations

Content
View full analysis

Impact

Disclosure of UTF-8-readable files accessible to the backend, including sensitive configuration if present; unauthorized modification or deletion of reports and associated comments. Arbitrary CORS additionally allows cross-origin API interaction where browser network policy permits it.

T09 · Insecure Skill Coding Practices

Error
Location
app.py
Finding

Static-library endpoint permits directory traversal and arbitrary file download

Content
View full analysis

Impact

Download of files readable by the backend account, including binary files and sensitive files outside the project when their paths are known.

T09 · Insecure Skill Coding Practices

Warning
Location
app.py
Finding

Quiz query parameters can terminate inline scripts and execute attacker JavaScript

Content
View full analysis

Impact

JavaScript execution when the victim follows the link, allowing access to viewer-origin report and quiz data and calls to its management APIs from the victim's browser.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (39)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Most UI behavior is ordinary support for browser-based Excalidraw boards and is consistent with the description. However, the library publishing form serializes selected library elements, generates a preview, collects author name, social handles, website, and descriptive fields, and submits them as multipart FormData to an external cloud endpoint. This is an explicit, user-triggered publishing capability rather than an automatic background upload, but it materially exceeds the declared local REST API scope. The supplied chunk does not establish whether this bundled functionality is exposed by the surrounding application.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The primary report-viewer behavior matches the description, including Markdown rendering, Excalidraw editing, Reveal.js presentations, and comments. However, persistent assessment tracking is a distinct capability beyond report publication and feedback. More importantly, the implementation does not enforce the declared local scope: its default bind address is 0.0.0.0, CORS is unrestricted, and no authentication is implemented. Where network access is permitted, callers can read and modify stored reports and results, and can publish server-readable files using source_path. These are material scope and resource-access differences, not merely supporting storage or rendering details.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The commands implement a repository contribution workflow rather than report publication through the declared local REST API. Creating and remotely pushing commits are consequential capabilities not disclosed in the description; they are not merely report-rendering implementation details.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- If the backend is **not running**, the skill starts it automatically via `start.sh`.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
nohup ./start.sh >/tmp/rv.log 2>&1 &

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
ctivation. Check `/tmp/rv.log` or run `cd /config/clawd/skills/report-viewer && ./start.sh` manually."

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [ ] Pre-flight: backend not running → starts via `start.sh` → "started successfully".

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [ ] Graceful degradation: `start.sh` fails → skill refuses and tells user.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| `html` (Quiz/Flashcard) | Interactive quizzes & flashcards — take `references/quiz-template.html`, replace placeholders, publish as `html` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**Quiz question types** (array `QUESTIONS` in `references/quiz-template.html`):

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- The flashcard engine inside `references/quiz-template.html` (SM-2 spaced repetition, 1–5 rating, `FLASHCARDS` array): posts `type:"flashcard"` with per-card `

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- Quiz template: `references/quiz-template.html`

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `references/flashcard-template.html` (standalone, `CARDS = [{q, a}]`): flip card, self-rate right/wrong. Posts `type:"flashcard"` with `score`/`total` on comp

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
The UI is themed via CSS custom properties in the `:root` block of `static/css/style.css`

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- No `<style>` block for layout colors — `style.css` already defines

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
components (KPI cards, filter buttons) that don't exist in `style.css`.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
styles / Chart.js / Excalidraw wrapper keep hardcoded colors) → `references/theming.md`.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- Theming guide: `references/theming.md` (CSS-variable palette, light-theme example, caveats)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
(copy the exact markup from the Excalidraw wrapper in `app.py`)

The server defaults to all network interfaces despite documenting a localhost default.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The module documentation at L0004 says the app runs on localhost by default, but L0032 defaults HOST to 0.0.0.0, which is passed to app.run at L1506. This exposes report and comment operations on reachable network interfaces rather than restricting them to the documented local boundary.

Content

No source excerpt is available for this finding.

Ae6

High
Category
analysis-evasion
Confidence
90% confidence
Finding

Instruction text uses inter-character separators to evade pattern matching

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, 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.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

Inline content:

bash
curl -s -X POST http://localhost:8765/api/publish \
  -H "Content-Type: application/json" \
  -d '{"title":"<short title>","format":"md|html|excalidraw|revealjs","content":"<raw content>"}'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

From a file on disk:

bash
curl -s -X POST http://localhost:8765/api/publish \
  -H "Content-Type: application/json" \
  -d '{"title":"<short title>","format":"md|html|excalidraw|revealjs","source_path":"/path/to/file"}'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/CUSTOM.md (reported line 41)May include surrounding context.

Create a test report with the new template:

bash
curl -s -X POST http://localhost:8765/api/publish \
  -H "Content-Type: application/json" \
  -d '{"title":"Test [my-report]","format":"md","content":"# Test\n\n[Placeholder] example"}'