logoalt Hacker News

Rucadiyesterday at 8:23 PM2 repliesview on HN

If the source is known, it is not less bad that downloading a program and running it


Replies

homebreweryesterday at 8:36 PM

It is if the script is written badly, gets truncated while it's being downloaded, and fails to account for this possibility.

Look into tailscale's installation script, they wrapped everything into a function which is called in the last line — you either download and execute every line, or it does nothing.

show 2 replies
Milpotelyesterday at 11:27 PM

That's quite uncommon. Typically your distribution checks that the downloaded source/binary has the correct checksum and an experienced maintainer checked the (sandboxed) installation. Here someone puts an arbitrary script online that runs with your user's permission and you hope that the web page is not hijacked and some arbitrary dev knows how to write bash scripts.