<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Larholm.com</title>
	<atom:link href="http://larholm.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://larholm.com</link>
	<description>Me, myself and I</description>
	<pubDate>Tue, 09 Mar 2010 22:44:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>Comment on Safari for Windows, 0day exploit in 2 hours by TimWeb &#187; Windows Safari</title>
		<link>http://larholm.com/2007/06/12/safari-for-windows-0day-exploit-in-2-hours/#comment-34851</link>
		<dc:creator>TimWeb &#187; Windows Safari</dc:creator>
		<pubDate>Fri, 05 Dec 2008 22:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://test.larholm.com/?p=14#comment-34851</guid>
		<description>[...] June 13th: Apparently there have already been several vulnerabilities found in [...]</description>
		<content:encoded><![CDATA[<p>[...] June 13th: Apparently there have already been several vulnerabilities found in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Long time no see, hello Chrome by BK RIos</title>
		<link>http://larholm.com/2008/09/09/long-time-no-see-hello-chrome/#comment-34786</link>
		<dc:creator>BK RIos</dc:creator>
		<pubDate>Thu, 04 Dec 2008 07:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://larholm.com/?p=29#comment-34786</guid>
		<description>Swwweeet!  Thor's Back! Look out browser world!</description>
		<content:encoded><![CDATA[<p>Swwweeet!  Thor&#8217;s Back! Look out browser world!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Long time no see, hello Chrome by Thor Larholm</title>
		<link>http://larholm.com/2008/09/09/long-time-no-see-hello-chrome/#comment-34404</link>
		<dc:creator>Thor Larholm</dc:creator>
		<pubDate>Tue, 25 Nov 2008 14:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://larholm.com/?p=29#comment-34404</guid>
		<description>Thanks Nate, I have some new vulnerabilities lying around that I might just have to post :)</description>
		<content:encoded><![CDATA[<p>Thanks Nate, I have some new vulnerabilities lying around that I might just have to post <img src='http://larholm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Long time no see, hello Chrome by Nate McFeters</title>
		<link>http://larholm.com/2008/09/09/long-time-no-see-hello-chrome/#comment-34331</link>
		<dc:creator>Nate McFeters</dc:creator>
		<pubDate>Sun, 23 Nov 2008 18:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://larholm.com/?p=29#comment-34331</guid>
		<description>Very interesting find Thor.  Hoping to see more posts from you soon.

-Nate</description>
		<content:encoded><![CDATA[<p>Very interesting find Thor.  Hoping to see more posts from you soon.</p>
<p>-Nate</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Internet Explorer 0day Exploit by KVIrc 3.4.2 URI handler in combination with IE exploitable &#124; IRC-Junkie.org</title>
		<link>http://larholm.com/2007/07/10/internet-explorer-0day-exploit/#comment-34287</link>
		<dc:creator>KVIrc 3.4.2 URI handler in combination with IE exploitable &#124; IRC-Junkie.org</dc:creator>
		<pubDate>Sat, 22 Nov 2008 15:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://larholm.com/2007/07/10/internet-explorer-0day-exploit/#comment-34287</guid>
		<description>[...] malicious link is opened with Microsoft&#8217;s Internet Explorer and is possible because of its unique way to handle double quotes (&#8221;) in links.   This time it is not possible to just let the client of a victim crash but to execute a [...]</description>
		<content:encoded><![CDATA[<p>[...] malicious link is opened with Microsoft&#8217;s Internet Explorer and is possible because of its unique way to handle double quotes (&#8221;) in links.   This time it is not possible to just let the client of a victim crash but to execute a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHPMailer 0day remote command execution by hacker.com.br &#187; Blog Archive &#187; PHPMailer Vulnerável</title>
		<link>http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/#comment-33479</link>
		<dc:creator>hacker.com.br &#187; Blog Archive &#187; PHPMailer Vulnerável</dc:creator>
		<pubDate>Sat, 08 Nov 2008 13:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://test.larholm.com/?p=13#comment-33479</guid>
		<description>[...] Mambo LaiThai Global 4.5.6 Release Notes (MamboXChange) PHPMailer 0day remote execution (Thor Larholm) Announcements: GLPI 0.68.3-2 bug fixes (GLPI) Knowledgeroot Knowledgebase Release [...]</description>
		<content:encoded><![CDATA[<p>[...] Mambo LaiThai Global 4.5.6 Release Notes (MamboXChange) PHPMailer 0day remote execution (Thor Larholm) Announcements: GLPI 0.68.3-2 bug fixes (GLPI) Knowledgeroot Knowledgebase Release [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cheers and musing by Richard Bejtlich</title>
		<link>http://larholm.com/2007/04/05/hello-world-2/#comment-33180</link>
		<dc:creator>Richard Bejtlich</dc:creator>
		<pubDate>Sun, 02 Nov 2008 18:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://test.larholm.com/?p=4#comment-33180</guid>
		<description>Destroy him, my robots!</description>
		<content:encoded><![CDATA[<p>Destroy him, my robots!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Safari for Windows, 0day exploit in 2 hours by klee</title>
		<link>http://larholm.com/2007/06/12/safari-for-windows-0day-exploit-in-2-hours/#comment-32698</link>
		<dc:creator>klee</dc:creator>
		<pubDate>Thu, 23 Oct 2008 15:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://test.larholm.com/?p=14#comment-32698</guid>
		<description>Yeah. Windows versions has lots of bugs that are fixed after some time. Like this one, found recently:

&lt;a href='http://anotherquirk.blogspot.com/2008/10/safari-submit-back-submit-oops.html' rel="nofollow"&gt;Safari: submit, back, submit... ooops&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Yeah. Windows versions has lots of bugs that are fixed after some time. Like this one, found recently:</p>
<p><a href='http://anotherquirk.blogspot.com/2008/10/safari-submit-back-submit-oops.html' rel="nofollow">Safari: submit, back, submit&#8230; ooops</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Long time no see, hello Chrome by Wes</title>
		<link>http://larholm.com/2008/09/09/long-time-no-see-hello-chrome/#comment-32258</link>
		<dc:creator>Wes</dc:creator>
		<pubDate>Tue, 14 Oct 2008 01:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://larholm.com/?p=29#comment-32258</guid>
		<description>I diff'ed the file file_util_win.cc from prior to the code fix to better understand.  Trying to learn the code to start patch work.  Great catch.</description>
		<content:encoded><![CDATA[<p>I diff&#8217;ed the file file_util_win.cc from prior to the code fix to better understand.  Trying to learn the code to start patch work.  Great catch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Long time no see, hello Chrome by mxatone</title>
		<link>http://larholm.com/2008/09/09/long-time-no-see-hello-chrome/#comment-31210</link>
		<dc:creator>mxatone</dc:creator>
		<pubDate>Wed, 10 Sep 2008 16:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://larholm.com/?p=29#comment-31210</guid>
		<description>Hum the issue is not on the snippet code you copy past.

The diff is here : http://src.chromium.org/viewvc/chrome/branches/chrome_official_branch/src/chrome/common/win_util.cc?r1=1766&#38;r2=1765&#38;pathrev=1766

The code was :

// Initially populated by the file component of 'suggested_name', this buffer 	 
// will be written into by Windows when the user is done with the dialog box. 	 
wchar_t file_name[MAX_PATH+1]; 	 
std::wstring file_part = file_util::GetFilenameFromPath(suggested_name); 
memcpy(file_name, file_part.c_str(), (file_part.length()+1) * sizeof(wchar_t));

and becomes:

// The size of the in/out buffer in number of characters we pass to win32
// GetSaveFileName.  From MSDN "The buffer must be large enough to store the
// path and file name string or strings, including the terminating NULL
// character.  ... The buffer should be at least 256 characters long.".
static const size_t kMaxFilenameSize = MAX_PATH + 1;

// Initially populated by the file component of 'suggested_name', this buffer
// will be written into by Windows when the user is done with the dialog box.
std::wstring file_part = file_util::GetFilenameFromPath(suggested_name); 
wchar_t file_name[kMaxFilenameSize];
base::wclscpy(file_name, file_part.c_str(), kMaxFilenameSize);

file_part length is not trusted anymore.

It is because GetDirectoryFromPath is not restrained to a specific size. If the path is superior to MAX_PATH, GetFullPathName return the number of required chars (not 0) and then the entire string is returned.</description>
		<content:encoded><![CDATA[<p>Hum the issue is not on the snippet code you copy past.</p>
<p>The diff is here : <a href="http://src.chromium.org/viewvc/chrome/branches/chrome_official_branch/src/chrome/common/win_util.cc?r1=1766&amp;r2=1765&amp;pathrev=1766" rel="nofollow">http://src.chromium.org/viewvc/chrome/branches/chrome_official_branch/src/chrome/common/win_util.cc?r1=1766&amp;r2=1765&amp;pathrev=1766</a></p>
<p>The code was :</p>
<p>// Initially populated by the file component of &#8217;suggested_name&#8217;, this buffer<br />
// will be written into by Windows when the user is done with the dialog box.<br />
wchar_t file_name[MAX_PATH+1];<br />
std::wstring file_part = file_util::GetFilenameFromPath(suggested_name);<br />
memcpy(file_name, file_part.c_str(), (file_part.length()+1) * sizeof(wchar_t));</p>
<p>and becomes:</p>
<p>// The size of the in/out buffer in number of characters we pass to win32<br />
// GetSaveFileName.  From MSDN &#8220;The buffer must be large enough to store the<br />
// path and file name string or strings, including the terminating NULL<br />
// character.  &#8230; The buffer should be at least 256 characters long.&#8221;.<br />
static const size_t kMaxFilenameSize = MAX_PATH + 1;</p>
<p>// Initially populated by the file component of &#8217;suggested_name&#8217;, this buffer<br />
// will be written into by Windows when the user is done with the dialog box.<br />
std::wstring file_part = file_util::GetFilenameFromPath(suggested_name);<br />
wchar_t file_name[kMaxFilenameSize];<br />
base::wclscpy(file_name, file_part.c_str(), kMaxFilenameSize);</p>
<p>file_part length is not trusted anymore.</p>
<p>It is because GetDirectoryFromPath is not restrained to a specific size. If the path is superior to MAX_PATH, GetFullPathName return the number of required chars (not 0) and then the entire string is returned.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
