8 ms·
Detailed audit of Voatz' voting app confirms security flaws
- zyxzevn 7y agoI wish it could be safe, but real electronic voting fraud may be far more common in practice: https://www.youtube.com/watch?v=zsNXnAv131g https://www.youtube.com/watch?v=zsNXnAv131g Computer Programmer testifies that Tom Feeney (Speaker of the Houe of Florida at the time, currently US Representative representing MY district ) tried to pay him to rig election vote counts. Usually they can be detected when exit polls differ from the voting results. But that seems common nowadays. So that is why I think that voting fraud may be common. But back to the whistleblower.. How many have accepted the money? And how many of them are able do some underhand programming? Sometimes just to leave small security holes. I don't think that MIT can detect them that easily. For a long time we did not even know the NSA encryption was compromised by NSA themselves.
- darawk 7y agoShould we change the link to point directly to ToB's blog post? https://blog.trailofbits.com/2020/03/13/our-full-report-on-the-voatz-mobile-voting-platform/ https://blog.trailofbits.com/2020/03/13/our-full-report-on-t... It seems a lot more information rich.
- mspecter 7y agoOh, hi. I'm Mike Specter, lead author on the MIT report [1], and have been involved in other voting-related research projects [2,3]. LMK if you all have any questions! 1. https://internetpolicy.mit.edu/wp-content/uploads/2020/02/SecurityAnalysisOfVoatz_Public.pdf https://internetpolicy.mit.edu/wp-content/uploads/2020/02/Se... 2. http://people.csail.mit.edu/rivest/pubs/PSNR20.pdf http://people.csail.mit.edu/rivest/pubs/PSNR20.pdf 3. https://www.belfercenter.org/sites/default/files/files/publication/StateLocalPlaybook%201.1.pdf https://www.belfercenter.org/sites/default/files/files/publi...
- dmix 7y agoThe article mentions: > The clients do not interact with the blockchain directly, so there is no blockchain verification code in the client. So if all client requests are routed through the same centralized API endpoint before hitting the blockchain, nor validated after the fact, whats the point of the blockchain? Just some public "ledger" of what the server ultimately sends out? Ideally, at a minimum, you would be given a token for your vote which you can then follow up and see it on the ledger. Even if you don't get to wait for 'confirmation', it's still a public signal that something is not right.
- mspecter 7y agoThat's a wonderful question. The honest answer is that I have no idea. In the version we reverse engineered, there's no proof of inclusion of any of the data in the blockchain in the client, and the receipt system was via a PDF. The vote selections (ballot?) are also never signed by the client. It's also worth noting that, according to the ToB article, the backend blockchain is a permissioned hyperledger instance, which runs PBFT[1] rather than proof of work. PBFT is controllable with roughly 1/3 of the network, 100% of which has been controlled by the company. [1]http://pmg.csail.mit.edu/papers/osdi99.pdf http://pmg.csail.mit.edu/papers/osdi99.pdf
- the_snooze 7y agoIs there any technical/security benefit at all to private blockchains? Or even more generously, lightly-mined public blockchains? It seems that in either of those scenarios, you lose the decentralized validation and consensus brought about by a bunch of people incentivized to compete with one another to burn electricity.
- nordsieck 7y ago> Is there any technical/security benefit at all to private blockchains? It really depends on what you want out of your blockchain. For example, the backend of git is essentially a blockchain. It's extremely useful, even for a solo developer.
- 7y ago
- munk-a 7y agoWithin the article this statement was made > Trail of Bits engineers said Voatz' code was written intelligibly and free of many common security foibles, but added “it is clear that the Voatz codebase is the product of years of fast-paced development.” The summary goes on to list several technical flaws, such as a lack of test coverage and documentation, infrastructure provisioned manually without the aid of infrastructure-as-code tools, vestigial features that have yet to be deleted, and nonstandard cryptographic protocols. That honestly sounds pretty good in terms of software quality, adding additional tests for proofs and ramping up ops are both addressable problems - especially if handled by a government sponsored team. But... How confident are you that we could reach a well engineered and proofed electronic voting platform that also adheres to theoretical rules around vote security? And which component of that, adherence to theoretical requirements and perfected development practices, do you see as a larger hurdle to overcome going forward?
- mspecter 7y ago> How confident are you that we could reach a well engineered and proofed electronic voting platform that also adheres to theoretical rules around vote security? I don't think we can with the current commodity devices / ecosystem, even assuming that voting system software is well-written. Keeping electronic-only systems secure from nation-state level adversaries is hard.
- micimize 7y agoI understand that current solutions to electronic voting are unsatisfactory, but I am fairly baffled by: > It remains unclear if any electronic-only mobile or Internet voting system can practically overcome the stringent security requirements on election systems Like, we can adequately secure banking software. With proper considerations and processes for the problem domain (i.e. user follow up / validation, alerts on suspicious vote changes) I don't see why securely implementing electronic voting is considered near-impossible, and has so few advocates.
- roywiggins 7y agoMany bank transactions can be reversed, and the ones that can't can be covered by insurance or self-insurance. You can't practically speaking reverse a tainted election. Anyway, I'll let Tom Scott take it: https://www.youtube.com/watch?v=LkH2r-sNjQs https://www.youtube.com/watch?v=LkH2r-sNjQs
- mspecter 7y agoTo put this in short-hand: "We bank online, we buy all sorts of stuff online, why not vote?" The biggest reason is that banking and other financial transactions have a very different threat model from voting. In particular, voting requires a secret ballot. In addition to preventing an adversary from learning how you voted, a secret ballot requires you to be unable to prove how you voted, to prevent vote selling and coercion. So, unlike financial transactions, how you do validation / remediation of failures is very unclear. Ben Adida has a blog post with further thoughts here (https://benlog.com/2007/03/02/on-voting-banking-and-bad-analogies/ https://benlog.com/2007/03/02/on-voting-banking-and-bad-anal...).
- micimize 7y agoHmm, I hadn't fully grokked the facet of the problem domain. I guess you could give users a spoofing mode, that allowed them to fake any ballot / action. Or possibly, if there was a window of time in which they could change their ballot freely. Maybe making such features both secure and accessible would be nearly impossible though.
- 7y ago
- save_ferris 7y ago> The summary goes on to list several technical flaws, such as a lack of test coverage and documentation, infrastructure provisioned manually without the aid of infrastructure-as-code tools, vestigial features that have yet to be deleted, and nonstandard cryptographic protocols. I’m not a security engineer, so what’s the benefit of using a nonstandard cryptographic protocol? That decision makes no sense to me.
- spatley 7y agoThe only reason to use nonstandard crypto is that you think you are smarter than the entire crypto industry. ProTip: you are never smarter than the entire crypto industry.
- bnonhacker 7y agoFully agree. That's the primary issue associated with bringing a piece of critical civic infrastructure, such as voting, into the digital domain. Who builds, maintains and secures the tech? Certainly not the government. The govt only acts as a collective entity to support and promote strong tech-driven markets (it should at least in theory). I do hope that more individuals in the crypto industry get involved politically because of their technical wherewithal.
- kache_ 7y agoYou forgot the other reason: backdoors
- jimbob45 7y agoI’m not sure that infra-as-code belongs on that list.
- geofft 7y agoIMO it's a security problem in practice - it means that you have a lot of organizational resistance to doing things like regular software updates, because you end up with this one server that's been hand-crafted that people are too scared to touch. Or, analogously, if you want to introduce some new sort of authentication/auditing/etc. protocol to the system, people will worry that they won't be able to find every use of the old thing and won't make the new thing mandatory. It also means that it's a lot harder to test changes, because you don't know what you need to set up to get a full test/QA environment going. It's not a vulnerability in itself, but the fear/stop energy created by artisanal small-batch infrastructure is a good way to set yourself up for vulnerabilities being exploitable. (See, for instance, Equifax being hacked by a two-month-old Struts vulnerability - you can theoretically argue that Equifax is a big company and should carefully audit their dependencies, but a much more practical argument is that Equifax should have been ready to patch within days, at most, of the vulnerability being announced.) The actual ToB report identifies another reason which I didn't think of: > Ensure that all backend infrastructure is re-provisioned between elections and not shared between elections/clients. Each server should also receive its own unique SSL certificate and credentials. Use infrastructure-as-code tools like Ansible and Terraform to automate and manage provisioning. Apparently there are two concrete problems: 1. All Voatz backend servers share a single wildcard certificate, and they think that automated provisioning would reduce the incentive to do things like this. 2. Every Voatz election uses a custom iOS/Android app delivered via TestFlight / Google Play Beta, because of some design choices in the protocol related to having a single shared backend (S3, MongoDB, etc.). They think that if there were infrastructure-as-code for the shared backends, it'd be easier to provision one instance per election and easier to make the client change to use a single client for each election, blocking potential attacks on the page that links you to the sideloaded app.
- orthecreedence 7y ago> The clients do not interact with the blockchain directly, so there is no blockchain verification code in the client. Fun. So, why even use a blockchain? Why not at least have light-clients with merkle verification? Does Fabric not have support for light clients (I haven't looked at it in a while)?
- roywiggins 7y agoFor marketing.
- JshWright 7y ago"Why even use a blockchain" is the first question that should be asked of any company that advertises they use one. Most of the time it's also the last question you'll need to ask...
- r00fus 7y agoCan someone confirm to me why we need voting "apps" or why voting needs to be electronic at all? Vote in person by pen & paper or vote via mail remotely. Tabulation also should be done locally and in-person with representatives of all parties present. Anything else seems ... like a way to more easily steal elections.
- jonwachob91 7y agoPage 1 of the report: >>> "While the introduction of Internet voting in the U.S. is relatively new, the history surrounding electronic only voting is not. In the wake of counting errors, recount discrepancies, and uninterpretable ballots wreaking havoc during the 2000 U.S. Presidential race, Congress passed the Help America Vote Act (HAVA) [49], a bill targeted toward helping states move away from outdated and problematic punchard-based systems."
- r00fus 7y agoHAVA was a disaster and resulted in all sorts of problems with what should be a basic printout + pen solution. Other countries do that, and all attempts to "automate" or improve the UI of voting introduce all sorts of problems.
- NikolaeVarius 7y ago>> The promises of mobile voting are attractive—better accessibility for differently abled people, streamlined absentee voting, and speed and convenience for all voters. If a mobile platform could guarantee secure voting, it would revolutionize the process. It’s a fantastic goal—but there’s still work to do.
- r00fus 7y agoThis is still relevant: https://xkcd.com/2030 https://xkcd.com/2030
- henrikschroder 7y ago> If a mobile platform could guarantee secure voting First, that's a mighty big if, and second, it's not enough! Voting is a process where unlike online banking or online shopping there is no way for a human to go in and fix errors, there's no way to audit a vote and go "Oh, Bob meant to vote for A and Cindy meant to vote for B, so the machine did it wrong". It's not enough that an electronic voting system is correct, every single voter has to be able to trust the system, and for that it needs to be simple to understand. You can't look at the electrons inside a silicon chip to determine they're doing the right thing. But with pen and paper and envelopes and urns and observers and counters, you can determine that the system is doing the right thing. Involving lots and lots of citizens in the voting system is not a bad thing, quite the opposite! You want as many eyes as possible on the entire process to ensure there's nothing shady going on, that there's no mistakes. But if all the votes go into a black box that spits out the results, all of that goes away, all of that trust, all of that ability to verify that the results are correct.
- roywiggins 7y agoMy personal audit went like this: "It's called Voatz, with a Z."
- mandelbrotwurst 7y agoIt's got what plants crave!
- aazaa 7y agoThe biggest problem with Voatz is that it's selling silicon snake oil to people who can't evaluate claims. It starts with the premise that somehow Blockchain does something magical. That is enables special security. Claims like this are a load of crap. What Bitcoin did, and what hucksters like Voatz are trying to cash in on, was to make it provably difficult to write a public record. In doing so, Bitcoin created provable digital scarcity (subject to certain well-known assumptions) for the first time in human history. Voatz picks out the cryptographic part as if it were somehow separable from the proof of work part. The two are not separable. Voatz, and the fools who are using it, have much bigger problems than "improper use of cryptographic algorithms."
- cies 7y agoHave my vote printed to a roll of paper, like a cashier's counter roll. Make sure that it shows through an opening in the case, so I can verify, and then rolls further (beyond the opening) so I cannot see it anymore. This is a way to store the votes "write only". The rolls are both human readable and machine readable (OCR is nothing new). The only problem with this compared to voting forms is that form fall into the bin unordered, so it is harder to link a vote to a person. Just an idea. I would not trust ANY system that stores my vote on a re-writable storage medium. I know there are some crypto/blockchain tricks that may help, but that's so hard to audit for lay people that I prefer the paper roll any day.
- henrikschroder 7y ago> The only problem with this compared to voting forms is that form fall into the bin unordered, so it is harder to link a vote to a person. Uh, that's a good thing, you don't want to be able to link a vote to a person at all!
- lippel82 7y agoThat's why he said it was a problem.
- henrikschroder 7y agoAh, I misunderstood what he was saying! I read it the other way around. Thanks!
- fsh 7y agoWhy even use a computer then? Paper ballots and hand counting work perfectly fine. If for some reason you desperately have to use technology, optical scanners with statistical verification is probably not that terrible. One issue is that a significant part of the population won't be able to understand the verification part though.
- aneutron 7y agoSo I'm halfway through the report, it's a very beautiful document, great work from the team that wrote, and if I understood correctly, a VOTING application: - Uses ad-hoc cryptography as the main cryptography - Does not use the recommended security facilities on the target platforms (iOS and Android) - Is deployed manually, with hardcoded secrets (AWS account with name "admin" had its credentials hardcoded in a scala file named "AmazonOtpUtility.scala") - Has provably de-anonimizablity as a property (All is needed is apparently access to the databases, and might I remind you of the Twitter / UAE/Saudi Arabia recent story) - (And this is the biggest, most annoying thing) Is not end-to-end verifiable. - The actual threat model is almost childish, as showed by the testing team. I do apologize for the wording in the following paragraphs, but this a fucking dumpster fire of a project for a voting platform. Who the fuck authorized this to go forward as a voting platform for any state in the United States ? Who the fuck is selling this as a "secure" platform ? Can they sleep well at night ? When will the government intervene and stop people from compromising democracy with stunts like these ?
- baobabKoodaa 7y agoThe people who authorized this are probably clueless. The people who created this dumpster fire are clueless _and_ evil.
- gok 7y agoElectronic voting is difficult because it's politically undesirable to many people who benefit from dead tree voting, not for any technical reason. So yeah, of course people claiming to solve a political problem with technical buzzwords are almost certainly selling snake oil.
- charonn0 7y ago> it's politically undesirable to many people who benefit from dead tree voting Who supposedly benefits?
- tprynn 7y agoCopying comment from previous thread: Systemic issues: * Creds scattered throughout source code, including DB / AWS creds, "fixed" by removing but still present in git history * Numerous crypto vulns: nonces / AES-ECB * What's even the point of blockchain, it just makes everything worse Selected quotes: "Trail of Bits was only provided a backend for live testing on the second-to-last scheduled day of the assessment" "The system is unusually complex, with an order-of-magnitude more custom code than similar mobile voting systems we have assessed." "Voatz's voting processes are error prone and manual, relying on manual verification of voter identity and long-term storage of this identity on Voatz's premises" "E2E-V systems allow voters to cast encrypted ballots such that ballot counts are verifiable to anyone, but individual voters’ preferences are not revealed. ... Voatz is not E2E-V." "Storing voting data on a blockchain maintains an auditable record to prevent fraud, but this comes at the expense of both privacy and increased attack surface. Clients do not connect directly to the blockchain themselves, and are therefore unable to independently verify that their votes were properly recorded. Anyone with administrative access to the Voatz backend servers will have enough information to fully reconstruct the entire election, deanonymize votes, deny votes, alter votes, and invalidate audit trails."
- egypturnash 7y agoEvery time this company comes up, some part of me just shudders in horror at the thought of outsourcing the crucial act of voting to a company called Voatz. Y'all the entire nation to put their trust in you and yet you have named yourself with a "cute" misspelling of one of the things you are involved in? Really?
- baobabKoodaa 7y agoI briefly commented on Voatz in my thesis[1] last year: Voatz is another blockchain-related voting project. They claim to have been involved in a real world mobile voting experiment in West Virginia with real votes cast through their mobile application. However, their source code and voting protocol are not available for review. Voatz is a great example of how commercial vendors can fill the letter of the law without filling the spirit: what they refer to as a ”paper audit trail” is literally a physical print of their digital records. If the digital records are corrupted before printing, the paper records will be likewise corrupted. Based on the descriptions on the FAQ page, Voatz servers are all running the same software, and the voter needs their vote to be recorded on all of them in order to receive confirmation that their vote has been recorded. This seems like the worst of both worlds: a single misbehaving authority can prevent the election from proceeding, and at the same time, the ”verifiable blockchain” benefits are undermined by running the same closed-source unverifiable software on all of the servers and the same closed-source unverifiable software on all of the clients. The replication of servers provides security benefits only against physical tampering of the machines – since the same software is running on all of them, an accidental or intentional flaw in the software can be exploited to manipulate votes on all servers simultaneously. 1. https://www.attejuvonen.fi/thesis/ https://www.attejuvonen.fi/thesis/
- imgabe 7y agoAs a first impression, simply the name "Voatz" does not inspire a lot of confidence.