Brake Master Cylinder leaking problem.

I'd be checking the lid, sounds like it's warped or damaged.