Attorneys assigned to class action lawsuits work on a contingency basis, which means that no money is needed up front. Once the case is won and damages are recovered, the attorney takes a portion as reparation for their time leading up to the positive outcome.