A weakness has been identified in Bitcoin's protocol which allows users to double-spend their funds, threatening its small merchant userbase.