Apple Addresses URI Handler Issues
das writes "Apple released Security Update 2004-06-07 via Software Update. From the brief description:
'Security Update 2004-06-07 delivers a number of security enhancements and is recommended for all Macintosh users. [...] Mac OS X will now present an approval alert when an application is to be run for the first time either by opening a document or clicking on a URL related to the application.'" This also fixes some related security problems with Terminal.app, Safari, and DiskImageMounter. No word in given regarding how the average user should know whether or not to approve the request.
"No word in given regarding how the average user should know whether or not to approve the request?"
...as well as a description of what exactly occurs if this situation is encountered:
Well, first of all, this security update takes the issue completely from the realm of a an automated exploit that could execute arbitrary code simply by visiting a web page with no user interaction or warning, to what can now only be described, more or less, as a social engineering exploit. If you download a new application, like, say an RSS reader, the OS will prompt you to add, for example, the 'feed:' URI handler:
- ONLY the first time, and
- ONLY if it's invoked remotely, e.g., via a web page, URL in an email message, etc.
And since the only value of this exploit came from it being used in two HTML frames with two META REFRESH tags, via a browser, to cause some type of remote volume to mount (or a file to download) AND then have the newly registered URI remotely called, this completely and totally fixes the issue, without hurting the normal functionality of having new URIs get registered when you launch an application. Saying "No word in given regarding how the average user should know whether or not to approve the request" is tantamount to saying that no guidance is given on whether or not a user should even know to open, say, a shareware app they've downloaded for the first time.
On the other hand, if a user is innocently visiting a web site and a dialog box all of a sudden appears prompting the user to accept that *an application* be run, I think it's pretty clear that this handles the issue. This addresses the core of the issue, which was several OS features interacting to essentially enable an automated exploit; that capability is now completely disabled. Apple even went further and removed some suspect handlers (disk:) completely, even though this fix makes it unnecessary.
Also, detailed information on what exactly was changed is here:
http://www.info.apple.com/kbnum/n61798
http://www.info.apple.com/kbnum/n25785
You can verify that these issues are fixed by using the following test site: http://test.doit.wisc.edu/
I like the idea, but couldn't the wording of the alert be simpler?
Why not ask "The document you're opening is trying to open and run _____. If you don't want to do this, click CANCEL."
The message makes sense to a geek, but I'm with an earlier poster, many users will just click OK out of confusion.
> test 2 - "idisk" mounts, but it brings up the new dialog.
That's the fixed part.
> test 4 - terminal launches, and attempts to connect to a remote site -
> appears that if it were a malicious site, it would have worked.
A malicious... telnet... site? Er, whee, lookit the pretty birdies.
The telnet: URL handler is *supposed* to open a telnet connection. It doesn't install any code, it doesn't download anything, it doesn't even execute any commands. It just opens a telnet connection.
The issue that is fixed here is having a disk image mount and create a new URI handler, and then a redirect on your web browser launching the application using the new handler.
This doesn't affect telnet handlers, which are already registered and don't run anything on random mounted disk images.
It doesn't affect helpviewer, which has already been patched and fixed. That is, helpviewer can no longer run arbitrary scripts, so the fact that the disk image mounted doesn't make a damn bit of difference.
Basically, don't post warnings about things you have no clue about.
-fred
Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.
It also doesn't say 'OK' or 'Cancel.' Like most good Mac dialogs, it uses action verbs. In this case the options are 'Open' or 'Cancel.'
mbbac