I'm not even sure it is legal in the UK - we have laws against "unfair contracts" [1], and there are also some statutory consumer protections that can't be waived. Of course, this is about security breaches, and IANAL, but I'd say this doesn't stop all potential lawsuits.
[1] http://www.oft.gov.uk/about-the-oft/legal-powers/legal/unfai...