Retailers such as Costco and Amazon, and intermediary sites such as eBay, have faced a series of legal challenges in recent years by brand owners claiming that unauthorized reselling of goods infringes their distribution rights and subjects consumers to various risks from dubiously-sourced goods.