The iron sword is the third weapon purchasable from the candy merchant in Candy Box. It can be bought with 500 candies.