Actually it is part of a problem discovered a few weeks ago that involves being able to script a shell season to do bad things.
You could create an AppleScript that scripted the terminal to open a shell and issue the command rm -rf ~/ or write some kind of file. Basically it is a trojan program not a virus or worm.
http://maccentral.macworld.com/news/2004/05/17/safari/