Back to skill

Security audit

htmlhoster-upload

Security checks for vulnerabilities and agentic risk

Overview

The scanners flag a gap in the documented protection for ZIP uploads, so this skill is rated suspicious with medium overall confidence.

Consider whether you are comfortable with the ZIP scan gap and the included deletion capability before installing. Treat uploaded content as potentially public, and avoid sending ZIPs that may contain secrets or personal information. The scan was marked partial because a referenced local path was missing, so the evidence does not fully cover that reference.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • 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 (21)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 139)May include surrounding context.

md
personal data (emails, phone numbers, internal hostnames), or anything you
wouldn't paste into a public chat. If the scan aborts, review the flagged file
before publishing. Pass `--no-check` only when you are certain the content is
safe. Never upload real credentials or personal data, even with `--no-check`.

## License

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
**Step 2 — the script's automatic scan (defence in depth).**
The bundled `scripts/upload.py` also runs a secret scan **before every upload**
and aborts (non-zero exit) if it detects a likely secret. If it aborts, do **not**
blindly re-run with `--no-check` to push the content through — review the flagged
file with the user first. Only pass `--no-check` when the user has explicitly
confirmed the content is safe to publish. Even with `--no-check`, never upload
real credentials or personal data: the final responsibility is yours, not the

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
and aborts (non-zero exit) if it detects a likely secret. If it aborts, do **not**
blindly re-run with `--no-check` to push the content through — review the flagged
file with the user first. Only pass `--no-check` when the user has explicitly
confirmed the content is safe to publish. Even with `--no-check`, never upload
real credentials or personal data: the final responsibility is yours, not the
script's.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The code contains no file processing, upload, network request, or URL-generation behavior. Its observable behavior does not implement the declared hosting purpose. This assessment is limited to the supplied example chunk; it does not establish what other skill files may do.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared purpose covers publishing and obtaining public URLs, but the supplied command requests deletion of an existing item. Deletion is a distinct destructive capability not disclosed in the description. The script implementation is not provided, so the assessment concerns the command's explicitly requested operation rather than confirmed successful deletion.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The upload functionality matches the declared purpose, and secret scanning is a supporting safety measure. However, deleting previously hosted content is a distinct, destructive capability not disclosed in the description. No unrelated local-file discovery, command execution, or covert data transfer is evident in this code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Deleting existing content is a distinct, destructive capability rather than an implementation detail of publishing content. The snippet explicitly requests deletion, although the script implementation is not provided, so successful deletion cannot be verified.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
The bundled `scripts/upload.py` also runs a secret scan **before every upload**
and aborts (non-zero exit) if it detects a likely secret. If it aborts, do **not**
blindly re-run with `--no-check` to push the content through — review the flagged
file with the user first. Only pass `--no-check` when the user has explicitly
confirmed the content is safe to publish. Even with `--no-check`, never upload
real credentials or personal data: the final responsibility is yours, not the
script's.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
- `POST /agent/upload`    — HTML / images / PDF / ZIP
- `POST /agent/markdown`  — Markdown rendering & hosting

- `DELETE /api/uploads/{uploadId}` — remove a page you uploaded (see *Deleting*)

Both upload endpoints return JSON containing `entryUrl` (the public page), `files`
(per-file URLs) and `deleteToken` (see *Deleting* below).

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

python scripts/upload.py --mode delete --id A1B2C3D4 --token

text

Or directly: `DELETE /api/uploads/{uploadId}` with header `X-Delete-Token: <token>`.

Guidance for agents:
- Report `entryUrl` to the user, and **keep `deleteToken` in your working notes** for

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 138)May include surrounding context.

md
them for sensitive material the scanner may miss — obfuscated credentials,
personal data (emails, phone numbers, internal hostnames), or anything you
wouldn't paste into a public chat. If the scan aborts, review the flagged file
before publishing. Pass `--no-check` only when you are certain the content is
safe. Never upload real credentials or personal data, even with `--no-check`.

## License

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/upload.py (reported line 10)May include surrounding context.

python
htmlhoster is a PUBLIC site: every uploaded file is reachable by anyone who has
the URL, with no authentication. To reduce accidental leaks, the script scans
the content for likely secrets / credentials BEFORE every upload and aborts if
it finds any. Pass --no-check to skip the scan, but only with content you are
certain is safe to publish.

Usage:

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/upload.py (reported line 278)May include surrounding context.

python
p.add_argument("--asset", action="append", default=[], help="(markdown) asset file path")
    p.add_argument("--asset-path", action="append", default=[], help="(markdown) asset relative path, optional")
    p.add_argument("--api-base", default=os.environ.get("HTMLHOSTER_API_BASE", API_BASE_DEFAULT))
    p.add_argument("--no-check", action="store_true",
                   help="skip the pre-upload sensitive-information scan (use only with trusted content)")
    args = p.parse_args()

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/upload.py (reported line 62)May include surrounding context.

python
_SCAN_TEXT_EXTS = {
    ".html", ".htm", ".md", ".markdown", ".txt", ".text",
    ".json", ".js", ".mjs", ".ts", ".jsx", ".tsx", ".css", ".scss", ".less",
    ".xml", ".yaml", ".yml", ".toml", ".ini", ".cfg", ".conf", ".env",
    ".csv", ".log", ".sh", ".bash", ".zsh", ".py", ".rb", ".go", ".java",
    ".c", ".cpp", ".h", ".hpp", ".php", ".sql", ".rst", ".tex", ".gradle",
}

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/upload.py (reported line 69)May include surrounding context.

python
# Filenames that are sensitive regardless of content.
_SENSITIVE_NAME_TOKENS = (
    "id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
    ".env", "credentials", "secrets", ".npmrc", ".netrc",
    "authorized_keys", "known_hosts",
)
_SENSITIVE_NAME_EXTS = (".pem", ".key", ".p12", ".pfx", ".keystore", ".jks", ".kdbx")

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/upload.py (reported line 69)May include surrounding context.

python
# Filenames that are sensitive regardless of content.
_SENSITIVE_NAME_TOKENS = (
    "id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
    ".env", "credentials", "secrets", ".npmrc", ".netrc",
    "authorized_keys", "known_hosts",
)
_SENSITIVE_NAME_EXTS = (".pem", ".key", ".p12", ".pfx", ".keystore", ".jks", ".kdbx")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/upload.py (reported line 69)May include surrounding context.

python
# Filenames that are sensitive regardless of content.
_SENSITIVE_NAME_TOKENS = (
    "id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
    ".env", "credentials", "secrets", ".npmrc", ".netrc",
    "authorized_keys", "known_hosts",
)
_SENSITIVE_NAME_EXTS = (".pem", ".key", ".p12", ".pfx", ".keystore", ".jks", ".kdbx")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/upload.py (reported line 113)May include surrounding context.

python
if base in _SENSITIVE_NAME_TOKENS:
        return True
    for tok in _SENSITIVE_NAME_TOKENS:
        if tok in base:  # e.g. prod.env, my-credentials.json
            return True
    for ext in _SENSITIVE_NAME_EXTS:
        if base.endswith(ext):

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/upload.py (reported line 200)May include surrounding context.

python
loc = " (line %d)" % lineno if lineno else ""
        sys.stderr.write("    - %s  [%s]%s\n" % (path, label, loc))
    sys.stderr.write("\n    If you are CERTAIN the content is safe to publish, re-run with\n")
    sys.stderr.write("    --no-check. Otherwise remove the sensitive data first.\n\n")
    sys.exit(3)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network.

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.

HTML ZIP uploads bypass the content scan despite the documented pre-upload scanning guarantee.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

HTML-mode uploads call _scan_files, which skips ZIP content because .zip is not a scanned text extension; enabling --unzip does not invoke _scan_zip. Consequently, an ordinary ZIP containing credentials can pass the default checks and have its contents publicly hosted, contrary to the documented pre-upload protection.

Content

No source excerpt is available for this finding.