Mohamed Salah suffered a hamstring injury that left his Liverpool season and World Cup in doubt.