The wee holes in the back are the breathers for the diaphragm- so it’s not neccesarily a fault at all, if there’s fluid in there it can act exactly like that and it’s pretty common to have some rainwater in there (it’ll smell like brake fluid even if it’s just water, incidentally)
If they’re working, don’t worry about it. If they’re not working- it’ll normally manifest as being able to bleed them, but then inconsistent performance afterwards- then you might have some success removing the diaphragm, cleaning and refitting but failing that if they’re MY2011 to 2013 this is probably the part you need.
http://www.tweekscycles.com/Product.do?method=view&n=3421&p=415119&c=215&utm_source=Google&utm_medium=Base&utm_campaign=Disc%20Brake%20Spares&gclid=CJ-Y3-73mbwCFSQcwwodnUwAFA
Just unscrews with circlip pliars . MY2011 used a slightly different, bulkier design which seems a wee bit more delicate, they changed it midrun. It’s possible though that it’s another fault, cracked m/c would be rare but not impossible.
Mind you it is equally possible that there’s some other completely unconnected issue 😉