How to deal with formulae/casks that have abandoned/hijacked homepage URLs? #6232
Replies: 1 comment 1 reply
-
For formulae at least (but the same can/should apply to casks), we usually find an alternative homepage. This can often just be a GitHub page or similar or in rarer cases, we sometimes link to In the end, 0.01% of users use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
While looking through some casks, I noticed that the homepage URL for the
freesmug-chromium
cask appears to have been abandoned and taken over by scammers; it now seems to lead to some sort of online casino scam. This made me wonder how one should go about dealing with the homepage URLs of unmaintained/discontinued formulae/casks; as far as I could tell, there doesn't seem to be anything in the docs on how this specific type of situation should be dealt with.In this particular case, the
freesmug-chromium
has already been disabled, so no one will be able to install it anyways. However, despite this, it is still very much possible to run:or click the link as seen at the corresponding page in formulae.brew.sh and be unwittingly sent to the hijacked URL.
First things first, I hope we can all agree that this cask should now be removed immediately (Homebrew/homebrew-cask#217057). All formulae/casks are required to have a
homepage
stanza, so I see little reason to keep around one if said homepage was abandoned by the upstream developers.Secondly, I think that the Deprecating Disabling and Removing Formulae docs should be updated to state that any formula/cask found to have an abandoned homepage URL should qualify for immediate removal.
And finally, perhaps some guardrails should be added to prevent phishing/scam attacks caused by abandoned/hijacked homepages that could potentially go unnoticed. What I propose is the following:
:unmaintained
or:discontinued
as the reason, then treat the homepage URL as potentially dangerous. This means showing a warning message when you attempt to runbrew home ...
, or at the corresponding page in formulae.brew.sh. Otherwise treat the deprecated formula/cask like you already would.brew home ...
, refuse to open the URL and show an error message.Beta Was this translation helpful? Give feedback.
All reactions