If a Mac's drive was properly wiped, how can the previous owner still track its location through iCloud?
Wiping a Mac's drive doesn't remove it from your Apple ID. Find My Mac ties the hardware to your account on Apple's servers, so a seller who erases the drive without signing out can still see the Mac. Sellers should sign out of their Apple ID before erasing, and buyers should ask to see that the device is no longer listed in the seller's iCloud account. It's not a security flaw.