The risks associated with online shopping, from unsafe products to lost tax revenue, stem from the e-commerce ecosystem’s hidden structure.