Sure, and Amazon should be able to go after the buyer for the breach of contract. The people who subsequently got a copy (and didn't know of the breach) should not be bound by it, though.
If you want to demonstrate that non-colluding third-party beneficiaries can be sued for the breach of contract of a second party, be my guest, though (I honestly don't know).