Apple has issued a patch to close the hole found by the winner of a recent hack-the-Mac contest.

Apple described the weakness as an implementation issue in QuickTime. “By enticing a user to visit a web page containing a maliciously crafted Java applet, an attacker can trigger the issue which may lead to arbitrary code execution,” Apple said in its description of the problem.

Apple credits Dino Dai Zovi, who won $10,000 in a Mac hacking contest initiated at the CanSecWest security conference in Vancouver two weeks ago, for reporting the flaw. The contest originally challenged conference attendees to break into a Mac that wasn’t running any programmes. When no one managed to do so, the contest allowed participants to try to break in through the browser. Dai Zovi was the first to succeed.

Apple also credits 3Com Corp.'s TippingPoint division, which put up the $10,000 prize, and the Zero Day Initiative for help in reporting the issue.

Because the flaw lies in QuickTime, which is used by Microsoft Corp.’s Internet Explorer as well as Mozilla’s Firefox browsers, PC users are also vulnerable.