Whip ItFree

For IT staff

A plain-language security note. Short version: the board is one HTML file that blocks every network request it could make, keeps data only in the browser's own storage on that computer, and runs only the code that shipped in the file.

What you are looking at

The lock on network requests

Near the top of the file's head is a Content-Security-Policy. It tells the browser to refuse every web request the page might try to make: fetch, beacons, images, frames, fonts, websockets, forms, workers. It reads, in full:

The sha256-… part is the fingerprint of the one script in your copy, so it changes with each release.

default-src 'none'; script-src 'sha256-…'; style-src 'unsafe-inline'; img-src data:; font-src 'none'; connect-src 'none'; media-src 'none'; object-src 'none'; frame-src 'none'; worker-src 'none'; manifest-src 'none'; form-action 'none'; base-uri 'none'

Where data is kept

Update files

Check it yourself

  1. Fingerprint. Compare the zip's SHA-256, or the HTML file's inside it, with the ones on the download page (certutil -hashfile file SHA256 on Windows, shasum -a 256 file on a Mac).
  2. Watch the network. Open the board, press F12, open the Network tab, reload, and use it. You should see no requests leave the file.
  3. Pull the plug. Turn off Wi-Fi and use the board. Everything works, because it never needed the network.
  4. Read the lock. Search the file for Content-Security-Policy and compare it with the text above.
  5. Look for the two gaps. Search the file for RTCPeerConnection (there is none) and read where the script sets location or opens a window.

Our own test opens the file in a real browser, makes eight deliberate attempts to send data to a server on the same machine (fetch, beacon, image, XHR, websocket, script, stylesheet, frame), and fails if any arrive. All eight are refused. The same test slips a script into the open page and checks that it doesn't run, and loads changed, older and wrong-state update files and checks that each is refused.

If the signing key were lost or exposed

Lost: we would publish a new full copy with a new key, say so under "What changed" on the download page, and change the key fingerprint shown there. Copies already in use keep working, but refuse update files signed with the new key, so offices would download the new copy.

Exposed: copies already in use trust the old key, so whoever held it could sign a fake update file that those copies accept. Such a file can change any of the data: members, parties, statements, links (which must start with https://) and the number of votes needed to pass. It can't change the board's code, carry page markup (the board refuses a file with any), or send out what staff typed. If that ever happens, we post it at the top of the home page and under "What changed", and publish a new copy with a new key. Copies never check in, so we can't reach you any other way: check the download page before loading an update file.

Terms

Free to use, and free to copy for another office's whip count. It is provided as is, without any warranty. Whip It is a free, independent project, not a company, a state agency or a campaign, and it isn't affiliated with any legislature, governor's office or LegiScan. It is offered to everyone on the same terms and asks nothing in return. If your office clears free software or gifts with an ethics office, this page and the privacy page are what to show them.

What our website sees

When someone downloads a file, our website adds one to that state's count for that day. It stores no address, browser details or cookies. The feedback form keeps only what a person types into it. Details on the privacy page.

Questions

Use the feedback page and leave an email address if you want an answer. Please don't send whip notes or anything confidential.