Recommended Posts

I really don't think this is a good idea, to disable direct text input in the <input type="file"> input box, as a security "fix" against a theoretical attack. The reasoning is IMHO ridiculous, it's like saying to prevent potential phishing attacks, all text input box should be disabled. Or to prevent possible trojan downloads, file download should be disabled. The change is really annoying and a great usability drawback, especially when uploading multiple files at once. And it can be easily bypassed by truly malicious sites with flash, java applet, silverlight, etc. making this security "fix" mostly moot. And that's why Firefox 3 has anti-phishing and anti-malware features from the first place right?

Also I think there can be many better alternatives than just disabling the file input box and leaving a confusing interface, like disabling certain stylings of the file input control, gave warnings when there are file uploads to a site for the first time, etc.

Link to comment
https://www.neowin.net/forum/topic/644517-file-input-box-in-firefox-3/
Share on other sites

How is it not a reasonable security measure? And where is there a confusing interface now? If you've used a file open dialog, you know how to choose a file for upload.

The interface is confusing as there's a text input box, but when you click the input box, a file open dialog pops up, that goes against any user expectation of a text input box (or at least the appearance of one).

It's not a reasonable security measure because it outright disabled the text input function just because someone can custom style it to trick people into entering sensitive data. It's like saying, since someone can custom style a page to look like some online banking service and trick people into entering their bank account password into it (phishing), so we should outright disable direct text input in web pages? I think Firefox 3's anti-phishing and anti-malware features are added exactly to counter this kind of bad guys, so we don't need to disable text input or file download to prevent possible exploits from them.

And it's mostly a moot security measure since real malicious people can bypass it easily. So Firefox 3 tried to fix a theoretical security hole (and this "fix" can be bypassed easily) by completely altering the expected behavior of the file input box that leads to great usability problems and resulting in a completely non-sensical UI (a text input box that functions like a button). And this same "security hole" can be fixed with far less drastic means. I don't think this is a good idea IMHO.

And people are allowed to turn the Anti-Phishing and Anti-Malware features off in Firefox3, but there's no option to turn the file input box back on? I'd say that makes little sense.

Safari doesn't even have a text field with a file form element.

yea, and Safari didn't even have a download confirmation dialog (until they just fix it in 3.1.2). It's from Apple, so I guess it's expected to have some great neat features accompanied by some really strange weird usability problems and/or quirks. But then at least Safari's implementation doesn't show a text input box, thus less confusing.

The real problem for me is that Firefox 3 file inputs only seem to return the file name, not the full path.

This is different from Firefox 2 and with Internet Explorer when working from the same 'URL security zone' (see http://msdn.microsoft.com/en-us/library/ms535128.aspx).

See www.samdutton.com/firefox.html for an example.

The reason they've done this, is so you can't hide the button via CSS and trick people into thinking it's a normal text-box (so you can upload files on their system without them knowing it).

People whined and bitched at Safari for doing the same thing.

There is a work around for it: http://damnmachine.com/128/fx3_upload-fix.html

well, "drag n' drop" doesn't help the situation much, since one still can't just copy&paste multiple file names without the file browser popping up repeatedly, a real usability drawback with multiple file uploads.

The reason they've done this, is so you can't hide the button via CSS and trick people into thinking it's a normal text-box (so you can upload files on their system without them knowing it).

well, by the same logic, to prevent phishing, they should disable all input box by default, and enable them only after you have scanned through the whole URL with the mouse pointer or cursor keys.

really, there are much better ways to deal with this potential "security hole", without drastically changing the behavior of the file input box and ending up with a confusing UI.

But then people can be tricked into uploading files with a simple flash form anyway.

People whined and bitched at Safari for doing the same thing.

Apparently they still need to whine and bitch some more to make Apple add an option to prompt before saving files in the Mac OS X version :laugh:

The file selector uploads files, it isn't comparable to a plain text box, I don't see why you're even using that argument.

And just because there are multiple ways to do it (like through Flash), doesn't mean we shouldn't bother fixing any of them ("I was going to lock my door, but then I noticed my window was open, so I left my door unlocked").

The file selector uploads files, it isn't comparable to a plain text box, I don't see why you're even using that argument.

It's changing the behavior of the file input box drastically, so it's very comparable to drastically changing the behavior of the plain text box for some potential exploits.

A site exploiting the file input box to trick you into uploading files in disguise of a normal text input is comparable to a site exploiting the password text input to trick you into entering your password in disguise of an online banking site. So Firefox "fixing" the file input box by completely disabling the text input, it's indeed comparable to "fixing" the password text box by requiring you first scan through the URL to prevent phishing.

They are both examples of over-reactions against some "security holes", one is already implemented in Firefox 3, the other hypothetical, but both are at the same level of absurdity, both are "let's fix a security hole by a drastic measure that greatly reduces the usability, while other much less drastic and more user-friendly alternatives are clearly available". That's why I'm using this argument. There's no good reason behind this file input "fix", just like there'd be no good reason to disable password input box until a full scan of URL.

And just because there are multiple ways to do it (like through Flash), doesn't mean we shouldn't bother fixing any of them ("I was going to lock my door, but then I noticed my window was open, so I left my door unlocked").

The point is that such drastic "fix" leads to great usability problems, in the name of "fixing" a "security hole" which it doesn't patch up anyway. It's like giving your door a complex lock that takes hours to open, but leaving the windows with a normal lock, so the legal inhabitants of the house has to spend hours to enter their own home, while a real thief can still enter the house easily under minutes, is just not logical.

Not to mention when they have enforced such drastical measures against the file input box with no option to turn it off, but give easy options to turn off the anti-phishing and anti-malware features, it's simply ridiculous and shows a severe lack of consistency in their logic and reasoning regarding "security".

This new text box drove me CRAZY. I couldn't take it one more minute so now I use IE (ugh) when I'm doing a lot of uploads or other such activities.

At work I upload updated data files to various websites, ours and our clients', so there are endless variations of the same bunch of data. I might need to import a set of 5 files in 3 or 4 different formats (ex: NewData1.csv, NewData2.csv; NewData1.txt, NewData2.txt, etc.) to 9 different websites.

Before this crappy new feature ruined my life, I was able to browse for the first file, then copy and paste the path/filename into the other admin pages, and THEN simply change a number in the filename and click import to upload the next file. Now with copy/paste and editing disabled I have to browse through dozens or hundreds of files and click the file I need every single time, over and over and over and over and over and over. It's a MAJOR pain. I broke up the dir with hundreds of data files, then I made separate "recent ULs" dirs, but with so many formats that filled up too, so then I was constantly shifting files into old, new, staging, recent (and onandonandon) directories, trying other things to make life easier. By the time I got to making "AAADataFile6.csv", then renaming it after the upload, I realized I'd gone off the deep end and was going to need to check into a rest home. I wised up and dusted off my IE icon.

I haven't had IE visible on my desktop in years, but now there it is in all it's glory. I hope the FF developers that came up with this garbage feature are proud of themselves.

I hate, hate hate that new feature.

It's changing the behavior of the file input box drastically, so it's very comparable to drastically changing the behavior of the plain text box for some potential exploits.

A site exploiting the file input box to trick you into uploading files in disguise of a normal text input is comparable to a site exploiting the password text input to trick you into entering your password in disguise of an online banking site. So Firefox "fixing" the file input box by completely disabling the text input, it's indeed comparable to "fixing" the password text box by requiring you first scan through the URL to prevent phishing.

They are both examples of over-reactions against some "security holes", one is already implemented in Firefox 3, the other hypothetical, but both are at the same level of absurdity, both are "let's fix a security hole by a drastic measure that greatly reduces the usability, while other much less drastic and more user-friendly alternatives are clearly available". That's why I'm using this argument. There's no good reason behind this file input "fix", just like there'd be no good reason to disable password input box until a full scan of URL.

The point is that such drastic "fix" leads to great usability problems, in the name of "fixing" a "security hole" which it doesn't patch up anyway. It's like giving your door a complex lock that takes hours to open, but leaving the windows with a normal lock, so the legal inhabitants of the house has to spend hours to enter their own home, while a real thief can still enter the house easily under minutes, is just not logical.

Not to mention when they have enforced such drastical measures against the file input box with no option to turn it off, but give easy options to turn off the anti-phishing and anti-malware features, it's simply ridiculous and shows a severe lack of consistency in their logic and reasoning regarding "security".

Can you explain to me exactly what has your panties in a twist? Like what action I need to take to duplicate the behaviour this non-issue fix, as you call it?

Can you explain to me exactly what has your panties in a twist? Like what action I need to take to duplicate the behaviour this non-issue fix, as you call it?

can you explain to me exactly what you mean by this? I think I've already stated quite clearly what this so-called "security fix" affects, the file input box, ie. any <input type=file> HTML control.

if you want an example, then just go to http://xs.to and click the input box before the "Choose..." button.

Can you explain to me exactly what has your panties in a twist? Like what action I need to take to duplicate the behaviour this non-issue fix, as you call it?

Well, did you read my post (right before yours)?? You just TRY selecting 10-20 files and see how long it takes in FF as opposed to IE or the old FF, where you can copy and paste, or [heaven forbid!] actually TYPE a path/filename.

In the new FF, at least 5-10 seconds each. 20 files with dir browsing is well over 3 mins, just to select the files.

In old FF or IE, it takes as long as you need to go to the next tab, click the box, and hit CRTL-V. Less than 2 secs, all 20 files ready for upload in less than a minute. Less than ONE THIRD the time.

And, yes, 3 mins is a big deal. It means just one of my tasks takes 3x longer than necessary. 3 mins or 3 hours, it adds up.

  • 2 weeks later...
Well, did you read my post (right before yours)?? You just TRY selecting 10-20 files and see how long it takes in FF as opposed to IE or the old FF, where you can copy and paste, or [heaven forbid!] actually TYPE a path/filename.

You know you can type paths in the file upload dialog box, right? What's the difference? You click in the upload field in Fx3 (like you would anyway to make the cursor go there). and you paste the path in the File Name line.

The time you waste opening multiple tabs and hitting Upload multiple times is a saver to you?

can you explain to me exactly what you mean by this? I think I've already stated quite clearly what this so-called "security fix" affects, the file input box, ie. any <input type=file> HTML control.

if you want an example, then just go to http://xs.to and click the input box before the "Choose..." button.

It does the same as if you hit the browse button. What is the big deal?

  • 4 weeks later...
You know you can type paths in the file upload dialog box, right? What's the difference? You click in the upload field in Fx3 (like you would anyway to make the cursor go there). and you paste the path in the File Name line.

The time you waste opening multiple tabs and hitting Upload multiple times is a saver to you?

Another problem with this "feature": because you can not edit in the text box, it is IMPOSSIBLE to remove a file once it's in there. I selected a file and then made a lot of edits on the page. Then I decided that I didn't want to replace the file on the server, but there was NO WAY to remove the contents of that box. I had to cancel the entire transaction.

THIS can not be fixed by pasting into the File Open dialog box.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Universal USB Installer 2.0.3.7 by Razvan Serea The Universal USB Installer (UUI) is a powerful bootable USB software tool for creating USB boot drives from ISO files, perfect for installing Linux or Windows, running live systems, or building diagnostic toolkits. This versatile ISO-to-USB software makes it easy to boot from USB and create Live USBs for Linux distributions, Windows setup installers, antivirus tools, and system diagnostic utilities. Whether you need a multisystem Windows Media Creation Tool, a Live USB Linux installer, or an all-in-one PC diagnostic toolkit, UUI offers a reliable and flexible Linux and Windows bootable USB creator. Effortlessly carry your favorite portable operating systems and essential troubleshooting and diagnostic tools on a single flash drive or USB boot stick. Take your preferred Live Linux distributions, Windows installers, recovery software, backup utilities, and diagnostic tools with you, all bootable from a single USB drive. No more juggling multiple USB sticks or complicated bootloaders, UUI consolidates everything into one flexible, multiboot solution. Using this open source USB boot maker software is easy as 123. To create a Linux or Windows bootable USB drive, you simply select your target flash drive, choose your distribution from the list, browse to the ISO file (or choose to download the ISO), and then click Create. Once finished, you should have a ready to run Live USB containing the Live operating system, Windows installation media, or system diagnostics utility, or advanced system cleaner tool you previously selected. Universal USB Installer 2.0.3.7 changelog: Expanded the distro and tool catalog with additional popular Linux ISO entries. Updated: several distro homepage and download links, including Ubuntu Unity, Garuda Linux, Arch Linux, Fedora, Manjaro, and SystemRescue. Fixed: ISOs added via drag and drop (or manually copied to the drive) are now listed in the removal dropdown alongside normally installed distros. Download: Universal USB Installer 2.0.3.7 | 19.4 MB (Open Source) Link: Universal USB Installer Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You are clueless. The updates are done in the background so the next time you open Edge the updates are applied automatically. There is no need to close all your tabs. Just keep browsing like you normally do. Clearly you don't use Edge and are just one of those haters that complain for the sake of complaining.
    • I don't get this David. Can you explain it please.  
    • Microsoft is busy. Lots of changes to be released imminently for Windows server or soon. Also, lots happening for next version as well. Third party virus scanning software is being moved out of Kernel mode to avoid repeat of Crowdstrike incident. Windows Protected Mode and Windows Ready Print no longer require third party print drivers to be installed. New storage stack being developed. New NVME drivers now available for Windows Server 2025 to improve local NVME drive performance by 60+ percent. NVME-Of of fabric being worked on for next release to improve network access to NVME drives. ReFs (next file system) now has ability to boot and will become default file system in next release of Windows Server. ReFs improves on NTFS in several areas including resiliency and reliability and scalability. New update stack is being worked on to unify Windows updates, and updates for drivers and first party/3rd party application software. A stricter and more robust third-party driver certification program (ODI) is being worked on to improve performance, thermals, battery life, and reliability on modern Windows hardware by tightening how OEMs and IHVs (Intel, AMD, Qualcomm, NVIDIA, etc.) build and ship drivers. There is a tone more but too numerous to mention.
    • Now disable that stupid OneDrive backup request when Windows starts please. So unbelievably frustrating to only have “remind me later” instead of “no and never ask me again”
  • Recent Achievements

    • One Month Later
      Markus94287 earned a badge
      One Month Later
    • Week One Done
      Markus94287 earned a badge
      Week One Done
    • One Year In
      Markus94287 earned a badge
      One Year In
    • Dedicated
      truespursfan earned a badge
      Dedicated
    • Rookie
      restore went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      154
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!