4 ms·
Sorry, but I fail to see the difference with downloading and installing without verifying the code. And since verifying the code is usually hard, I don't see th
by amelius 11y ago
Sorry, but I fail to see the difference with downloading and installing without verifying the code. And since verifying the code is usually hard, I don't see the significance of this article.
Please enlighten me :)
- Xylakant 11y agoThis allows a malicious server to send you different content when you pipe to bash than it sends your browser (or even to a script), hiding the attack from people that give the script at least a cursory look. It's fundamentally not much worse than curl > file.sh && sh ./file.sh, but even if the victim notices something odd, all the oddity is invisible.
- Morgawr 11y agoThe difference is in the article itself. Regardless or not of the fact that most people don't verify the scripts that they run (we should! But we don't), the curl | bash paradigm, as explained in the article, actually makes it possible for the attacker to provide two different types of scripts depending on the situation. Are we dealing with a smarter-than-average user that is downloading the script and then running it (who knows, he might actually read it too!)? Let's serve a legit one. Are we dealing with somebody who's just mindlessly piping curl output into sh? We found our victim!