The box is filled with expanding foam, I'm guessing as some kind of support?
Is the outlet on an outside wall? At my last apartment, those outlets were a significant source of draft. Cheap-ass construction and all.
I'm glad that box didn't catch fire. Might want to do a check on your other outlets, especially ones with high sustained load.
