I'd like to know how this works. Using this method, couldn't any site install arbitrary software on an iPhone through Safari without the user knowing? Or am I missing something?
Yes, it exploits a flaw in how the iPhone (and OS X presumably) handles PDF files to be able to run arbitrary code. I expect Apple will release an update that closes the hole.