There are 4 pipes connected to sunroof which all go to loeer sill points in each corner of the car If any water was to go past the seal on the sunroof then the water can travel down the pipe and out the sills Double check your sills are not clogged which will then allow water build up and over spill inside of car You probably have water on electrical connection on passenger footwell which has caused your problem