What could go wrong? “Perl cgi html uploading linux kernel”
stackoverflow.com
stackoverflow.com
I can't think of a good reason for anybody that has to ask how to do it.
Dear lord. SUID scripts have a bad reputation but that would have been a much more secure solution. Now the attack surface is the entire of lighthttpd plus any CGI scripts, which is much simpler to exploit than crafting a custom malicious kernel module.