The legality of the buying or selling has been debated numerous times before. What they are doing that is clearly illegal is using the airlines trademarks and logos without permission, which opens them up to a huge amount of liablity, especially since they are directly profiting from their unauthorized us.