Humm can't you just restore the server from backup to a point before the BUG and setup an internal firewall between sever and your ISP to prevent re-entry of the BUG ?, unless its a coding issue in wich case remove the code in question and restore to defualt values