Microsoft warned users that hackers used a security flaw in its server software to attack government agencies and businesses around the world.