rear ended case is typically the rear car's fault. As long as you are driving legally, even you are not listed as driver on your friend's insurance, it should not be your fault.