A junction box mountable on a roof surface, comprising a housing unit and an enclosing unit, the housing unit and enclosing unit combining to form a waterproof assembly. The housing unit is mountable to a roof surface via a flashing having a continuous, raised waterproofing track that mates with a waterproofing recess in a bottom surface of the housing unit to create a waterproofing zone inside the housing unit. At least one bottom pass through is located within the waterproofing zone and provides a channel from the internal housing area through the roof surface.