File stealing by changing input type
- April 13, 2006
- Claus Jörgensen
- Firefox, Mozilla Suite, SeaMonkey
- Fixed in
- Firefox 1.0.8
- Firefox 188.8.131.52
- Mozilla Suite 1.7.13
- SeaMonkey 1.0.1
Claus Jörgensen reports that a text input box can be pre-filled with a filename and then turned into a file-upload control with the contents intact, allowing a malicious website the ability to steal any local file whose name they can guess.
Jesse Ruderman reports a variation, changing the type of the input control in an event handler to work around some of the initial checks.
Upgrade to fixed version.