VK said the following on 11/16/2006 6:08 AM:
Quote:
Randy Webb wrote:
Quote:
><form id="myForm">
><input type="file" name="myFileInput">
><button onclick="document.myForm.myFileInput.click()">Test </button>
></form>
>>
>IE only.
>>
>Now, please explain how that is a "security exploit".
>
There are "technical exploits" and "human factor exploits".
You said "security exploit" and I am challenging you, once again, to
show an exploit by being able to programatically click the input button.
Quote:
A technical exploit with type="file" was for example (for several years
on "some well-known UA", fixed now):
Then it isn't an exploit anymore, you are talking about a fixed security
issue.
Quote:
objectInputType.value = "C:\\WINDOWS\\Cookies\\index.dat";
objectForm.submit();
Yes, and it was fixed by not allowing the setting of a file input's
value. And it has *nothing* to do with the question at hand.
Quote:
That answers btw recent questions "why these nasty UA's do not let me
to set/read path strings in input type="file")
You can't set it but you *can* read it.
Quote:
The exploit you just listed is "human factor"-based one. It allows to
disassemble (in the user mind) the file dialog popup and the current
form navigation. All we need atop is some full DHTML-based visual
emulation of ActiveX security dialog from say "Microsoft, Inc." where
the automatic upload window will be a part of "Microsoft, Inc. security
surway/update/request".
And I can do that without clicking the button. Again, you aren't
answering my question. Yet you are avoiding it.
Quote:
The UA's really concerned about user's security have locked this
exploit long ago; because as Kevin Mitnick has proved long time ago, in
the human-computer system the most vulnerable part is always human,
rarely computer.
You still haven't answered my question. I want you to take the code I
posted and show the "security vulnerability" in it. If you can do that,
then I will openly admit to being wrong. Until then, you are just VK'ing
as you normally do.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/