eca icon indicating copy to clipboard operation
eca copied to clipboard

Bug/Security No sha256 check for the downloaded eca binary in eca-emacs

Open TobiasZawada opened this issue 8 months ago • 1 comments

Please avoid AI slops, be concise, and focus on what matters for this issue.

SHA256 of the downloaded eca binary not checked

There is no guarantee that the sha256 of the binary .emacs.d/eca/eca.zip is equal to the sha256 from github.

To Reproduce

Steps to reproduce the behavior:

  1. Run M-x eca-uninstall-server
  2. Instrument eca-info for edebug.
  3. Run M-x eca-install-server
  4. Continue at the first hit of eca-info (Downloading server)
  5. When execution is halted in eca-info replace the zip file with the zip file of predecessor eca version.
  6. When continuing the install continues without any error messages.

Expected behavior The install from zip archive with the predecessor eca version (and therefore non-matching sha256) should be rejected with some error message.

Additional context This is a security issue since the installation process for the eca binary is exposed to man in the middle attacks.

TobiasZawada avatar Apr 01 '26 16:04 TobiasZawada

Oh, this is the wrong repo. Sorry. I'll repost this in eca-emacs.

TobiasZawada avatar Apr 01 '26 16:04 TobiasZawada