forgeFRENParcourir les dépôts

miseSECURITY.md

068ebffbdab9d8187d479ff901a998dfbefe141d

At commit 068ebff

17 lines · 1.3 KiBRaw
  1. # Security Policy
  2. ## Reporting a Vulnerability
  3. If you discover a security vulnerability in this plugin, please report it responsibly instead of opening a public issue:
  4. - Contact: `security@cleyrop.com`
  5. - Include a clear description of the issue, reproduction steps, and affected version or commit.
  6. We will acknowledge receipt promptly and coordinate a fix and disclosure timeline.
  7. ## Security Model
  8. - **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.
  9. - **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.
  10. - **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://`.
  11. - **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.