Cash back is legal if it’s being done correctly. For instance I agreed to purchase a place at a certain price but want to upgrade the carpet, then the cost for new carpeting could be added to the purchase price. This cost would be held in escrow and will be released to pay for the new carpet installation.
Personally I will not do this, why do I want to make 30 years payment on new carpeting.