The voters do. People vote for corrupt politicians since they care about other things. They would do that even if you didn't have capitalism. The problem is therefore the implementation of your democracy and not capitalism. Removing capitalism while keeping the flawed democracy would just result in another Soviet scenario or even worse.
So the problem isn't capitalism, it is corrupt democracy. A corrupt democracy will try to do whatever it can to enrich its politicians, like taking bribes from companies etc. A healthy democracy doesn't take those bribes. You can find many countries where politicians works mostly for the people and not for companies, that is how it should be.
Keep going down the rabbit hole and the problem is corrupt humans. Transparency to enable everyone to keep everyone else in check is the only solution I can see.