Back to skill

Security audit

Online_MinerU

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports disabled TLS verification when sending OpenList credentials and a risky output-directory deletion path; the scan is partial, so evidence is incomplete.

Consider the suspicious verdict before installing, especially the reported credential interception and possible deletion of files outside the intended output directory. The scan also reports an undeclared OpenList/AList integration and missing privacy warnings for sending local PDFs to MinerU. Dependency versions are unpinned, and the scan is marked partial because some referenced paths could not be resolved; affected dependency versions and those unresolved references remain unverified.

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

T09 · Insecure Skill Coding Practices

Error
Location
scripts/openlist_url.py
Finding

Disabled TLS verification exposes OpenList credentials to network interception

Content
View full analysis

Impact

The attacker can capture the OpenList username, password and authentication token, then impersonate the account within its granted permissions. The attacker can also modify direct-link responses.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
Findings (19)

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/mineru_pdf2md.py (reported line 13)May include surrounding context.

python
4) 下载结果 zip(含 full.md + images/)
  5) 清理页眉页脚 + 重写图片路径 + 按页顺序合并成一个 md(md + images 目录)

Token 读取优先级:--token > 环境变量 MINERU_API_TOKEN > ~/.openclaw/.env > `openclaw secrets store get`(env 类型) > 技能目录 .secrets/mineru_token
"""
from __future__ import annotations

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/mineru_pdf2md.py (reported line 435)May include surrounding context.

python
token = resolve_token(args.token)
    if not token:
        raise SystemExit(
            "未找到 MINERU_API_TOKEN。请先设置环境变量 / ~/.openclaw/.env / OpenClaw secrets store / 技能 .secrets/mineru_token"
        )

    if args.ocr == "auto":

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/mineru_pdf2md.py (reported line 66)May include surrounding context.

python
v = os.environ.get("MINERU_API_TOKEN", "").strip()
    if v and "__OPENCLAW" not in v and "redacted" not in v.lower():
        return v
    for p in [Path.home() / ".openclaw" / ".env", Path.cwd() / ".env"]:
        d = _parse_env_file(p)
        for k in ("MINERU_API_TOKEN", "MINERU_TOKEN", "MINERU_KEY"):
            if d.get(k):

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/mineru_pdf2md.py (reported line 66)May include surrounding context.

python
v = os.environ.get("MINERU_API_TOKEN", "").strip()
    if v and "__OPENCLAW" not in v and "redacted" not in v.lower():
        return v
    for p in [Path.home() / ".openclaw" / ".env", Path.cwd() / ".env"]:
        d = _parse_env_file(p)
        for k in ("MINERU_API_TOKEN", "MINERU_TOKEN", "MINERU_KEY"):
            if d.get(k):

An existing output directory is recursively deleted without disclosure or confirmation.

High
Category
Output Handling
Confidence
99% confidence
Finding

merge_chunks recursively deletes an existing output directory without confirmation or checking that it contains only generated artifacts. Moreover, the original unsanitized stem—not the sanitized job name—is used in outdir / stem, so an absolute or traversal-containing --name can direct deletion outside the intended output location.

Content

No source excerpt is available for this finding.

The local-file quick start does not warn that PDF contents are sent to a third-party service.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The quick start instructs users to process a local PDF through MinerU's API without explicitly disclosing that the document leaves their device. Although the README identifies the API and explains server-side fetching for remote URLs, it provides no privacy warning for potentially sensitive local documents.

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.

The local-PDF workflow uploads document contents to MinerU without a privacy warning.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The workflow instructs uploading PDF chunks to MinerU, so local document contents leave the user's machine for third-party processing. Although the API and upload mechanics are described, the skill does not warn users about the privacy implications for confidential or sensitive PDFs.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/mineru_pdf2md.py (reported line 72)May include surrounding context.

python
if d.get(k):
                return d[k]
    try:
        r = subprocess.run(
            ["openclaw", "secrets", "store", "get", "MINERU_API_TOKEN"],
            capture_output=True, text=True, timeout=20,
        )

The script adds an undeclared OpenList/AList account-authentication capability.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

At L25–L30, the script submits a username and password to an OpenList/AList server and obtains an account token, subsequently used at L40–L41 to resolve a storage path. Although network access is expected for MinerU conversion and remote PDF input, authenticating to a separate file-storage service is an additional integration not declared by the manifest's local-file or remote-URL support.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% 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 · scripts/openlist_url.py (reported line 25)May include surrounding context.

python
def login(base, user, pwd, retries=8):
    for _ in range(retries):
        try:
            r = requests.post(base + "/api/auth/login",
                              json={"username": user, "password": pwd},
                              timeout=25, verify=False)
            j = r.json()

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
100% confidence
Finding

Disabling TLS certificate verification allows an attacker able to intercept traffic to impersonate the OpenList server and capture the submitted username and password. Globally suppressing TLS warnings further conceals the weakness, and account access may expose substantially more than the PDF being converted.

Content

Scanner excerpt · scripts/openlist_url.py (reported line 27)May include surrounding context.

python
try:
            r = requests.post(base + "/api/auth/login",
                              json={"username": user, "password": pwd},
                              timeout=25, verify=False)
            j = r.json()
            if j.get("code") == 200:
                return j["data"]["token"]

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% 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 · scripts/openlist_url.py (reported line 40)May include surrounding context.

python
def get_url(base, token, path, retries=8):
    for _ in range(retries):
        try:
            r = requests.post(base + "/api/fs/get", headers={"Authorization": token},
                              json={"path": path, "password": ""}, timeout=30, verify=False)
            j = r.json()
            if j.get("code") != 200:

Tainted flow: 'token' from requests.post (line 62, network input) → requests.post (network output)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/openlist_url.py (reported line 40)May include surrounding context.

python
def get_url(base, token, path, retries=8):
    for _ in range(retries):
        try:
            r = requests.post(base + "/api/fs/get", headers={"Authorization": token},
                              json={"path": path, "password": ""}, timeout=30, verify=False)
            j = r.json()
            if j.get("code") != 200:

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
100% confidence
Finding

Disabling certificate verification on the authenticated file request lets a network interceptor steal the bearer token and observe private file paths. An interceptor can also alter the returned download URL data, compromising the integrity of the downstream PDF retrieval workflow.

Content

Scanner excerpt · scripts/openlist_url.py (reported line 41)May include surrounding context.

python
for _ in range(retries):
        try:
            r = requests.post(base + "/api/fs/get", headers={"Authorization": token},
                              json={"path": path, "password": ""}, timeout=30, verify=False)
            j = r.json()
            if j.get("code") != 200:
                raise SystemExit(f"取直链失败: {j}")

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
84% confidence
Finding

The open-ended pypdf requirement permits installation of unreviewed future releases, making the installed code dependent on package-index state rather than a reviewed artifact. This is a supply-chain hardening weakness, particularly for a library parsing untrusted PDFs, but it does not prove that any installed release is vulnerable.

Content

Scanner excerpt · requirements.txt (reported line 1)May include surrounding context.

text
pypdf>=5
requests>=2.28

Unverifiable Dependency: pypdf has 119 known advisory(ies) (CVE-2026-84310 (pypdf: Possible long runtimes/large memory usage when retrieving outlines); CVE-2026-48156 (pypdf: Possible long runtimes for zero-only width values in cross-reference stre); CVE-2026-24688 (pypdf has possible Infinite Loop when processing outlines/bookmarks) +116 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
84% confidence
Finding

The open-ended requests requirement allows dependency code to change between installations without review. Because this library handles authenticated API traffic and document transfers, a compromised allowed release could affect credentials or contents, although no such compromise is demonstrated here.

Content

Scanner excerpt · requirements.txt (reported line 2)May include surrounding context.

text
pypdf>=5
requests>=2.28

Unverifiable Dependency: requests has 16 known advisory(ies) (CVE-2014-1830 (Exposure of Sensitive Information to an Unauthorized Actor in Requests); CVE-2024-47081 (Requests vulnerable to .netrc credentials leak via malicious URLs); CVE-2024-35195 (Requests `Session` object does not verify requests after making first request wi) +13 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.