<?xml version="1.0" encoding="windows-1252"?>
<node id="771784" title="Re^2: how to improve my script" created="2009-06-15 15:50:14" updated="2009-06-15 15:50:14">
<type id="11">
note</type>
<author id="194370">
skx</author>
<data>
<field name="doctext">
&lt;p&gt;I downloaded and ran your code, and traversals with ".." definitely work:&lt;/p&gt;
&lt;code&gt;
skx@gold:~$ telnet 127.0.0.1 4321 
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /../../../../../../etc/passwd HTTP/1.0
root:x:0:0:root:/root:/bin/bash
..
&lt;/code&gt;
&lt;p&gt;I notice too that you never return a content-type in your response which is surprising to say the least!  (I was surprised that firefox displayed the resulting pages correctly.)&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-194370"&gt;
&lt;a href="http://www.steve.org.uk/"&gt;Steve&lt;/a&gt;&lt;br/&gt;
-- &lt;br/&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
771634</field>
<field name="parent_node">
771751</field>
</data>
</node>
