Finding vulnerabilities in Swiss Post's future e-voting system - Part 2
Several cryptographic and deserialisation flaws were found in Swiss Post's e-voting system, including a missing check on how many signed public keys the setup component accepts, which a malicious voting server could exploit to influence the election public key and stop ballot boxes being decrypted. Other issues let a crafted message crash control components and let the verifier trust unverified data when checking signatures.
Published on reversemode.com
May 22, 2022
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
The setup component did not check that the number of signed public key contributions matched the protocol specification, and deserialisation code used unchecked length values to allocate arrays.
Impact
A malicious voting server could prevent all ballot boxes from being decrypted during the tally phase, and crafted messages could crash control components; the author disputes Swiss Post's view that only availability is affected.
What the attacker needed
Compromised voting server; control components reachable via AMQP
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.
An e-voting system combines several computers' contributions to build the keys used to encrypt and later decrypt votes. If one of those computers is compromised and the software does not check how many contributions it receives, the final key can be skewed so that votes can no longer be decrypted. Separately, a message with a huge declared size could exhaust memory and crash a component.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.