Just a normal shower in Brazil

I don’t know much about electricity and related things, but I do know this seems really dangerous. I went to take a shower and noticed that water was leaking through the temperature selector, and as far as I know, that's where the heating element and all the electrical components of the system should be, right?

For a moment, I thought it wasn’t working anymore—until I adjusted the temperature setting and felt a shock. Then, during the shower, I felt several small shocks passing over me.

This bathroom is in my grandma’s house, and I have no idea when exactly this broke, because she doesn’t know either. According to her, she didn’t even realize it was broken and had been showering there normally.

I think I just avoided something much worse.