Sources

Moshiach is a Metzora - Talmud, Sanhedrin 98a and 98b, Rashi

Concept of Tzaraat applying to the world at large - Sefer Hasichot 5751 Tzaria/Metzora Pt.2 p498