This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Unvalidated download of the stack binary (and probably others). #118
Labels
re: security
Potential and actual security hazards
While browsing this actions source code I stumbled over the fact that the downloads are unvalidated.
https://github.com/haskell/actions/blob/main/setup/src/installer.ts#L208-L209
Yes, its unlikely that someone controls github DNS + can fake an SSL cert to smuggle a bad binary into a github action: Its still possible. And as this action is quite popular I wanted to raise the issue here.
Its likely other downloads are also unvaldiated. If I had the time resources I'd PR a change that would allow us to register expected sha256 of the various things this action could download, possibly even the GPG keys so we do not have to constantly churn hash updates. Given I do not have the time I opened this issue to potentially trigger someone else energy ;)
Anyhow for the moment to put my mind at ease I switched away from this action and simply do this in my builds:
Does not get me implicit stack updates in any way but at least puts my paranoid mind at ease.
The text was updated successfully, but these errors were encountered: