"When you come into the land of Canaan, etc., and I put a plague of leprosy in a house of the land of your possession" (Leviticus 14:34). Let our master teach us: For how many things does leprosy come? Thus did our masters teach: The plagues come for eleven things—for idolatry, for blasphemy of the Name, for forbidden sexual relations, for thefts, for evil speech (slander), for false witness, for the judge who corrupts justice, for a vain oath, for one who enters into a domain that is not his, for one who devises thoughts of falsehood, and for one who sends forth strife among brothers. And some say: also for an evil eye. [And you may expound them all.]
Eleven Sins That Bring the Plague of Leprosy on a House
Midrash Tanchuma Buber, Metzora 10:1
כי תבואו אל ארץ כנען וגו' ונתתי נגע צרעת בבית ארץ אחוזתכם (ויקרא יד לד) ילמדנו רבינו על כמה דברים הצרעת באה, כך שנו רבותינו, על אחת עשרה דברים הנגעים באים, על ע"ז, ועל ברכת השם, ועל גילוי עריות, ועל הגניבות, ועל לשון הרע, ועל עדות שקר, ועל הדיין המקלקל את הדין, ועל שבועת שוא, ועל הנכנס בתחום שאינו שלו, ועל החושב מחשבות של שקר, ועל המשלח מדנים בין אחים, ויש אומרים אף על עין רעה, [ואת דורש כולן].