Paper ballots definitely have security problems too, it's just harder to compromise an election with many polling locations if it uses paper.
E.g., a counter can put a bit of pencil lead under a fingernail and mark overvotes on ballots they don't like, thus causing them to be adjudicated or not counted.