4chan was hit by a major cyberattack leaking moderator emails and source code, sparking security fears for the infamous anonymous imageboard.