<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://united-coders.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>united-coders.com - Opera</title>
 <link>http://united-coders.com/taxonomy/term/103/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Circumvention of Opera&#039;s Upload Field Path Protection</title>
 <link>http://united-coders.com/matthias-reuter/circumvention-of-operas-upload-field-path-protection</link>
 <description>&lt;p&gt;If you have a form with a file upload field, in some browsers you cannot extract the path to the chosen file. This is meant as a security measure, because it might reveal some information about the user, e.g. the username.&lt;/p&gt;
&lt;p&gt;In earlier versions of Opera, if you tried to read the upload field&#039;s value, only the file name was given:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;javascript geshifilter-javascript&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; uploadField &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; document.&lt;span style=&quot;color: #660066;&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;upload&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; path &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; uploadField.&lt;span style=&quot;color: #660066;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// was &amp;quot;foo.jpg&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;In the recent version, Opera for some reason reveals a full path, but it&#039;s a fake path:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;javascript geshifilter-javascript&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; uploadFIeld &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; document.&lt;span style=&quot;color: #660066;&quot;&gt;getElementById&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;upload&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; path &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; uploadField.&lt;span style=&quot;color: #660066;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// now &amp;quot;C:\fake_path\foo.jpg&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/matthias-reuter/circumvention-of-operas-upload-field-path-protection&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/matthias-reuter/circumvention-of-operas-upload-field-path-protection&quot; dc:identifier=&quot;http://united-coders.com/matthias-reuter/circumvention-of-operas-upload-field-path-protection&quot; dc:title=&quot;Circumvention of Opera&amp;#039;s Upload Field Path Protection&quot; trackback:ping=&quot;http://united-coders.com/trackback/44&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-9130&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/matthias-reuter/circumvention-of-operas-upload-field-path-protection#comments</comments>
 <category domain="http://united-coders.com/category/tags/opera">Opera</category>
 <category domain="http://united-coders.com/category/tags/security">security</category>
 <pubDate>Sun, 20 Dec 2009 22:40:08 +0000</pubDate>
 <dc:creator>Matthias Reuter</dc:creator>
 <guid isPermaLink="false">44 at http://united-coders.com</guid>
</item>
</channel>
</rss>


