<?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>SchmaRs World &#187; Bug</title>
	<atom:link href="http://www.schmars-world.de/index.php/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schmars-world.de</link>
	<description></description>
	<lastBuildDate>Sun, 20 Nov 2011 20:42:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Betrugsm&#246;glichkeit bei Readster.de</title>
		<link>http://www.schmars-world.de/index.php/betrugsmoeglichkeit-bei-readsterde-2008-08-18/</link>
		<comments>http://www.schmars-world.de/index.php/betrugsmoeglichkeit-bei-readsterde-2008-08-18/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 14:35:37 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[readster.de]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=35</guid>
		<description><![CDATA[Bereits einige Blogs berichteten &#252;ber die Auswirkungen einer nicht ganz durchdachten Programmierung bei readster.de, doch wurde dort eher mehr spekuliert als Fakten zu liefern. Gestern wurde eine L&#252;cke im Bewertungssystem von Readster entdeckt, welche das Massenhafte Voten von Artikeln zulie&#223;. Das System zum voten basiert bei Anonymen Usern ganz und gar auf Cookies und hier [...]]]></description>
			<content:encoded><![CDATA[<p>Bereits einige Blogs berichteten &#252;ber die Auswirkungen einer nicht ganz durchdachten Programmierung bei <a href="http://www.readster.de">readster.de</a>, doch wurde dort eher mehr spekuliert als Fakten zu liefern. Gestern wurde eine <strong>L&#252;cke im Bewertungssystem</strong> von Readster entdeckt, welche das Massenhafte Voten von Artikeln zulie&#223;.</p>
<p><span id="more-35"></span></p>
<p><a href='http://www.schmars-world.de/wp-content/uploads/2008/08/readster1.jpg' rel='shadowbox[sbpost-35];player=img;'><img src="http://www.schmars-world.de/wp-content/uploads/2008/08/readster1-300x192.jpg" alt="readster" title="readster" align="center" width="300" height="192" /></a></p>
<p>Das System zum voten basiert bei Anonymen Usern ganz und gar auf <strong>Cookies </strong>und hier lag auch der Fehler. Akzeptierte man keine Cookies konnte man die Bewertung der Artikel <strong>fr&#246;hlich nach oben pushen</strong>. Laut einem Kommentar von Readster auf <a href="http://trends-in.de/aktuell/readster-geknackt-oder-manipuliert-82/#comments">trends-in.de</a> sollen anonyme Kommentare die Artikel in der Bewertung kaum steigen lassen.</p>
<blockquote><p>
<strong>Readster bei trends-in.de</strong><br />
„Zur Erg&#228;nzung.<br />
Es waren alle Anonymen Votes. Anonym kann man nur wenig &#228;ndern. Registrierte User haben einen vielen gr&#246;&#223;eren Einfluss“</p></blockquote>
<p>Dennoch war es einem anonymen User kein Problem einige Artikel auf die ersten Pl&#228;tze zu <strong>cheaten</strong>. Darunter auch leider einige meiner, was mich aber zum Nachforschen wie dies von statten gegangen ist animierte.</p>
<p>Diese von so gut wie jedem benutzbare <strong>L&#252;cke wurde bereits geschlossen.</strong> Was auch vollkommen im Interesse der Community steht. Ich pers&#246;nlich finde, dass Portale wie Readster, Yigg und Co immer f&#252;r jeden Fair sein sollten und nicht durch solch simple „<em>Ans&#228;tze</em>“ „<em>manipulierbar</em>“ sein sollten. Zumal die Bewertungen jederzeit durch <strong><em>Zufall </em></strong>h&#228;tten entstehen k&#246;nnen, durch einen Nutzer der lediglich keine Cookies akzeptiert. Die Spekulationen auf anderen Blogs es k&#246;nnte sich um einen Hack handeln sind grundlegend Falsch es ist lediglich ein kleiner Logikfehler in einer essentiell wichtigen Funktion gewesen.</p>
<h3>Noch keine Entwarnung!</h3>
<p>Die L&#252;cke ist aber noch nicht ganz ausgemerzt. Theoretisch ist es momentan m&#246;glich ein Tool zu schreiben mit welchen man Votezahlen in Tausenderh&#246;he erzeugen kann, Ich bitte die Betreiber von Readster auf das eindringlichste hin diese „L&#252;cke“ zu schlie&#223;en.</p>
<p>Das System wurde insoweit verbessert als das man mit deaktivierten Cookies nicht mehr Voten kann, und ich vermute auch dass jetzt eine Sessionvariable mit zur &#220;berpr&#252;fung auf diese L&#252;cke mit hinzugezogen wurde.</p>
<p>Jedoch wenn man die von Readster gesetzten Cookies l&#246;scht und eine neue http Verbindung zur Seite aufbaut kann man ein weiteres Mal Voten. Diese Gegebenheit k&#246;nnte man theoretisch in Form eines kleinen <strong>Tools </strong>dazu benutzen um Artikel hoch zu cheaten.</p>
<p>Dieses besagte Tool m&#252;sste lediglich folgende Zeilen (wobei der Wert in den &lt;i4> tags der i4 ID eines Artikels entspricht) an die Datei <em>xmlrpc.js</em> schicken und die gesetzten Cookies l&#246;schen und mit einer kleinen schleife w&#228;re ein f&#252;r Blackhats nettes <strong>Cheatertool </strong>geboren.</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <!--[if gte mso 10]></p>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Normale Tabelle";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<p><![endif]--></p>
<p class="MsoNormal"><span style="font-family: Arial;"> </span></p>
<pre class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;methodCall<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;methodName<span style="font-weight: bold; color: black;">&gt;</span></span></span>NZ_MyNews.rate<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/methodName<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;params<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;param<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;value<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;i4<span style="font-weight: bold; color: black;">&gt;</span></span></span>27167<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/i4<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/value<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/param<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;param<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;value<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;string<span style="font-weight: bold; color: black;">&gt;</span></span></span>up<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/string<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/value<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/param<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/params<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/methodCall<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li></ol></pre>
<p>Hoffen wir mal auf ein baldiges <strong>komplettes Bereinigen der L&#252;cke</strong> im Bewertungsystem. Meiner Meinung nach sollte eine Funktion zur <em>tempor&#228;ren Sperre von IPs</em> Abhilfe schaffen.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=35&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/betrugsmoeglichkeit-bei-readsterde-2008-08-18/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Bug in Forensoftware f&#252;r WordPress</title>
		<link>http://www.schmars-world.de/index.php/bug-in-forensoftware-fur-wordpress-2008-08-11/</link>
		<comments>http://www.schmars-world.de/index.php/bug-in-forensoftware-fur-wordpress-2008-08-11/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 15:07:20 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=32</guid>
		<description><![CDATA[Ich habe vor kurzem beim modifizieren der „Simple:Press Forum“ Forensoftware einen Bug in dem Avatarverwaltungssystem ausgemacht. Dieser Bug verhindert das korrekte arbeiten einer neuen Funktion zum L&#246;schen und ersetzen von Avatarbildern. Der Bug ist in der sf-avatars.php zu finden. Hier wurde in der IF-clause vergessen die „SFAVATARS“ Konstante anzugeben. Diese Konstante enth&#228;lt den Pfad zu [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe vor kurzem beim modifizieren der „<a href="http://www.stuff.yellowswordfish.com/simplepress-forum/">Simple:Press Forum</a>“ Forensoftware einen Bug in dem Avatarverwaltungssystem ausgemacht. Dieser Bug verhindert das korrekte arbeiten einer neuen Funktion zum L&#246;schen und ersetzen von Avatarbildern.</p>
<p><span id="more-32"></span></p>
<p>Der Bug ist in der sf-avatars.php zu finden. Hier wurde in der IF-clause vergessen die <em>„SFAVATARS“</em> Konstante anzugeben. Diese Konstante enth&#228;lt den Pfad zu dem Speicherort der Avatare. Die IF-clause beinhaltet die PHP funktion <a href="http://de3.php.net/file-exists">file_exists()</a> welche &#252;berpr&#252;ft ob eine bestimmte Datei vorhanden ist. Da aber der Pfad zu dem Speicherort der Avatare fehlt werden die „alten“ Dateien nicht gel&#246;scht sondern nur die neue Datei hochgeladen, was letztendlich und vor allem bei gr&#246;&#223;erer Useranzahl zu einem Durcheinander und Speicherplatzverschwendung wird.</p>
<p>Hier ist das entsprechende Codefragment</p>
<blockquote><p>// delete old avatar if it exists<br />
$oldfilename = sf_get_member_item($userid, 'avatar');<br />
if (file_exists($oldfilename)) {<br />
unlink(SFAVATARS.$oldfilename);<br />
}</p></blockquote>
<p>Diese kleine „Fehlfunktion" ist sehr einfach durch das hinzuf&#252;gen der Konstante „SFAVATARS“ zu beheben.</p>
<blockquote><p>// delete old avatar if it exists<br />
$oldfilename = sf_get_member_item($userid, 'avatar');<br />
if (file_exists(SFAVATARS.$oldfilename)) {<br />
unlink(SFAVATARS.$oldfilename);<br />
}</p></blockquote>
<p>Einen Bugreport habe ich bereits geschrieben und der <a href="http://www.stuff.yellowswordfish.com">Entwickler </a>wollte sich um das Problem k&#252;mmern, sodass bei der n&#228;chsten Version nicht mehr auftritt.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=32&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/bug-in-forensoftware-fur-wordpress-2008-08-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

