Brew bootstrap process is insecure
Medium
H
Homebrew
Submitted None
Actions:
Reported by
nightwatch-cybersecurity
Vulnerability Details
Technical details and impact analysis
The process described in this page is not secure - no checksum / PGP signature is published and there is no way to check the download is
legit:
https://brew.sh/
"/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)""
This can lead to supply chain attacks such as the one that just happened here:
https://about.codecov.io/security-update/
This can lead to two possible attacks:
1. Supply chain attacks if the script is modified on the server.
2. Injection attacks if the TLS connections are compromised.
## Impact
For brew, a checksum and a way to check it should be provided, and security information should be added to the webpage referenced above. This way users can check the downloads.
Report Details
Additional information and metadata
State
Closed
Substate
Informative
Submitted
Weakness
Code Injection