Technological Challenges Aside, Is Asteroid Mining Legal?

Who has the rights to property in space?