masochist (masochism + -ist; agent_person)
Someone who enjoys pain or humiliation, or who derives pleasure from harming oneself or being harmed by others