Don't forget that you can literally concatenate jpegs and zipfiles [header at start of jpeg, but at end of zipfile], so the valid jpeg can
also be a valid zipfile.
Combine that with something like Safari's insistence at automatically exploding zipfiles on download, and you got yourself a party.