This can and has been done with ATM machines, card swipe terminals in supermarkets, etc.
In actual practice taking the voting machines apart and hacking them involves breaking in to and working for hours in government buildings without being noticed, creating replacement seals that can pass the inspection of poll workers, etc. It is more of a movie plot than a practical idea.
So why did we spend taxpayer money on the research in the first place?
EXACTLY!