Last year we had a contractor come to our house to do a few jobs. In the process, he ended up saying he busted a light bulb on our security light, and said he would fix it. About a week later, we noticed it wasn't fixed. Sadly it was getting towards winter time, and we ended up letting it go because of the bitter cold.
Well, it's warming up again, so i wanted to tackle it. Turns out though, he didn't just bust the bulb. He actually busted off one of the cups that would hold the bulb, and he also busted off the motion sensor. It appears that the entire light itself is one large junction box - the box has two lights coming out of it, and also the motion sensor. The picture hopefully illustrates that (sorry for the quality and distance, I'll have to rent a ladder for this fix).
So, can anyone tell me what I'm looking at? Is the light itself a junction box? Or is it just a housing in front of another junction box? I can't seem to find a similar style light to base it on. If I have to replace the entire box that's fine, I just need to make sure I'm not doing anything that goes against code.