World leaders have expressed shock over the car attack in the German city of Magdeburg on Friday, offering condolences to the families of the victims and wishing a speedy recovery to the injured.