The "rogue priests" who sold indulgences include Pope Leo X.

The Catholic Church has winked all sorts of practices now considered immoral.  On 15 May 1252, Innocent IV issued a bull, Ad Extirpanda, on rules for the Inquisition's fight against the Cathars, saying "The head of state or ruler must force all the heretics whom he has in custody, provided he does so without killing them or breaking their arms or legs, as actual robbers and murderers of souls and thieves of the sacraments of God and Christian faith, to confess their errors and accuse other heretics whom they know, and specify their motives, and those whom they have seduced, and those who have lodged them and defended them,as thieves and robbers of material goods are made to accuse their accomplices and confess the crimes they have committed." Notice, incidentally, that murderers and robbers were also tortured, without the Church saying "that's immoral". You want more examples?