Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTP server potentially compromised #408

Closed
SMillerDev opened this issue Mar 1, 2021 · 7 comments
Closed

FTP server potentially compromised #408

SMillerDev opened this issue Mar 1, 2021 · 7 comments

Comments

@SMillerDev
Copy link

Hi. Homebrew maintainer here.

When 1.8.22 was initially released, the https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.22/src/hdf5-1.8.22.tar.bz2 file had a sha256 of: 0ac77e1c22bce5bbbdb337bd7f97aeb5ef43c727a84ccb6d683d092eb57ebd8e

The file's sha256 is now 689b88c6a5577b05d603541ce900545779c96d62b6f83d3f23f46559b48893a4.

This means that the initial file on you FTP was replaced. I doubt this expected?

Originally posted by @iMichka in #279 (comment)

@iMichka
Copy link

iMichka commented Mar 1, 2021

BTW I also tried to open an issue in the forum but my message is still under review.

@bljhdf
Copy link
Contributor

bljhdf commented Mar 2, 2021

Hello!

It appears that the hdf5-1.8.22.tar.bz2 file is okay. However, the checksum we provide is “md5” and not “sha256”. I used “wget” to download the checksum and bz2 files, and then compared the checksum values:

wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.22/src/hdf5-1.8.22.tar.bz2
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.22/src/hdf5-1.8.22.md5

$ more hdf5-1.8.22.md5
9561ed9a0731cc980360f90f82557a99 hdf5-1.8.22.tar
972c28a7355cf94f24670307b7c0973d hdf5-1.8.22.tar.gz
0b083716131466527c2eaeb44a2a7786 hdf5-1.8.22.tar.bz2
abe247557dde4360ea55a61045ebdc28 CMake-hdf5-1.8.22.tar.gz
79e89b202b12deb4a16773bd04e78388 hdf5-1.8.22.zip
6b0cb5fbc4f195789bd0b66039dae96a CMake-hdf5-1.8.22.zip

$ md5sum hdf5-1.8.22.tar.bz2
0b083716131466527c2eaeb44a2a7786 hdf5-1.8.22.tar.bz2

-Barbara

@SMillerDev
Copy link
Author

This doesn't have anything to do with the type of checksum. If the checksum changed it means the file changed, regardless of the type of hash you provide.

If the md5 did not change that makes it more likely that this was a malicious attack.

If the file is not intentionally changed by the hdf group I think we'll need to treat the file as compromised in homebrew.

@lrknox
Copy link
Collaborator

lrknox commented Mar 2, 2021 via email

@SMillerDev
Copy link
Author

Looking back at emails to Lori for the release announcement, it was discovered on February 5 that the so numbers for the c++ libraries had not been updated, a new source release was created, and the files on the public ftp server replaced, followed by the public announcement. The release date on https://portal.hdfgroup.org/display/support/HDF5%201.8.22 should have been updated to February 5. The sha256 checksum reported for the hdf5-1.8.22.tar.bz2 file on the public ftp server matches that of the February 5 release file in our internal release directory. I will check the other files and report on all of them.

Thanks. If the software was retagged that would explain the discrepancy.

The git manual says re-tagging is "the insane thing" to do, so I would advise upping the version and making a bug fix a separate release next time. It would stop some people providing hdf to the public from worrying about the source.

@lrknox
Copy link
Collaborator

lrknox commented Mar 2, 2021 via email

@iMichka
Copy link

iMichka commented Mar 2, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants