mateclaw icon indicating copy to clipboard operation
mateclaw copied to clipboard

[Bug] security: x-intel install step uses unpinned `curl … xurl/main/install.sh | bash`

Open Dimooyoyo opened this issue 3 weeks ago • 1 comments

What broke? (required, attach screenshot)

Affected file (branch dev)

  • mateclaw-server/src/main/resources/skills/x_intel/SKILL.md:64, under "## Install":
curl -fsSL https://raw.githubusercontent.com/xdevplatform/xurl/main/install.sh | bash

What the text does

It offers a pipe-to-shell installer from the xdevplatform/xurl main branch as the primary install option, unbounded by version or checksum.

Why it matters

  • main is mutable: any push to that repository executes on every user's machine the next time the skill is followed.
  • The skill then drives the X API, so the installer runs in an environment that holds X developer credentials.
  • The file is a bundled resource shipped with mateclaw, so the unsafe command is distributed to every installation.

Suggested fix

  • Prefer the pinned Homebrew cask (already listed) or pin the Go install to an exact version; verify a checksum for the shell installer.
  • Do not pipe network content into bash; if it must stay, require review first.

How to reproduce? (required, numbered steps)

.

Affected module (optional, multi-select)

No response

Environment (required, one line)

.

Dimooyoyo avatar Nov 10 '26 10:11 Dimooyoyo

@Dimooyoyo Thanks for reporting this. Confirmed and fixed on dev: https://github.com/mateaix/mateclaw/commit/44470531797f89fba1e1e68957abbd31b4346d56.

The bundled x-intel installation section no longer downloads a mutable main/install.sh into a shell. The preferred Go command now pins github.com/xdevplatform/[email protected] instead of @latest, with its Go prerequisite and executable PATH documented. Homebrew remains an explicitly version-managed alternative; it is not described as an exact-version pin. The guidance also explicitly prohibits downloading and executing remote shell installers.

Verified against the upstream v1.3.4 release and tagged go.mod, and checked the bundled installation text. No installer was executed and no X credentials were used. Please update to the latest dev and recheck the bundled skill. Let us know if you find another mutable installer path. Thank you!

mateaix avatar Nov 11 '26 06:11 mateaix