Not-for-profit software group Mozilla has been hit by hackers downloading infected source code onto its website.