Selling your credit history is legal, as well as buying another person’s credit history. There are no laws that forbid you for buying or selling any of your tradelines.