<?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>Rediscoverer &#187; Reminders</title>
	<atom:link href="http://rediscoverer.net/archives/category/reminders/feed" rel="self" type="application/rss+xml" />
	<link>http://rediscoverer.net</link>
	<description>... since almost everything is already out there.</description>
	<lastBuildDate>Sat, 28 Feb 2009 10:32:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>1st Philippine PHP Developer&#8217;s Conference</title>
		<link>http://rediscoverer.net/archives/33</link>
		<comments>http://rediscoverer.net/archives/33#comments</comments>
		<pubDate>Wed, 10 Oct 2007 03:00:58 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[Reminders]]></category>
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/archives/33</guid>
		<description><![CDATA[&#8220;Welcome to the 1st ever Philippine PHP Developer&#8217;s Conference that will be held this upcoming December 1, 2007 where sharing opensource solutions in the enterprise and schools is the main theme.This is in follow up with last April&#8217;s grand meetup which caught the attention of Philippines IT Industry and were looking forward of expanding it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href='http://www.php.net/cal.php?id=2807&amp;cm=12&amp;cy=2007' title='PHP Everywhere'><img src='http://rediscoverer.net/wp-content/uploads/2007/10/phpmeet12-07.png' alt='PHP Everywhere' /></a></p>
<blockquote>&#8220;Welcome to the 1st ever Philippine <span class="caps">PHP</span> Developer&#8217;s Conference that will be held this upcoming December 1, 2007 where sharing opensource solutions in the enterprise and schools is the main theme.This is in follow up with last April&#8217;s grand meetup which caught the attention of Philippines IT Industry and were looking forward of expanding it&#8217;s presence thru this event.&#8221; </blockquote>

Still accepting event sponsors. For more info, please visit:<br />
<p style="text-align: center"><a href='http://www.phpugph.com/' title='PHP User-Group Philippines'><img src='http://rediscoverer.net/wp-content/uploads/2007/10/phpugph-logo.gif' alt='PHPUGPH Logo' /></a></p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/33/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Input Elements: disabled vs. readOnly</title>
		<link>http://rediscoverer.net/archives/32</link>
		<comments>http://rediscoverer.net/archives/32#comments</comments>
		<pubDate>Tue, 09 Oct 2007 13:56:36 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[Reminders]]></category>
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/archives/32</guid>
		<description><![CDATA[Disabled and readOnly input elements both prevent its data from being changed (at least via the user). But a disabled input element&#8217;s data is not sent with other data when the form is submitted. Could&#8217;ve saved me that extra 30-minute debugging time.]]></description>
			<content:encoded><![CDATA[<p>Disabled and readOnly input elements both prevent its data from being changed (at least via the user).<br />
But a disabled input element&#8217;s data is not sent with other data when the form is submitted. Could&#8217;ve saved me that extra 30-minute debugging time.</p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/32/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SKYPE Phishing Attempt</title>
		<link>http://rediscoverer.net/archives/30</link>
		<comments>http://rediscoverer.net/archives/30#comments</comments>
		<pubDate>Tue, 11 Sep 2007 23:46:13 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[Reminders]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/archives/30</guid>
		<description><![CDATA[Received an email claiming that it&#8217;s from Skype and it wants me to update my Skype profile. It was already suspicious because I don&#8217;t think Skype (and perhaps other service providers) would suspend users for not updating their account. It gave me a link to http://cavyg.com/ze4/include/cs/www.skype.com/login454544465646464/index.htm which was &#8220;dressed&#8221; as https://secure.skype.com/login_update_done=1115487. And that was the [...]]]></description>
			<content:encoded><![CDATA[<p>Received an email claiming that it&#8217;s from Skype and it wants me to update my Skype profile. It was already suspicious because I don&#8217;t think Skype (and perhaps other service providers) would suspend users for not updating their account. It gave me a link to <a href="http://cavyg.com/ze4/include/cs/www.skype.com/login454544465646464/index.htm">http://cavyg.com/ze4/include/cs/www.skype.com/login454544465646464/index.htm</a> which was &#8220;dressed&#8221; as <a href="https://secure.skype.com/login_update_done=1115487">https://secure.skype.com/login_update_done=1115487</a>. And that was the giveaway clue.</p>

<p style="text-align: center"><a href='http://rediscoverer.net/wp-content/uploads/2007/09/phisshemail.png' title='Phishing Email'><img src='http://rediscoverer.net/wp-content/uploads/2007/09/phisshemail.thumbnail.png' alt='Phishing Email' /></a></p>

<p>Curious of what&#8217;s behind the link, I clicked it. After the page has loaded Firefox informed me that it&#8217;s a possible phishing attempt.</p>

<p style="text-align: center"><a href='http://rediscoverer.net/wp-content/uploads/2007/09/phishing.png' title='Phishing page'><img src='http://rediscoverer.net/wp-content/uploads/2007/09/phishing.thumbnail.png' alt='Phishing page' /></a></p>

<p>Hmmm&#8230; I wonder where they got my email address and if they knew I&#8217;m a Skype user or just randomly sent out the email. I already warned my friends about it.</p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/30/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XSS</title>
		<link>http://rediscoverer.net/archives/27</link>
		<comments>http://rediscoverer.net/archives/27#comments</comments>
		<pubDate>Fri, 08 Jun 2007 12:21:44 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[Javascript/Ajax]]></category>
		<category><![CDATA[Reminders]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/archives/27</guid>
		<description><![CDATA[Ok. Playtime&#8217;s over. Some people need to fix something. I&#8217;ve been playing with an XSS vulnerability in a social-networking site I&#8217;m using. The site had already had XSS holes in the past that got patched. But then the addition of new features always opened up new problems. One boring weekend, I got really curious with [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. Playtime&#8217;s over. Some people need to fix something. </p>

<p>I&#8217;ve been playing with an <acronym title="Cross-site scripting">XSS</acronym> vulnerability in a social-networking site I&#8217;m using. The site had already had  <span class="caps">XSS </span>holes in the past that got patched. But then the addition of new features always opened up new problems.</p>

<p>One boring weekend, I got really curious with what I can do with <span class="caps">XSS.</span> Usually, whenever I see a site that is prone to script injection, I pop-up an alert box (a warning to fix the hole) and redirect them to somewhere else (usually Google). This time, I tried something neat. I&#8217;ve already read articles about stealing cookies via <span class="caps">XSS </span>but didn&#8217;t get to see how the stolen cookies were put into use. So I thought of doing an actual experiment if those things really work.</p>

<p>Long story short: it worked. I was able log into other user accounts without knowing their password. I asked <a href="http://subersibo.net">some</a> <a href="http://redyushen.net">people</a> for help to test this and gave them a demo. Really, I&#8217;m tempted to peek at other people&#8217;s account. But I don&#8217;t want guilt to keep me awake all night after a hard day&#8217;s job.</p>

<p>I already informed the folks at that site about the <span class="caps">XSS </span>hole. Maybe I&#8217;ll post how I did it after the vulnerability gets fixed. It was quite simple like the articles I&#8217;ve read before.</p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/27/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EXTRACT() not working on phpMyAdmin</title>
		<link>http://rediscoverer.net/archives/24</link>
		<comments>http://rediscoverer.net/archives/24#comments</comments>
		<pubDate>Sat, 03 Mar 2007 00:42:02 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[Reminders]]></category>
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/archives/24</guid>
		<description><![CDATA[I was looking at the MySQL manual for Date and Time functions and stumbled upon a function that I might need for an &#8220;experiment&#8221; I&#8217;m doing. I used the function EXTRACT in my query, having my test run on phpMyAdmin, but it was giving me a syntax error warning. I thought that I might have [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking at the MySQL manual for <a href="http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html">Date and Time functions</a> and stumbled upon a function that I might need for an &#8220;experiment&#8221; I&#8217;m doing. I used the function <span class="caps">EXTRACT </span>in my query, having my test run on <a href="http://phpmyadmin.net">phpMyAdmin</a>, but it was giving me a syntax error warning. I thought that I might have the wrong syntax for <span class="caps">EXTRACT </span>so I tried running a sample query, right straight from the manual.</p>

<div class="igBar"><span id="lmysql-2"><a href="#" onclick="javascript:showPlainTxt('mysql-2'); return false;"><span class="caps">PLAIN TEXT</span></a></span></div><div class="syntax_hilite"><span class="langName">MySQL:</span><br /><div id="mysql-2">
<div class="mysql"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;"><span class="caps">SELECT</span></span> <span style="color: #993333; font-weight: bold;"><span class="caps">EXTRACT</span></span><span style="color: #66cc66;">&#40;</span><span style="color: #aa9933; font-weight: bold;"><span class="caps">YEAR</span></span> <span style="color: #993333; font-weight: bold;"><span class="caps">FROM</span></span> <span style="color: #ff0000;">&#8217;1999-07-02&#8242;</span><span style="color: #66cc66;">&#41;</span>; </div></li></ol></div>
</div></div><br />

<p>But it still gave me the same error warning. It should be working since its, after all, it was in the manual&#8230; otherwise it would be corrected or removed. I ran the same query, but this time the mysql command line. It worked. I executed the query in <span class="caps">PHP,  </span>it also worked. Well, I think phpMyAdmin is having some problems with this. I&#8217;m using phpMyAdmin &#8211; 2.8.1, on MySQL 5.0.21 that comes with <a href="http://www.apachefriends.org/en/xampp.html"><span class="caps">XAMPP</span></a> . Maybe I&#8217;ll try to ask somebody to test it in other versions.</p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/24/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trim whitespaces</title>
		<link>http://rediscoverer.net/archives/17</link>
		<comments>http://rediscoverer.net/archives/17#comments</comments>
		<pubDate>Fri, 08 Sep 2006 06:49:22 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Reminders]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/blog/archives/17</guid>
		<description><![CDATA[I was so conscious of properly sanitizing user input with htmlspecialchars() and addslashes() that sometimes I forget to trim() them for whitespaces. A small application I&#8217;m currently doing with CakePHP had this kind of bug related to unwanted whitespaces. It took me sometime to spot it.]]></description>
			<content:encoded><![CDATA[<p>I was so conscious of properly sanitizing user input with htmlspecialchars() and addslashes() that sometimes I forget to trim() them for whitespaces. A small application I&#8217;m currently doing with CakePHP had this kind of bug related to unwanted whitespaces. It took me sometime to spot it.</p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE doesn&#8217;t like trailing commas</title>
		<link>http://rediscoverer.net/archives/6</link>
		<comments>http://rediscoverer.net/archives/6#comments</comments>
		<pubDate>Tue, 18 Jul 2006 06:34:00 +0000</pubDate>
		<dc:creator>Rolan</dc:creator>
				<category><![CDATA[Javascript/Ajax]]></category>
		<category><![CDATA[Reminders]]></category>

		<guid isPermaLink="false">http://rediscoverer.net/blog/archives/6</guid>
		<description><![CDATA[I had this seemingly undetectable bug on one application I made using javascript. It was running fine on Firefox, no errors or warnings. But when my client checked it out the page wasn&#8217;t working. I wasn&#8217;t able to test it on IE right away since I only have Firefox installed on my office PC (which [...]]]></description>
			<content:encoded><![CDATA[<p>I had this seemingly undetectable bug on one application I made using javascript. It was running fine on Firefox, no errors or warnings. But when my client checked it out the page wasn&#8217;t working. I wasn&#8217;t able to test it on IE right away since I only have Firefox installed on my office PC (which is running on Linux with no <a title="Windows Emulator" href="http://winehq.com">Wine</a> installed). After arriving home, I looked at the page using IE and yes, the app wasn&#8217;t working. It took me the whole night to figure out what was going wrong. I forgot what error message IE was giving me. The only thing I remember is that it doesn&#8217;t  much about the problem. I read the code one more time, checking for any uninitialized variable or something that I might have overlooked. I was doubtful that it was suffering from cross-browser problems, since I relied mainly on <a title="Prototype Javascript Framework" href="http://prototype.conio.net">Prototype</a>&#8216;s nice collection of thingies that were already tested for cross-browser compatibility.</p>

<p>I loaded my javascript file on my editor (<a title="ConTEXT" href="http://context.cx">ConTEXT</a>) and began reading the code again. Half-way through the code, I saw a trailing comma inside an object definition. It kinda looked like this:</p>
<div class="igBar"><span id="ljavascript-4"><a href="#" onclick="javascript:showPlainTxt('javascript-4'); return false;"><span class="caps">PLAIN TEXT</span></a></span></div><div class="syntax_hilite"><span class="langName">JavaScript:</span><br /><div id="javascript-4">
<div class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">someClass.<span style="color: #006600;">prototype</span> =</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">someFunction: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// do something</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">anotherFunction: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// do another thing</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div></li></ol></div>
</div></div><br />
<p>I almost didn&#8217;t notice it. If it wasn&#8217;t for the big font I&#8217;ve set on my editor, I&#8217;d be rewriting a large chunk of my app. Hmmm&#8230; looks like Firefox is kind to orphan commas. </p>]]></content:encoded>
			<wfw:commentRss>http://rediscoverer.net/archives/6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
