http://www.securityfocus.com/news/203 http://en.wikipedia.org/wiki/Max_Butler#FBI_investigation.2C...
That said, I would agree completely that it's very legally dangerous. If it's not yours, don't mess with it!
As an academic matter, I think such a worm could end up being socially useful, if there are enough compromised machines and the people running them are sufficiently incompetent and those machines are being used against other people and you can be sure that your fix doesn't break something else and the machines just won't get re-compromised again next week. That's too many conditional clauses for me, but maybe someone else feels like taking one for the team.
Legally: again, don't do it. It's not yours.
There's a typo ...
and I'm afraid "bad hackers" react even more quickly,
so I'm hoping "good hackers" can hurry ...
but watch out! Don't mess things up and cause a disaster :O
It would be cool if somebody wrote an automated script which would seek out these c99 and try to identify those which are used on hacked sites. It could then use this to get access and remove this script and fix the original exploit.
Using exploits to help people is of course a can or worms but I like the idea of good hackers helping everyone.