Skip to content
Crypto Write-up Advanced

Security flaw in New South Wales puts thousands of online votes at risk

The iVote online voting site loaded JavaScript from an external analytics server with weak SSL, so a man-in-the-middle attacker could exploit the FREAK attack to inject code and alter or steal votes. The verification process was also weak enough that an attacker could reduce the chance voters noticed manipulated ballots.

freedom-to-tinker.com

Published on freedom-to-tinker.com

New South Wales, Australia, is holding state elections this month, and they’re offering a new Internet voting system developed by e-voting vendor Scytl and the NSW Electoral Commission. The iVote system, which its creators describe as private, secure and verifiable, is predicted to see record turnout for online voting.

Vanessa Teague, J. Alex Halderman, on freedom-to-tinker.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the voting site included third-party JavaScript from an analytics host with outdated SSL, allowing a network attacker to tamper with that script and run code in the voting page.

Impact

An attacker on the voter's network could alter votes and steal credentials, and the optional phone verification could be undermined, though the researchers demonstrated this only against the practice server.

What the attacker needed

Voter uses a malicious network; attacker can intercept traffic; browser not patched for FREAK

The fix

The Electoral Commission disabled the external analytics script after the report, but the main gateway still ran over plain HTTP, so it should also be served securely.

How it was found

  1. The voter connects to the iVote site from a network controlled by the attacker.
  2. The attacker exploits the FREAK attack against the external analytics server to inject malicious JavaScript.
  3. The injected code silently substitutes a different vote or steals the voter's PIN and receipt number.
  4. The attacker sends the stolen credentials and ballot choices to a remote monitoring server.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you visit a secure website, your browser sometimes loads extra code from other servers. If one of those servers has weak encryption, someone on the same network (like a malicious Wi-Fi hotspot) can slip in their own code. Here that code could change how the voting page worked, so the attacker could swap a vote or steal the voter's login details.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.