Skip to content

v1.1.1: the instruction for checking this page told you to do it wrong

Choose a tag to compare

@swapanshridhar swapanshridhar released this 20 Oct 17:31
· 1 commit to main since this release
v1.1.1
55cc14d

The instruction for checking this page told you to do it wrong.

v1.1.0's README said to fetch public/index.html with curl before comparing it
against the hash in the signed tag. This site serves the page at / and
redirects /index.html to it, so curl without -L writes an empty file.
Hash that and you get e3b0c442..., which is the SHA-256 of nothing, not of a
tampered page. Anyone following the instruction concludes the page was altered.

That is the worst place for a false negative: the documentation of a tool whose
only job is telling you whether to trust some bytes.

Checking the page, correctly

curl -L https://verify.plainreal.com/ -o verify.html
shasum -a 256 verify.html
f3dd80526c0c31b08b50a94b91156af1c2002f349b4270c1e727f5dc8188b690

wget was never affected; it follows the redirect on its own.

Install

go install github.com/plainreal/verify/cmd/plainreal-verify@v1.1.1

Check a download against the signed tag, not against SHA256SUMS here.
That file sits in the repository it describes, so it is only as good as write
access to this repository:

git tag -v v1.1.1
shasum -a 256 -c SHA256SUMS

What else changed

Nothing about verification. The page is byte-identical to v1.1.0 apart from the
version string it displays. SECURITY.md carries the same warning, since a
researcher who hits the empty digest is precisely the person who would spend an
afternoon writing the report. A release check now fails on any documented curl
against this site that omits -L, so the class cannot return.