I don't have an ISDA with a bank or a copy of a CDO-squared prospectus, but it's hard to imagine that there wasn't a big warning about them being a leveraged product that you should not invest in long-term.
The rating agencies did not understand the products they were rating. However, the warnings were almost certainly on the label.
That's why the rating agencies were sued over this, and not the banks.