eTicket v.1.5.1.1 Multiple Cross-Site Scripting<br><br>Author: Attila Gerendi (Darkz)<br>
Date: June 29, 2007<br>
Package: eTicket (<a href="http://eticket.sourceforge.net/">http://eticket.sourceforge.net/</a>)<br>
Versions Affected: v.1.5.1.1 (Other versions may also be affected)<br>
Severity: XSS<br><br>Input
passed to &quot;$_SERVER[&#39;REQUEST_URI&#39;]&quot; in various scrips and includes is
not properly sanitised before being used. This can be exploited to
insert arbitrary HTML and script code, which is executed in a user&#39;s
browser session in context of an affected site when malicious data is
viewed.<br><br>Vulnerable code pieces:<br><br>user_login.php on line 7:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot; name=&quot;user_login&quot;&gt;<br><br>admin_login.php on line 7: 
<br>&quot;&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot; name=&quot;admin_login&quot;&gt;&quot;<br><br>user_group.php on line 15:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt;
<br><br>rep.php on line 15: <br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt;<br><br>pref.php on line 15:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt;
<br><br>my.php on line 15:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt;<br><br>main.php on line 216:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;POST&quot;&gt;
<br><br>mail.php on line 16:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt;<br><br>cat.php on line 16:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt; 
<br><br>banlist_delete.php on line 13:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot;&gt;<br><br>banlist_delete.php on line 43:<br>&lt;a href=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot;&gt;&lt;?=LANG_BACK_TO_LIST?&gt;&lt;/a&gt;
<br><br>banlist_addedit.php on line 27:<br>&lt;form name=&quot;form&quot; action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; method=&quot;post&quot; onsubmit=&quot;return validateForm(this);&quot;&gt;<br><br>banlist_addedit.php on line 40:
<br>&lt;a href=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot;&gt;&lt;?=LANG_BACK_TO_LIST?&gt;&lt;/a&gt;<br><br>banlist.php on line 41:<br>&lt;form action=&quot;&lt;?=$_SERVER[&#39;REQUEST_URI&#39;]?&gt;&quot; name=&quot;banlist&quot;&gt;
<br><br>searc_form.php<br><br>$surl=$_SERVER[&#39;PHP_SELF&#39;].&#39;?s=&#39;.$news;<br>$qs=preg_replace(&#39;/s=(basic|advanced)/&#39;, &#39;&#39;, $_SERVER[&#39;QUERY_STRING&#39;]);<br>if ($qs != &#39;&#39;) { $surl.=(substr($qs, 0, 1) == &#39;&amp;&#39;)?$qs:&quot;&amp;amp;$qs&quot;; }
<br><br>?&gt;<br>&nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; name=&quot;search_submit&quot; class=&quot;inputsubmit&quot; value=&quot;&lt;?=LANG_SEARCH?&gt;&quot;&gt;<br>&nbsp;&nbsp;&nbsp; [&lt;a href=&quot;&lt;?=$surl?&gt;&quot;&gt;&lt;?=$stext?&gt;&lt;/a&gt;]
<br><br>
Status:<br>1.
Contacted the author at June 29, 2007 via sourceforge tracker
(<a href="https://sourceforge.net/tracker/?func=detail&amp;atid=725721&amp;aid=1745220&amp;group_id=132967">https://sourceforge.net/tracker/?func=detail&amp;atid=725721&amp;aid=1745220&amp;group_id=132967</a>).<br>2. The author concluded 
<tt>&quot;</tt>I am not happy that this is a real bug, and therefore will be closed until <tt><tt>further notice.</tt></tt>&quot;<br>3. After more work around on July 02 2007 the svn version was fixed.<br><br>
Solution:<br>-edit the source code to ensure the input is properly sanitized.