Vulnerability In Firefox Popup Blocker
cj writes in with news of a vulnerability in Firefox's stock popup blocker discovered by Michal Zalewski. The vulnerability can allow a malicious user to read files from an affected system. The attacker would "need to plant a predictably named file with exploit code on the target system. This sounds hard, but isn't," according to the article.
Is anyone still running 1.5.0? I thought the auto upgrade had handled that months ago.
http://wiki.mozilla.org/Major_Update_1.5.0.x_to_2. 0.0.x
Firefox sometimes creates outright deterministic temporary filenames in system-wide temporary directory when opening files with external applications
And according to him, calculating the seed isn't terribly difficult. srand() is called directly before the random file creation and is seeded with the current time, in milliseconds. That time is possible to obtain within a narrow margin using JavaScript.
http://www.skullsecurity.org/blog/
I strongly doubt it does, because you'd fall foul of vista UAC protection - no user app should go near the systemwide temp directory (that's even if you can find it... %TEMP%, GetTempFileName, etc. will always give you the user one. AFAIK you have to dig into the registry to find the system one, or be running as a system service).
Although a bug exists (file:// bypasses some of the security checks.. fixed already apparently) the theoretical exploit as written isn't usable - probably why there's no working example
Thanks for the tip. I just checked my temp directory, and I've got stuff dating back to early 2001 in there.
"They redundantly repeated themselves over and over again incessantly without end ad infinitum" -- ibid.