miseSECURITY.md
068ebffbdab9d8187d479ff901a998dfbefe141d17 lines · 1.3 KiBRaw
- # Security Policy
- ## Reporting a Vulnerability
- If you discover a security vulnerability in this plugin, please report it responsibly instead of opening a public issue:
- - Contact: `security@cleyrop.com`
- - Include a clear description of the issue, reproduction steps, and affected version or commit.
- We will acknowledge receipt promptly and coordinate a fix and disclosure timeline.
- ## Security Model
- - **Mandatory integrity checks**: Every downloaded release artefact must declare a 64-character hex `sha256` digest in the release API response and is verified with `mise`'s built-in `checksum` module before extraction or installation. Missing or mismatched digests fail closed.
- - **Optional Cosign verification**: When `verify_cosign = true` (or `MISE_FORGE_VERIFY_COSIGN=1`) is enabled, the plugin requires both `asset.signature_url` and `release.key_url`, downloads them, and runs `cosign verify-blob` before installing.
- - **Strict input validation**: Repository and binary names are restricted to `[A-Za-z0-9._-]+`, reject path traversal (`..`), and reject the reserved `api` repository name. Download URLs are restricted to `http://` and `https://`.
- - **No scraping or guessing**: Platform selection (`os`, `arch`, `bin`) is read strictly from declared release manifest metadata. Unplaced assets (`os`/`arch`/`bin` set to `null`) are skipped.