<?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>Acunetix Web Application Security Blog &#187; Sandro</title>
	<atom:link href="http://www.acunetix.com/blog/author/sandrogauci/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.acunetix.com/blog</link>
	<description>Acunetix Web Application Security Blog</description>
	<lastBuildDate>Tue, 07 Sep 2010 13:10:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Learning from other&#8217;s mistakes: Twitter Security</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/learning-from-other%e2%80%99s-mistakes-twitter-security/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/learning-from-other%e2%80%99s-mistakes-twitter-security/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:14:20 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[Mikeyy Mooney]]></category>
		<category><![CDATA[oprah twitter]]></category>
		<category><![CDATA[security value]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter worm]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[xss worm]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=593</guid>
		<description><![CDATA[Unless you have been sleeping under a stone for the past four years then you must have heard about Twitter in some way or another. The original idea behind Twitter was to provide a social ...]]></description>
			<content:encoded><![CDATA[<p>Unless you have been sleeping under a stone for the past four years then you must have heard about <a href="http://www.twitter.com/" target="_blank">Twitter</a> in some way or another. The original idea behind Twitter was to provide a social network where everyone can tell followers what he or she is up to. The only restriction with Twitter is that each message has to be 140 characters or less.</p>
<p>Most times it makes little sense to implement high security features for services that do not deliver sensitive content. The original concept behind Twitter was to simply deliver short text messages with little value and at first glance, a Twitter account does not seem to have much value. Twitter accounts are free and the only information that you send out using Twitter is supposed to be small talk (eg. &#8220;Made lemon vanilla cupcakes with..&#8221;).</p>
<p>However it didn&#8217;t take too long for politicians, organizations and consultants to start using it in their marketing strategies or as a way to stay in touch with a large number of people. Whenever a well known media personality joined Twitter (such as Oprah), a large number of fans would follow. As people and organizations started relying on the service more and more, Twitter&#8217;s value increased, while the level of security did not change much. During the US presidential elections, politicians used Twitter as a way to quickly update the public about the latest news. Some people might also exchange information that is sensitive in nature by making use of the private message feature. There are also payment methods that rely on Twitter such as Twitpay and Tipjoy. Twitter was never meant to be used as a payment service, yet people started creating ways to do just about that.</p>
<p>When security is given little importance from the start, web applications have a tendency to have vulnerabilities. In the recent months, Twitter has taken quite a beating when it comes to security. The service has been host to worm attacks, spammer and malware content. What sorts of vulnerabilities were exploited.</p>
<p>Earlier this month, a large number of Twitter accounts started linking to a particular website (StalkerDaily). The reason? A worm was making use of a <a href="http://www.acunetix.com/websitesecurity/xss.htm" target="_self">cross site scripting (XSS)</a> vulnerability in Twitter. The vulnerability was in the account settings page, where victim browsers could be forced to update their profile URL to include javascript code within their page. This javascript code would then do its job as a worm and attempt to infect new Twitter users who visit the infected profile. The vulnerability appeared to be quite a standard XSS security flaw. Even when Twitter said that they initially fixed the flaw, new rounds of a modified worm were infecting Twitter users.</p>
<p>XSS worms were not the only problem that Twitter faced. Some accounts on Twitter have more value than others, such as Barak Obama&#8217;s or Britney Spear&#8217;s twitter account. When these high profile accounts were compromised, the attackers could reach thousands and millions of followers and send them &#8216;funny&#8217; messages as well as link to malicious code. These high profile accounts were compromised due to a weak password used by Twitter&#8217;s own support.</p>
<p>Then there are attacks that many other popular services are vulnerable to. Phishers have been known to target Twitter accounts where people receive direct messages on twitter linking to web pages that appear to be a <a href="http://blog.twitter.com/2009/01/gone-phishing.html" target="_blank">Twitter login screen</a>. When it comes to encryption, Twitter still does not enforce encryption by default. Even if one chooses to use HTTPS instead of HTTP, Twitter is still vulnerable to Surf Jacking and similar attacks that can downgrade an HTTPS session to HTTP and allow attackers to hijack Twitter accounts. Finally, spammers have acknowledged the value of Twitter and started using it as another platform to conduct their unsolicited &#8220;business&#8221;.</p>
<p>One lesson that we should have learnt by now is that for services, such as Twitter, that have potential for growth, security becomes an issue sooner or later. If it is not taken seriously from the start, then it will be much more expensive and generally harder to implement security once the service has taken off. In the case of the XSS worm, the vulnerability appears to be a classic XSS. Such vulnerabilities could be easily found through both automated testing and manual approaches. It would be a mistake to assume that such a web service only needs to be tested once. Websites, especially social networks are dynamic, alive and constantly changing. Any code or feature updates can introduce new security flaws and therefore periodic security reviews are required if such a service is to take security seriously.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F&amp;title=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F&amp;title=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security&amp;bodytext=Unless%20you%20have%20been%20sleeping%20under%20a%20stone%20for%20the%20past%20four%20years%20then%20you%20must%20have%20heard%20about%20Twitter%20in%20some%20way%20or%20another.%20The%20original%20idea%20behind%20Twitter%20was%20to%20provide%20a%20social%20network%20where%20everyone%20can%20tell%20followers%20what%20he%20or%20she%20is%20up" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F&amp;title=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security&amp;notes=Unless%20you%20have%20been%20sleeping%20under%20a%20stone%20for%20the%20past%20four%20years%20then%20you%20must%20have%20heard%20about%20Twitter%20in%20some%20way%20or%20another.%20The%20original%20idea%20behind%20Twitter%20was%20to%20provide%20a%20social%20network%20where%20everyone%20can%20tell%20followers%20what%20he%20or%20she%20is%20up" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F&amp;title=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=Unless%20you%20have%20been%20sleeping%20under%20a%20stone%20for%20the%20past%20four%20years%20then%20you%20must%20have%20heard%20about%20Twitter%20in%20some%20way%20or%20another.%20The%20original%20idea%20behind%20Twitter%20was%20to%20provide%20a%20social%20network%20where%20everyone%20can%20tell%20followers%20what%20he%20or%20she%20is%20up" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F&amp;title=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F&amp;title=Learning%20from%20other%27s%20mistakes%3A%20Twitter%20Security&amp;annotation=Unless%20you%20have%20been%20sleeping%20under%20a%20stone%20for%20the%20past%20four%20years%20then%20you%20must%20have%20heard%20about%20Twitter%20in%20some%20way%20or%20another.%20The%20original%20idea%20behind%20Twitter%20was%20to%20provide%20a%20social%20network%20where%20everyone%20can%20tell%20followers%20what%20he%20or%20she%20is%20up" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Flearning-from-other%25e2%2580%2599s-mistakes-twitter-security%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/learning-from-other%e2%80%99s-mistakes-twitter-security/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenX 2.6.4 vulnerabilities were identified with Acusensor</title>
		<link>http://www.acunetix.com/blog/docs/openx-264-vulnerabilities-were-identified-with-acusensor/</link>
		<comments>http://www.acunetix.com/blog/docs/openx-264-vulnerabilities-were-identified-with-acusensor/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 10:34:37 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[docs & faq]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[AcuSensor]]></category>
		<category><![CDATA[blind sql]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[openx]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[sqli]]></category>
		<category><![CDATA[vulnerable]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=520</guid>
		<description><![CDATA[If you are making use of OpenX, the following update fixes a number of security flaws that were identified when we made use of Acunetix WVS with the Acusensor technology enabled. Released an advisory detailing ...]]></description>
			<content:encoded><![CDATA[<p>If you are making use of OpenX, the<a href="http://www.openx.org/ad-server/download/" target="_blank"> following update fixes </a>a number of security flaws that were identified when we made use of <a href="http://www.acunetix.com/vulnerability-scanner">Acunetix WVS</a> with the <a href="http://www.acunetix.com/websitesecurity/rightwvs.htm">Acusensor technology</a> enabled. Released an advisory detailing these vulnerabilities <a href="http://resources.enablesecurity.com/advisories/openx-2.6.4-multiple.txt" target="_blank">here</a>. The SQL injection vulnerabilities abuse an INSERT statement and therefore an attacker, or normal web application scanner will not find such a vulnerability so easily.</p>
<p><strong>Why not?</strong></p>
<p>Unlike <a href="http://www.acunetix.com/websitesecurity/sql-injection.htm">SQL injection</a> of SELECT statements, when exploiting INSERT statements an attacker is not given any sort of feedback. With a SELECT statement an attacker might receive back errors from the SQL server or, in the case of a blind SQL injection, might change the logic of the result. The Wikipedia page about <a href="http://en.wikipedia.org/wiki/SQL_injection#Conditional_Responses" target="_blank">SQLi conditional responses </a>explains this idea &#8211; an attacker knows that 1=1 will return a match, while 1=2 will not. This allows attackers and automated tools to confirm a blind SQL injection when the response page is as expected.</p>
<p>However these methods do not work with SQL injection in INSERT statements, since they do not usually change the way that the page is handled. Acusensor bypasses these limitations by <em>hooking</em> the vulnerable PHP script and identifying SQL injection when it occurs. Information from Acusensor is sent back to the Acunetix WVS, thus providing a full trace of where the vulnerability is, at which line and what the SQL statement looks like.</p>
<p>Watch the demonstration to see for yourself how Acunetix WVS made finding these flaws easy.</p>
<p><object width="480" height="295" data="http://www.youtube.com/v/kiNeiMS2Iu0&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/kiNeiMS2Iu0&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
<p>Click <a href="http://www.youtube.com/watch?v=kiNeiMS2Iu0&amp;hl&amp;fmt=22" target="_blank">here</a> for high quality version</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F&amp;title=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F&amp;title=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor&amp;bodytext=If%20you%20are%20making%20use%20of%20OpenX%2C%20the%20following%20update%20fixes%20a%20number%20of%20security%20flaws%20that%20were%20identified%20when%20we%20made%20use%20of%20Acunetix%20WVS%20with%20the%20Acusensor%20technology%20enabled.%20Released%20an%20advisory%20detailing%20these%20vulnerabilities%20here.%20The%20SQL%20inje" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F&amp;title=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor&amp;notes=If%20you%20are%20making%20use%20of%20OpenX%2C%20the%20following%20update%20fixes%20a%20number%20of%20security%20flaws%20that%20were%20identified%20when%20we%20made%20use%20of%20Acunetix%20WVS%20with%20the%20Acusensor%20technology%20enabled.%20Released%20an%20advisory%20detailing%20these%20vulnerabilities%20here.%20The%20SQL%20inje" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F&amp;title=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=If%20you%20are%20making%20use%20of%20OpenX%2C%20the%20following%20update%20fixes%20a%20number%20of%20security%20flaws%20that%20were%20identified%20when%20we%20made%20use%20of%20Acunetix%20WVS%20with%20the%20Acusensor%20technology%20enabled.%20Released%20an%20advisory%20detailing%20these%20vulnerabilities%20here.%20The%20SQL%20inje" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F&amp;title=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F&amp;title=OpenX%202.6.4%20vulnerabilities%20were%20identified%20with%20Acusensor&amp;annotation=If%20you%20are%20making%20use%20of%20OpenX%2C%20the%20following%20update%20fixes%20a%20number%20of%20security%20flaws%20that%20were%20identified%20when%20we%20made%20use%20of%20Acunetix%20WVS%20with%20the%20Acusensor%20technology%20enabled.%20Released%20an%20advisory%20detailing%20these%20vulnerabilities%20here.%20The%20SQL%20inje" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fopenx-264-vulnerabilities-were-identified-with-acusensor%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/docs/openx-264-vulnerabilities-were-identified-with-acusensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When Google claims that &#8220;This site may harm your computer&#8221;</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/when-google-claims-that-this-site-may-harm-your-computer/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/when-google-claims-that-this-site-may-harm-your-computer/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 12:57:14 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[hacked ftp]]></category>
		<category><![CDATA[hacked site]]></category>
		<category><![CDATA[harm computer]]></category>
		<category><![CDATA[vulnerable site]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=540</guid>
		<description><![CDATA[This warning does not refer to this particular site (Acunetix.com) but to quite a few websites out there. This is a notice that will show up when a Google search lists websites that are flagged ...]]></description>
			<content:encoded><![CDATA[<p>This warning does not refer to this particular site (<a href="http://www.acunetix.com">Acunetix.com</a>) but to quite a few websites out there. This is a notice that will show up when a Google search lists websites that are flagged as dangerous. Google&#8217;s search engine works together with StopBadware.org to prevent website visitors from visiting websites that may attempt to install malware on their computers.</p>
<p>This is all well and good, but what about the other side of the equation i.e. the website? By making this service available for everyone, Google has made it more of an incentive for website owners to make sure that their websites are not serving harmful or malicious software. <em>Legitimate</em> websites stop receiving traffic from Google searches when their website is added to the blacklist. While browsing the Linkedin Security Answers page this morning, I came across the question: &#8220;<a href="http://www.linkedin.com/answers/technology/information-technology/information-security/TCH_ITS_ISC/445963-13546137" target="_blank">What is the solution to overcome security(Hacking/Virus attacks) to the start-up job portal?</a>&#8220;. It appears that the question was posted by someone who runs a job portal website that was linking to a malware site. When Google started blocking visitors to his website, the website owner became concerned about the security issue that his site might be vulnerable to.</p>
<p><img class="aligncenter size-full wp-image-549" title="infectedsite1" src="http://www.acunetix.com/blog/wp-content/uploads/2009/03/infectedsite1.jpg" alt="infectedsite1" width="503" height="98" /></p>
<p><strong>On which criteria does Google block such sites?</strong></p>
<p>Many times the website being blocked does not host the malware itself, but rather redirects visitors to another website that tries to install malicious software. Such sites usually hosting code that exploit security vulnerabilities in web browsers and client software (such as Adobe Acrobat Reader). The victim website (the one being blocked by Google) is often running web applications that are vulnerable to common security flaws. Examples of such flaws that are often exploited by malicious hackers include <a href="http://www.acunetix.com/websitesecurity/sql-injection.htm">SQL injection</a> and Remote File Inclusion. By making use of these vulnerabilities, attackers are able to inject their own HTML code such as IFRAMES pointing to the malicious website, or insert Javascript code which essentially does the same thing.</p>
<p>The below is an example of how the HTML source of one particular hacked website looks like:</p>
<p><img class="aligncenter size-full wp-image-550" title="jscode" src="http://www.acunetix.com/blog/wp-content/uploads/2009/03/jscode.jpg" alt="jscode" width="254" height="248" /></p>
<p><strong>How to get off the blacklist</strong></p>
<p>The <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=45432" target="_blank">FAQ at Google&#8217;s webmaster/site owner help</a> explains how to making sure that your site is removed from their blacklist. The following is a summary of what needs to be done:</p>
<ol>
<li>Fix the problem (which is what we&#8217;re interested in, therefore the next section)</li>
<li>Request a malware review: this involves logging into Google&#8217;s webmaster tools, selecting your victim site and asking for a review</li>
</ol>
<p><strong>Fix the problem</strong></p>
<p>This tends to vary depending on the case, but many times attackers (hackers) are known to insert HTML in the SQL database, within the HTML files themselves and also leave backdoors (eg. rogue PHP scripts) to be able to gain access to the server again. Here are some suggestions to identify and fix the security holes:</p>
<ul>
<li>Remove public access for the web pages serving malware to prevent your visitors&#8217; computers from become infected</li>
<li>Backup and analyze any log files available to identify the entry point</li>
<li>If the web applications installed are publicly available (freeware / open source) or commercial, make sure that there are no known vulnerabilities for the installed version</li>
<li>Scanning your custom web applications (or even public ones) with a vulnerability scanner is always a good idea &#8211; <a href="http://www.acunetix.com/vulnerability-scanner/">Acunetix WVS</a> with <a href="http://www.acunetix.com/websitesecurity/rightwvs.htm" target="_blank">Acusensor</a> can even help you identify backdoors inserted by the <em>hackers</em></li>
<li>Sometimes websites are not hacked through web application flaws, but through known credentials, eg. FTP passwords &#8211; change all access passwords</li>
<li>There are times when the service provider itself is compromised; this is especially common in shared hosting environment where one server may be hosting hundreds of (possibly vulnerable) sites; contacting your provider is a good first step</li>
<li>Once the entry point is identified, clean up all traces of the malicious content that was added to your site; this involves editing the database, html files; <a href="http://www.owasp.org/index.php/Category:OWASP_Scrubbr" target="_blank">Scrubbr</a> is one freely available OWASP tool that may help here</li>
<li>Finally get help from security professionals in fixing the problem if need be</li>
</ul>
<p>Hope that this post proves to be useful for anyone running a website that becomes victim to online attacks, and an eye opener for the rest!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F&amp;title=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F&amp;title=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22&amp;bodytext=This%20warning%20does%20not%20refer%20to%20this%20particular%20site%20%28Acunetix.com%29%20but%20to%20quite%20a%20few%20websites%20out%20there.%20This%20is%20a%20notice%20that%20will%20show%20up%20when%20a%20Google%20search%20lists%20websites%20that%20are%20flagged%20as%20dangerous.%20Google%27s%20search%20engine%20works%20together%20with" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F&amp;title=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22&amp;notes=This%20warning%20does%20not%20refer%20to%20this%20particular%20site%20%28Acunetix.com%29%20but%20to%20quite%20a%20few%20websites%20out%20there.%20This%20is%20a%20notice%20that%20will%20show%20up%20when%20a%20Google%20search%20lists%20websites%20that%20are%20flagged%20as%20dangerous.%20Google%27s%20search%20engine%20works%20together%20with" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F&amp;title=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=This%20warning%20does%20not%20refer%20to%20this%20particular%20site%20%28Acunetix.com%29%20but%20to%20quite%20a%20few%20websites%20out%20there.%20This%20is%20a%20notice%20that%20will%20show%20up%20when%20a%20Google%20search%20lists%20websites%20that%20are%20flagged%20as%20dangerous.%20Google%27s%20search%20engine%20works%20together%20with" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F&amp;title=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F&amp;title=When%20Google%20claims%20that%20%22This%20site%20may%20harm%20your%20computer%22&amp;annotation=This%20warning%20does%20not%20refer%20to%20this%20particular%20site%20%28Acunetix.com%29%20but%20to%20quite%20a%20few%20websites%20out%20there.%20This%20is%20a%20notice%20that%20will%20show%20up%20when%20a%20Google%20search%20lists%20websites%20that%20are%20flagged%20as%20dangerous.%20Google%27s%20search%20engine%20works%20together%20with" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhen-google-claims-that-this-site-may-harm-your-computer%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/when-google-claims-that-this-site-may-harm-your-computer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A quick security analysis of Facebook&#8217;s Album Privacy</title>
		<link>http://www.acunetix.com/blog/docs/a-quick-security-analysis-of-facebooks-album-privacy/</link>
		<comments>http://www.acunetix.com/blog/docs/a-quick-security-analysis-of-facebooks-album-privacy/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 14:03:16 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[docs & faq]]></category>
		<category><![CDATA[bruteforce]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook privacy]]></category>
		<category><![CDATA[myspace privacy]]></category>
		<category><![CDATA[predictable id]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[private album]]></category>
		<category><![CDATA[private pictures]]></category>
		<category><![CDATA[secret photos]]></category>
		<category><![CDATA[sensitive photos]]></category>
		<category><![CDATA[social networking]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=494</guid>
		<description><![CDATA[Most social networking sites have privacy options which allow users to share photo albums with selected people or groups. Such features encourage end users to upload possibly compromising photos, for example photos of last night&#8217;s ...]]></description>
			<content:encoded><![CDATA[<p>Most social networking sites have privacy options which allow users to share photo albums with selected people or groups. Such features encourage end users to upload possibly compromising photos, for example photos of last night&#8217;s party. The idea is that it is acceptable to share certain photos with your friends, but not with your future employer. These same privacy features have previously been found to be insufficient and have been bypassed. For example, a year ago MySpace&#8217;s privacy features hit the <a href="http://www.wired.com/politics/security/news/2008/01/myspace_torrent" target="_blank">news</a> when a 17 gigabyte download was available containing thousands of photos obtained from MySpace which were supposed to be private. According to <a href="http://www.wired.com/politics/security/news/2008/01/myspace" target="_blank">this</a> report by Wired.com, these bugs had been abused by &#8220;self-described pedophiles and run-of-the-mill voyeurs&#8221; for quite a while.</p>
<p>So when I saw this blog post titled &#8220;<a href="http://securityninja.co.uk/blog/?p=198" target="_blank">Access any album on any Facebook profile</a>&#8221; on the Security Ninja Blog, I decided to give this a quick look. In the blog post, Dave described how the privacy protection can be broken. He showed how he made use of a tool to launch a bruteforce attack and guessing a secret made up of 5 hexadecimal characters. A similar attack can be demonstrated by making use of  the <a href="http://www.acunetix.com/vulnerability-scanner/penetration-testing.htm">HTTP Fuzzer in Acunetix WVS</a>, and you can watch a<a href="http://www.youtube.com/watch?v=5ZLmRMLo6HI" target="_blank"> demo of this feature</a> being used to attack a similar case of weak authentication.</p>
<p><strong>How does the Facebook attack work?</strong></p>
<p>The album.php script on Facebook requires 3 parameters:</p>
<ol>
<li> &#8220;id&#8221; : this is the user&#8217;s id, which is publicly available and can be guessed by simply searching for that user</li>
<li>&#8220;aid&#8221; : the album&#8217;s id &#8211; which is always -3 when the album is the public profile</li>
<li>&#8220;l&#8221; : this is the secret</li>
</ol>
<p>Therefore the only unknown ID to view the public profile is the &#8220;l&#8221; parameter. I will be referring to this parameter as <em>the secret</em>. While the album id (aid) is always -3 when the target album is a public profile, the album id for other albums is not so predictable. Non-public profile albums tend to have a long numeric id. During my brief research I saw album id&#8217;s which were 3 characters long, and others which were 6 or 7 characters long. So I decided to get a better idea of how the album id is generated. I created a new Facebook account and started adding new albums. The album id&#8217;s that were automatically generated were 2001832, 2001833, 2001834, 2001835, 2001836. Anyone will notice the sequence. Although a Facebook user who is not on the victim&#8217;s friends list cannot see what albums are available, public albums can be accessed if the album URL is known.This is intended behavior and the <a href="http://www.facebook.com/help.php?hq=I+have+set+my+Photos+profile+privacy+to+%22Only+Friends%2C%22+but+other+people+can+see+my+albums.&amp;ref=hq" target="_blank">Facebook Help page</a> has this to say about it:</p>
<blockquote><p>&#8220;Please note that the &#8220;Everyone&#8221; privacy setting allows anyone on Facebook to view the album if they are linked to it.&#8221;</p></blockquote>
<p><strong>I did some more testing of my own&#8230;</strong></p>
<p>So I created another Facebook user and started creating more albums. The id&#8217;s given to these albums were 2007969, 2007970 and so on. A very similar pattern but does not follow the sequence of the previous user. What I did next was to let some time pass and create yet another album. The id skipped a number, so that if the previous ID was 2007970, then the new one was 2007972. This behavior might indicate that Facebook uses time when generating new the album IDs or that some other user was assigned the album id 2007971 if album IDs are unique to the system. This seems to show that the album id (&#8220;aid&#8221; parameter) is easily guessable especially if one knows any particular album ID that is associated with the target user.</p>
<p style="text-align: center;"><img class="size-medium wp-image-497 aligncenter" src="http://www.acunetix.com/blog/wp-content/uploads/2009/03/fb-300x199.jpg" alt="Facebook email feature" width="300" height="199" /></p>
<p>The Security Ninja blog post also mentioned that for an attacker to view all albums of the victim, the attacker would have to bruteforce both the album id and the secret (&#8220;l&#8221; parameter). This sounded too complex and a malicious user using this attack would have to generate tens of thousands of requests just to view an album. However by default, albums are public and one can assume that most users will have at least one public album and only set specific interesting albums as private. This means that by default, album URLs do not require the secret. Therefore what an attacker can do is locate a few public albums for a specific user to get a rough idea of the range of album IDs that are assocaited with the victim. This means that the attacker can limit the bruteforce attack to a much smaller number of album IDs.</p>
<p>I also decided to take a look at the <em>secret</em> (&#8220;l&#8221; parameter) and get an idea of how it is generated. This parameter is normally used when someone shares an album with privacy settings with a non-facebook user by sending the other user an email or an instant message with the link. During the testing I noticed that the secret is <del datetime="2009-03-16T16:03:00+00:00">static</del> unique for each private album. This means that each private album is directly associated with the secret. When the album privacy settings change, the secret remains the same. If this secret is generated based on some public property of the album (for example, the album id and user id), then an attacker may generate a large number of albums and analyze the resulting secrets to find out how they are generated. At this stage I do not know if this is the case, but would be interested in hearing other people&#8217;s input.</p>
<p><strong>My conclusions:</strong></p>
<ol>
<li>Even if the attacker is not within the social network of the victim, the album id is susceptible to bruteforce and the attacker can then view victim&#8217;s public albums</li>
<li>Since album ids follow a certain pattern, an attacker may be able to target a range of album IDs to find out the secret and gain access to these private albums</li>
</ol>
<p>Public albums should be treated as public and the secret is not much of a protection; my suggestion is to avoid uploading photos that might embarass you. Unfortunately, as with many other free services, end users cannot do much to protect themselves other than not sharing compromising content. By their nature, social networking sites tend to be open and the idea is to share information. Therefore it is likely that we will keep seeing similar issues in Facebook and other social networking sites.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F&amp;title=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F&amp;title=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy&amp;bodytext=Most%20social%20networking%20sites%20have%20privacy%20options%20which%20allow%20users%20to%20share%20photo%20albums%20with%20selected%20people%20or%20groups.%20Such%20features%20encourage%20end%20users%20to%20upload%20possibly%20compromising%20photos%2C%20for%20example%20photos%20of%20last%20night%27s%20party.%20The%20idea%20is%20" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F&amp;title=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy&amp;notes=Most%20social%20networking%20sites%20have%20privacy%20options%20which%20allow%20users%20to%20share%20photo%20albums%20with%20selected%20people%20or%20groups.%20Such%20features%20encourage%20end%20users%20to%20upload%20possibly%20compromising%20photos%2C%20for%20example%20photos%20of%20last%20night%27s%20party.%20The%20idea%20is%20" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F&amp;title=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=Most%20social%20networking%20sites%20have%20privacy%20options%20which%20allow%20users%20to%20share%20photo%20albums%20with%20selected%20people%20or%20groups.%20Such%20features%20encourage%20end%20users%20to%20upload%20possibly%20compromising%20photos%2C%20for%20example%20photos%20of%20last%20night%27s%20party.%20The%20idea%20is%20" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F&amp;title=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F&amp;title=A%20quick%20security%20analysis%20of%20Facebook%27s%20Album%20Privacy&amp;annotation=Most%20social%20networking%20sites%20have%20privacy%20options%20which%20allow%20users%20to%20share%20photo%20albums%20with%20selected%20people%20or%20groups.%20Such%20features%20encourage%20end%20users%20to%20upload%20possibly%20compromising%20photos%2C%20for%20example%20photos%20of%20last%20night%27s%20party.%20The%20idea%20is%20" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fdocs%2Fa-quick-security-analysis-of-facebooks-album-privacy%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/docs/a-quick-security-analysis-of-facebooks-album-privacy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How can low privilege bugs lead to a server compromise?</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/how-can-low-privilege-bugs-lead-to-a-server-compromise/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/how-can-low-privilege-bugs-lead-to-a-server-compromise/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 12:56:29 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[business decision]]></category>
		<category><![CDATA[code audit]]></category>
		<category><![CDATA[database security]]></category>
		<category><![CDATA[kaspersky]]></category>
		<category><![CDATA[least privilege]]></category>
		<category><![CDATA[mysql security]]></category>
		<category><![CDATA[php security]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[sql security]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=378</guid>
		<description><![CDATA[To address a large number of security concerns, it is often recommended that web applications make effective use of &#8220;the principle of least privilege&#8220;. The idea is that one should only grant the privileges on ...]]></description>
			<content:encoded><![CDATA[<p>To address a large number of security concerns, it is often recommended that web applications make effective use of &#8220;<a href="http://en.wikipedia.org/wiki/Principle_of_least_privilege" target="_blank">the principle of least privilege</a>&#8220;. The idea is that one should only grant the privileges on the basis that they are needed. In a <a href="http://www.acunetix.com/blog/web-security-articles/sql-injection-sneaks-into-kasperskys-support-website/" target="_blank">previous post</a>, I suggested that Kaspersky&#8217;s database compromise would not have been so bad if they made better use of separation of privileges on their databases. The fact that the same database user apparently had access to so many SQL tables is what caused concerns for <a href="http://technicalinfodotnet.blogspot.com/2009/02/kaspersky-usa-portal-sql-injection.html" target="_blank">some</a> security professionals. Similarly, correct server permissions might be able to prevent a server compromise when an attacker tries to execute custom PHP or Perl scripts through a vulnerable upload script.</p>
<p>However even with these precautions, a skilled attacker may be able to compromise a server through an SQL injection vulnerability. The truth is that most backend software has traditional security flaws such as buffer overflows. <a href="http://www.acunetix.com/blog/web-security-articles/why-upgrade-php-to-528-part-2/">PHP 5.2.8</a> fixed various buffer overflow bugs that could affect scripts on the server to run arbitrary code in memory. Most database servers have previously issued fixes for memory corruption, for example <a href="http://secunia.com/advisories/25301/" target="_blank">in 2007, MySQL</a> issued patches for privilege escalation issues. Oracle and MSSQL had their <a href="http://www.ngssoftware.com/advisories/critical-vulnerability-in-oracle-application-server/" target="_blank">fair</a> <a href="http://www.microsoft.com/technet/security/advisory/961040.mspx" target="_blank">share</a> of similar issues.</p>
<p>This leads us to the conclusion that web application security is a process that involves different people. In the case of a custom application, developers need to make it easy for the administrator to implement the principle of least privilege. They also need to test their code to reduce the chances that attackers will not be able to find security flaws in their code. However security does not stop there. The systems administrators need to keep the backends abreast the latest threats. They would also do well to test their servers with security scanners (such as <a href="http://www.acunetix.com/vulnerability-scanner/" target="_self">Acunetix WVS</a>) to identify system flaws and to confirm that the web applications were carefully audited. Finally, those making business decisions need to make sure that their options do not jeopardize the security efforts of those designing and implementing their systems.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F&amp;title=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F&amp;title=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F&amp;bodytext=To%20address%20a%20large%20number%20of%20security%20concerns%2C%20it%20is%20often%20recommended%20that%20web%20applications%20make%20effective%20use%20of%20%22the%20principle%20of%20least%20privilege%22.%20The%20idea%20is%20that%20one%20should%20only%20grant%20the%20privileges%20on%20the%20basis%20that%20they%20are%20needed.%20In%20a%20prev" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F&amp;title=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F&amp;notes=To%20address%20a%20large%20number%20of%20security%20concerns%2C%20it%20is%20often%20recommended%20that%20web%20applications%20make%20effective%20use%20of%20%22the%20principle%20of%20least%20privilege%22.%20The%20idea%20is%20that%20one%20should%20only%20grant%20the%20privileges%20on%20the%20basis%20that%20they%20are%20needed.%20In%20a%20prev" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F&amp;title=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=To%20address%20a%20large%20number%20of%20security%20concerns%2C%20it%20is%20often%20recommended%20that%20web%20applications%20make%20effective%20use%20of%20%22the%20principle%20of%20least%20privilege%22.%20The%20idea%20is%20that%20one%20should%20only%20grant%20the%20privileges%20on%20the%20basis%20that%20they%20are%20needed.%20In%20a%20prev" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F&amp;title=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F&amp;title=How%20can%20low%20privilege%20bugs%20lead%20to%20a%20server%20compromise%3F&amp;annotation=To%20address%20a%20large%20number%20of%20security%20concerns%2C%20it%20is%20often%20recommended%20that%20web%20applications%20make%20effective%20use%20of%20%22the%20principle%20of%20least%20privilege%22.%20The%20idea%20is%20that%20one%20should%20only%20grant%20the%20privileges%20on%20the%20basis%20that%20they%20are%20needed.%20In%20a%20prev" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-low-privilege-bugs-lead-to-a-server-compromise%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/how-can-low-privilege-bugs-lead-to-a-server-compromise/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL injection sneaks into Kaspersky&#8217;s support website</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/sql-injection-sneaks-into-kasperskys-support-website/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/sql-injection-sneaks-into-kasperskys-support-website/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 10:44:54 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[access control]]></category>
		<category><![CDATA[acunetix warez]]></category>
		<category><![CDATA[free acunetix]]></category>
		<category><![CDATA[kaspersky]]></category>
		<category><![CDATA[periodic scan]]></category>
		<category><![CDATA[pirated acunetix]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[subdomain]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=358</guid>
		<description><![CDATA[The recent compromise of Kaspersky's support database left the company with a bit of explaining to do. The hacker published a blog post on hackersblog detailing stunts with Kaspersky's USA support website. Kaspersky also published their own account based on their log files and the hacker's (nicknamed unu) blog post. The following is a summary of what happened and how such attacks can be prevented.]]></description>
			<content:encoded><![CDATA[<p>The recent compromise of Kaspersky&#8217;s (the <a href="http://www.kaspersky.com" target="_blank">Antivirus vendor</a>) support database left the company with a bit of explaining to do. The <a href="http://hackersblog.org/2009/02/07/usakasperskycom-hacked-full-database-acces-sql-injection/" target="_blank"><em>hacker</em> published a blog post</a> on hackersblog detailing stunts with Kaspersky&#8217;s USA support website. Kaspersky also <a href="http://www.viruslist.com/en/weblog?weblogid=208187633" target="_blank">published their own account</a> based on their log files and the hacker&#8217;s (nicknamed unu) blog post.</p>
<p><strong>Summary of what happened</strong></p>
<p>The following is a summary of what appears to have happened:</p>
<ol>
<li>Unu scanned Kaspersky&#8217;s website using an automated tool, possibly Acunetix WVS (take a look at the <a href="http://img150.imageshack.us/img150/1007/versionuserdatabaseaa4.jpg" target="_blank">screenshots</a>)</li>
<li>The scanner identified SQL injection vulnerabilities on usa.kaspersky.com</li>
<li>The hacker manually verified the SQL injection vulnerability by injecting SQL statements that reveal the version of the database server (MySQL)</li>
<li>The vulnerable PHP code appeared to be using a high privileged SQL account and Unu then proceeded to list all tables that he/she had access to</li>
</ol>
<p><img class="size-thumbnail wp-image-362 alignright" src="http://www.acunetix.com/blog/wp-content/uploads/2009/02/versionuserdatabaseaa4-150x150.jpg" alt="versionuserdatabaseaa4" width="150" height="150" />So how bad was this security incident for Kaspersky? For one thing, it appears to have affected the organization&#8217;s reputation. Security companies tend to loose credibility when they too become victims of the sort of threats that they are trying to prevent. Luckily for Kaspersky, it seems that the <em>hacker</em> had good enough intentions and was only interested in fame. The screenshots indicated that by abusing this vulnerability, a real criminal could have stolen customer details, product activation codes, lists of bugs. Gunter Ollmann of IBM&#8217;s Internet Security Systems also <a href="http://technicalinfodotnet.blogspot.com/2009/02/kaspersky-usa-portal-sql-injection.html" target="_blank">mentioned</a> that the attacker could have updated the database to direct the customers to malicious software rather than Kaspersky&#8217;s security software.</p>
<p><strong>Was Acunetix WVS Free edition used?</strong></p>
<p>There were claims that Acunetix the free edition was used as part of the attack. It is more likely that a pirated version of the full scanner was used since the free version does not support scanning for SQL injection vulnerabilities.</p>
<p><strong>What could have prevented this attack?</strong></p>
<p>It is always important to learn from such security incidents. I think the following would address similar issues with many websites that are publicly exposed to SQL injection attacks:</p>
<ul>
<li>When performing vulnerability assessment, <strong>do not stop at the main website</strong> (eg. www.company.com) but also test subdomains; usa.kaspersky.com was not the main site, yet it had access to sensitive or important information</li>
<li>Kaspersky&#8217;s incident could have been greatly mitigated if the SQL account did not have access to so many tables; when developing web applications design them with <strong>proper access control</strong> in mind</li>
<li>Many websites are under constant development and improvement and therefore it is useless to only check its security once; <strong>it makes sense to  scan web applications periodically </strong>to identify any flaws that are introduced with the constant application changes</li>
</ul>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F&amp;title=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F&amp;title=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website&amp;bodytext=The%20recent%20compromise%20of%20Kaspersky%27s%20support%20database%20left%20the%20company%20with%20a%20bit%20of%20explaining%20to%20do.%20The%20hacker%20published%20a%20blog%20post%20on%20hackersblog%20detailing%20stunts%20with%20Kaspersky%27s%20USA%20support%20website.%20Kaspersky%20also%20published%20their%20own%20account%20based%20on%20their%20log%20files%20and%20the%20hacker%27s%20%28nicknamed%20unu%29%20blog%20post.%20The%20following%20is%20a%20summary%20of%20what%20happened%20and%20how%20such%20attacks%20can%20be%20prevented." title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F&amp;title=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website&amp;notes=The%20recent%20compromise%20of%20Kaspersky%27s%20support%20database%20left%20the%20company%20with%20a%20bit%20of%20explaining%20to%20do.%20The%20hacker%20published%20a%20blog%20post%20on%20hackersblog%20detailing%20stunts%20with%20Kaspersky%27s%20USA%20support%20website.%20Kaspersky%20also%20published%20their%20own%20account%20based%20on%20their%20log%20files%20and%20the%20hacker%27s%20%28nicknamed%20unu%29%20blog%20post.%20The%20following%20is%20a%20summary%20of%20what%20happened%20and%20how%20such%20attacks%20can%20be%20prevented." title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F&amp;title=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=The%20recent%20compromise%20of%20Kaspersky%27s%20support%20database%20left%20the%20company%20with%20a%20bit%20of%20explaining%20to%20do.%20The%20hacker%20published%20a%20blog%20post%20on%20hackersblog%20detailing%20stunts%20with%20Kaspersky%27s%20USA%20support%20website.%20Kaspersky%20also%20published%20their%20own%20account%20based%20on%20their%20log%20files%20and%20the%20hacker%27s%20%28nicknamed%20unu%29%20blog%20post.%20The%20following%20is%20a%20summary%20of%20what%20happened%20and%20how%20such%20attacks%20can%20be%20prevented." title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F&amp;title=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F&amp;title=SQL%20injection%20sneaks%20into%20Kaspersky%27s%20support%20website&amp;annotation=The%20recent%20compromise%20of%20Kaspersky%27s%20support%20database%20left%20the%20company%20with%20a%20bit%20of%20explaining%20to%20do.%20The%20hacker%20published%20a%20blog%20post%20on%20hackersblog%20detailing%20stunts%20with%20Kaspersky%27s%20USA%20support%20website.%20Kaspersky%20also%20published%20their%20own%20account%20based%20on%20their%20log%20files%20and%20the%20hacker%27s%20%28nicknamed%20unu%29%20blog%20post.%20The%20following%20is%20a%20summary%20of%20what%20happened%20and%20how%20such%20attacks%20can%20be%20prevented." title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fsql-injection-sneaks-into-kasperskys-support-website%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/sql-injection-sneaks-into-kasperskys-support-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Embedded devices can be hacked through the web interface</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/embedded-devices-can-be-hacked-through-the-web-interface/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/embedded-devices-can-be-hacked-through-the-web-interface/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 10:50:03 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[cisco ios security]]></category>
		<category><![CDATA[cisco security]]></category>
		<category><![CDATA[csrf]]></category>
		<category><![CDATA[embedded security]]></category>
		<category><![CDATA[procheckup]]></category>
		<category><![CDATA[snmp security]]></category>
		<category><![CDATA[snmp write]]></category>
		<category><![CDATA[voip security]]></category>
		<category><![CDATA[xsrf]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=325</guid>
		<description><![CDATA[Anyone who has tested even a small number of web configuration interfaces on embedded devices, such as managed routers, VoIP gateways and wireless routers, knows that these devices are notorious for web application vulnerabilities. It ...]]></description>
			<content:encoded><![CDATA[<p>Anyone who has tested even a small number of web configuration interfaces on embedded devices, such as managed routers, VoIP gateways and wireless routers, knows that these devices are notorious for web application vulnerabilities. It is not uncommon for these devices to be vulnerable to Cross Site Scripting and similar attacks. Recently <a href="http://www.cisco.com/warp/public/707/cisco-sr-20090114-http.shtml" target="_blank">Cisco published a fix </a>for an XSS vulnerability which affects the Cisco IOS HTTP server. The following would be the attack scenario:</p>
<ul>
<li>A network operator (the victim) who is logged (or has saved his credentials) into the Cisco IOS web interface visits a malicious site</li>
<li>The malicious site redirects the victim to the &#8220;ping&#8221; utility web page on the Cisco box which ends up displaying HTML code set by the attacker</li>
<li>From that point on, the attacker has access to the victim&#8217;s authenticated session and can do a number of things, such as resetting the administrator&#8217;s password</li>
</ul>
<p>Additionally, Cisco IOS also appears to be vulnerable to a yet <strong>unpatched</strong> Cross Site Request Forgery vulnerability. By forcing a victim network operator to visit a page such as &#8216;http://cisco-box/level/15/configure/-/enable/secret/a-new-password&#8217;, the password is reset to &#8220;a-new-password&#8221;. This is not new information and has been previously mentioned in <a href="http://www.procheckup.com/vulnerability_manager/vulnerabilities/pr08-19" target="_blank">the advisory</a> by ProCheckUp recently and <a href="http://www.securityfocus.com/archive/1/486166/100/0/threaded" target="_blank">elsewhere</a> back in January 2008.</p>
<p>HTTP is not the only way to inject HTML code into a web interface (leading to XSS). ProCheckUp had previously released a paper which describes <a href="http://www.procheckup.com/vulnerability_manager/vulnerabilities/paper-04" target="_blank">exploitation of SNMP write access</a> to change values that are displayed in the Cisco IOS Web configuration. By inserting HTML code as the name of the Cisco device, the Web Interface turns into a backdoor that the attacker can control. During my tests I was able to find embedded VoIP devices that have similar vulnerabilities when they display the user input such as the &#8220;caller-id&#8221; in the logs.</p>
<p>It seems that these web configuration interfaces have a long way to go in terms of Web Application Security and the repercussions can be decremental in the case of a targeted or drive-by attack on your organization. My recommendations are:</p>
<ul>
<li>Disable the HTTP interface if possible; some organizations have a policy to disable the Cisco IOS Web interface</li>
<li>Limit the number of people that have access to the HTTP interfaces of embedded devices; this limits the number of people that may be victim to a Cross Site Scripting or Cross Site Request Forgery attack</li>
<li>Make use of separate web browser to configure your embedded devices; i.e. use Internet  explorer for your embedded device and Firefox for your normal browsing</li>
</ul>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F&amp;title=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F&amp;title=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface&amp;bodytext=Anyone%20who%20has%20tested%20even%20a%20small%20number%20of%20web%20configuration%20interfaces%20on%20embedded%20devices%2C%20such%20as%20managed%20routers%2C%20VoIP%20gateways%20and%20wireless%20routers%2C%20knows%20that%20these%20devices%20are%20notorious%20for%20web%20application%20vulnerabilities.%20It%20is%20not%20uncommon" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F&amp;title=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface&amp;notes=Anyone%20who%20has%20tested%20even%20a%20small%20number%20of%20web%20configuration%20interfaces%20on%20embedded%20devices%2C%20such%20as%20managed%20routers%2C%20VoIP%20gateways%20and%20wireless%20routers%2C%20knows%20that%20these%20devices%20are%20notorious%20for%20web%20application%20vulnerabilities.%20It%20is%20not%20uncommon" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F&amp;title=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=Anyone%20who%20has%20tested%20even%20a%20small%20number%20of%20web%20configuration%20interfaces%20on%20embedded%20devices%2C%20such%20as%20managed%20routers%2C%20VoIP%20gateways%20and%20wireless%20routers%2C%20knows%20that%20these%20devices%20are%20notorious%20for%20web%20application%20vulnerabilities.%20It%20is%20not%20uncommon" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F&amp;title=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F&amp;title=Embedded%20devices%20can%20be%20hacked%20through%20the%20web%20interface&amp;annotation=Anyone%20who%20has%20tested%20even%20a%20small%20number%20of%20web%20configuration%20interfaces%20on%20embedded%20devices%2C%20such%20as%20managed%20routers%2C%20VoIP%20gateways%20and%20wireless%20routers%2C%20knows%20that%20these%20devices%20are%20notorious%20for%20web%20application%20vulnerabilities.%20It%20is%20not%20uncommon" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fembedded-devices-can-be-hacked-through-the-web-interface%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/embedded-devices-can-be-hacked-through-the-web-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image upload forms used to hijack websites</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/image-upload-forms-used-to-hijack-websites/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/image-upload-forms-used-to-hijack-websites/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 11:46:34 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[asp backdoor]]></category>
		<category><![CDATA[backdoor]]></category>
		<category><![CDATA[cdx file]]></category>
		<category><![CDATA[china hacker]]></category>
		<category><![CDATA[chinese hackers]]></category>
		<category><![CDATA[gifar]]></category>
		<category><![CDATA[ie 0day]]></category>
		<category><![CDATA[infected website]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[spyware]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[trojan]]></category>
		<category><![CDATA[upload security]]></category>
		<category><![CDATA[upload vulnerability]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=250</guid>
		<description><![CDATA[In the past days I came across a stimulating blog post titled &#8220;Dissecting a Multistage Web Attack that uses the recent IE7 0day&#8221;. The authors described how a vulnerable web application was then able to ...]]></description>
			<content:encoded><![CDATA[<p>In the past days I came across a stimulating blog post titled <a href="http://blog.attackresearch.com/?q=node/5" target="_blank">&#8220;Dissecting a Multistage Web Attack that uses the recent IE7 0day&#8221;</a>. The authors described how a vulnerable web application was then able to infect web browsers visiting the infected website. The attackers, who used an IP that originates from China, made a lot of attempts (presumably using automated tools) to inject SQL statements (SQL Injection) through the web application. The attacker&#8217;s favorite method of penetration appears to be SQL injection probably since it is so prevalent. However this particular web application was not vulnerable to SQL injection and therefore they had to move on to a different attack vector.</p>
<p>The attackers looked around for vulnerable ASP pages and identified a library that allows users to upload images. Attackers are known to exploit upload forms by uploading CGI scripts such as EXE, PHP or ASP files to the web server. When these files are accessed through the web server, the web server tries to interpret or execute these files as legitimate CGI or ASP. This means that code is executed on the server side and this code can be anything from a normal web application to a backdoor allowing remote access to the server. In this case, this library had taken precautions to only allow certain file types to be uploaded. The image library made sure to only allow files with certain file extensions (.gif, .jpeg etc) and possibly checked the contents of the files to make sure that it is indeed an image.</p>
<p><strong>So how were the attackers able to execute remote code on the victim web server? </strong></p>
<p>The attackers made use of a filename with the extension .CDX. Such files can refer to various file types, one of which is a graphics file type used by Corel Draw. Additionally, by default IIS interprets CDX files as ASP scripts. This image library allowed users to upload files with this extension and store it on the web server. However the image library could also check if the contents of the file contain an image or not. To bypass that check, the attackers included the contents of a real GIF file and embedded some VBScript code. The image library would detect the GIF file and allow the upload to take place, while the IIS server would interpret the VBScript code just similar to any other ASP script on the server. This combination keeps everyone (both IIS and the image library) happy, and therefore the attacker gets execute his or her custom VBScript code on the IIS server just as if he had uploaded an ASP file!</p>
<p>Once the CDX file was uploaded, the attacker then started sending it commands. In this particular case, the attacker uploaded a variation of a well known ASP backdoor that is typically used by Chinese speakers. From this point on the web pages were modified to include code that exploited a security hole in Internet Explorer. This meant that visitors who went to the infected website could end up running arbitrary code on their desktop computers. Such code usually installs backdoors and spyware on the victim machines. To keep tabs on this story and how it develops visit the <a href="http://blog.attackresearch.com/?q=forum/2" target="_blank">Attack research blog</a> which should be posting a juicy update soon.</p>
<p><strong>How does one prevent similar attacks?</strong></p>
<p>Since filtering by file extension was bypassed, it might appear that an appropriate fix would be as simple as making sure that CDX files are not successfully uploaded to the server. However this fix is not hacker proof and it alone does not provide a complete solution. Such a solution will only be sufficient until attackers find another way of bypassing this security mechanism.</p>
<p>To solve this issue we should be looking at the source of the problem. Allowing files in the &#8220;images&#8221; or &#8220;uploads&#8221; directory to be executed by the server is probably the main culprit. Setting the correct permissions on the web server to only read such files would be a good solution to this issue. Additionally, if anonymous uploads are not needed, then it is a good idea to avoid providing that functionality in the first place.</p>
<p><em>Note that this solution does not do much to <a href="http://www.infoworld.com/article/08/08/01/A_photo_that_can_steal_your_online_credentials_1.html" target="_blank">prevent the GIFAR</a> attacks that target the client-side rather than the server-side. But that will be for another post.</em></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Image%20upload%20forms%20used%20to%20hijack%20websites%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F&amp;title=Image%20upload%20forms%20used%20to%20hijack%20websites" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F&amp;title=Image%20upload%20forms%20used%20to%20hijack%20websites&amp;bodytext=In%20the%20past%20days%20I%20came%20across%20a%20stimulating%20blog%20post%20titled%20%22Dissecting%20a%20Multistage%20Web%20Attack%20that%20uses%20the%20recent%20IE7%200day%22.%20The%20authors%20described%20how%20a%20vulnerable%20web%20application%20was%20then%20able%20to%20infect%20web%20browsers%20visiting%20the%20infected%20websit" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F&amp;title=Image%20upload%20forms%20used%20to%20hijack%20websites&amp;notes=In%20the%20past%20days%20I%20came%20across%20a%20stimulating%20blog%20post%20titled%20%22Dissecting%20a%20Multistage%20Web%20Attack%20that%20uses%20the%20recent%20IE7%200day%22.%20The%20authors%20described%20how%20a%20vulnerable%20web%20application%20was%20then%20able%20to%20infect%20web%20browsers%20visiting%20the%20infected%20websit" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F&amp;title=Image%20upload%20forms%20used%20to%20hijack%20websites&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=In%20the%20past%20days%20I%20came%20across%20a%20stimulating%20blog%20post%20titled%20%22Dissecting%20a%20Multistage%20Web%20Attack%20that%20uses%20the%20recent%20IE7%200day%22.%20The%20authors%20described%20how%20a%20vulnerable%20web%20application%20was%20then%20able%20to%20infect%20web%20browsers%20visiting%20the%20infected%20websit" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F&amp;title=Image%20upload%20forms%20used%20to%20hijack%20websites" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F&amp;title=Image%20upload%20forms%20used%20to%20hijack%20websites&amp;annotation=In%20the%20past%20days%20I%20came%20across%20a%20stimulating%20blog%20post%20titled%20%22Dissecting%20a%20Multistage%20Web%20Attack%20that%20uses%20the%20recent%20IE7%200day%22.%20The%20authors%20described%20how%20a%20vulnerable%20web%20application%20was%20then%20able%20to%20infect%20web%20browsers%20visiting%20the%20infected%20websit" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fimage-upload-forms-used-to-hijack-websites%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/image-upload-forms-used-to-hijack-websites/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How can any web page log you off all other websites?</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/how-can-any-web-page-log-you-off-all-other-websites/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/how-can-any-web-page-log-you-off-all-other-websites/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 15:16:24 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[csrf]]></category>
		<category><![CDATA[full disclosure]]></category>
		<category><![CDATA[logoff]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[session destroyer]]></category>
		<category><![CDATA[xsrf]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=237</guid>
		<description><![CDATA[A recent post on &#8220;Full-Disclosure&#8221; mailing list referenced a web page called &#8220;Session Destroyer&#8221;. This web page is a demonstration by Kristian Erik Hermansen that promises to make logging off various popular websites very easy.
How ...]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://seclists.org/fulldisclosure/2008/Dec/0568.html" target="_blank">recent post</a> on &#8220;Full-Disclosure&#8221; mailing list referenced a web page called &#8220;Session Destroyer&#8221;. This web page is a demonstration by <span>Kristian Erik Hermansen that </span>promises to make logging off various popular websites very easy.</p>
<p>How does it work? This static html page simply contains IMG tags that link to the logout url for various websites including Facebook, Gmail, Ebay, Youtube and Yahoo. If an unwary user visit this web page then he or she will instantly get logged out of these popular websites. While this is a nuisance, it is not considered a serious security hole and knowledge of this issue is widespread throughout the security community.</p>
<p>In fact this sort of issue has a name &#8211; Cross Site Request Forgery or CSRF / XSRF, and can have very serious repurcussions. This security flaw relies on the fact that web browsers will happily go to any URL that is referenced by any website, even if the URL refers to a totally different website. If the URL performs an action, (eg. logs out the user or transfers some money to another bank account) AND the URL&#8217;s parameters are predictable, then that web application is typically vulnerable to a CSRF attack. Major sites such as Gmail were previously found to be vulnerable to CSRF. In the case of Gmail, <a href="http://www.gnucitizen.org/blog/google-gmail-e-mail-hijack-technique/" target="_blank">attackers were able to add an email filter</a> that forwarded the victim&#8217;s emails to their own email address.</p>
<p>To solve this issue, web developers usually create a secret that the attacker cannot predict and that is known between the web application and the legitimate user. Making use of POST requests is not a solution to CSRF since attackers can force web browsers to submit forms. The solution is to make use of a challenge token for each request &#8211; or at least those requests that execute a sensitive action.</p>
<p style="center;"><a href="http://www.acunetix.com/blog/wp-content/uploads/2008/12/snapshot-2008-12-27-20-06-19.jpg"><img class="size-medium wp-image-242 aligncenter" src="http://www.acunetix.com/blog/wp-content/uploads/2008/12/snapshot-2008-12-27-20-06-19-300x197.jpg" alt="" width="300" height="197" /></a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F&amp;title=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F&amp;title=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F&amp;bodytext=A%20recent%20post%20on%20%22Full-Disclosure%22%20mailing%20list%20referenced%20a%20web%20page%20called%20%22Session%20Destroyer%22.%20This%20web%20page%20is%20a%20demonstration%20by%20Kristian%20Erik%20Hermansen%20that%20promises%20to%20make%20logging%20off%20various%20popular%20websites%20very%20easy.%0D%0A%0D%0AHow%20does%20it%20work%3F%20T" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F&amp;title=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F&amp;notes=A%20recent%20post%20on%20%22Full-Disclosure%22%20mailing%20list%20referenced%20a%20web%20page%20called%20%22Session%20Destroyer%22.%20This%20web%20page%20is%20a%20demonstration%20by%20Kristian%20Erik%20Hermansen%20that%20promises%20to%20make%20logging%20off%20various%20popular%20websites%20very%20easy.%0D%0A%0D%0AHow%20does%20it%20work%3F%20T" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F&amp;title=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=A%20recent%20post%20on%20%22Full-Disclosure%22%20mailing%20list%20referenced%20a%20web%20page%20called%20%22Session%20Destroyer%22.%20This%20web%20page%20is%20a%20demonstration%20by%20Kristian%20Erik%20Hermansen%20that%20promises%20to%20make%20logging%20off%20various%20popular%20websites%20very%20easy.%0D%0A%0D%0AHow%20does%20it%20work%3F%20T" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F&amp;title=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F&amp;title=How%20can%20any%20web%20page%20log%20you%20off%20all%20other%20websites%3F&amp;annotation=A%20recent%20post%20on%20%22Full-Disclosure%22%20mailing%20list%20referenced%20a%20web%20page%20called%20%22Session%20Destroyer%22.%20This%20web%20page%20is%20a%20demonstration%20by%20Kristian%20Erik%20Hermansen%20that%20promises%20to%20make%20logging%20off%20various%20popular%20websites%20very%20easy.%0D%0A%0D%0AHow%20does%20it%20work%3F%20T" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-can-any-web-page-log-you-off-all-other-websites%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/how-can-any-web-page-log-you-off-all-other-websites/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why upgrade PHP to 5.2.8? Part 2</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/why-upgrade-php-to-528-part-2/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/why-upgrade-php-to-528-part-2/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 16:07:43 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[apache security]]></category>
		<category><![CDATA[CVE-2008-2371]]></category>
		<category><![CDATA[directory traversal]]></category>
		<category><![CDATA[mod_php]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[php buffer overflow]]></category>
		<category><![CDATA[php directory traversal]]></category>
		<category><![CDATA[php extractto]]></category>
		<category><![CDATA[php memory corruption]]></category>
		<category><![CDATA[php security]]></category>
		<category><![CDATA[php update]]></category>
		<category><![CDATA[php ziparchive]]></category>
		<category><![CDATA[xsrf]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=223</guid>
		<description><![CDATA[To read part 1 of this article please refer to the previous post.
Note: a large number of vulnerabilities described in this post can be exploited to bypass safe_mode. It is not recommended to rely on ...]]></description>
			<content:encoded><![CDATA[<p>To read part 1 of this article please refer to the <a href="http://www.acunetix.com/blog/web-security-articles/why-upgrade-php-to-528-part-1/">previous post</a>.</p>
<p><em>Note: a large number of vulnerabilities described in this post can be exploited to bypass safe_mode. It is not recommended to rely on this PHP functionality for the security of your web servers. Only use safe_mode as a supplement to PHP code that has been truly audited (with <a href="http://www.acunetix.com/blog/category/acusensor-technology/">AcuSensor technology</a> of course).</em></p>
<p><strong>Not all vulnerabilities described are simply a safe_mode bypass. The IMAP toolkit crash is more than just a crash!</strong></p>
<p><strong>Incorrect php_value order for Apache configuration</strong></p>
<p>This vulnerability affects sysadmins that rely on the safety features of safe_mode to protect their servers against users executing malicious php code on the server. This security flaw was reported by <a href="http://securityreason.com/achievement_securityalert/57" target="_blank">SecurityReason</a>. In their advisory, SecurityReason show how it can be exploited by attackers who can modify the PHP configuration by editing the Apache configuration (httpd.conf) or .htaccess. In the case that error_log directive is already set to a php script, if the php script can be edited by the attacker, then the attacker can also bypass PHP&#8217;s safe_mode feature. This is a local exploit.</p>
<p><strong>Fixed a crash inside gd with invalid fonts (CVE-2008-3658)</strong></p>
<p>GD handles image processing in PHP. It can also be used to read font files through the imageloadfont() function. This particular function suffers from a buffer overflow which can be used to execute arbitrary code or cause a denial of service. This vulnerability would affect any PHP code that calls this function and supplies it with user defined font files (normally *.gdf files).</p>
<p><strong>Fixed a possible overflow inside memnstr (CVE-2008-3659)</strong></p>
<p>An attacker can execute arbitrary code if he or she can specify the delimiter in the explode() php function. Although usage of the explode() function is very common, it is not common behavior nor recommended to make use of user defined delimiters. Therefore most applications should not be vulnerable to this. However this vulnerability can be locally exploitable to bypass safe_mode restrictions.</p>
<p><strong>Fixed security issues detailed in CVE-2008-2665 and CVE-2008-2666</strong></p>
<p>CVE-2008-2665 detailed another vulnerability that can be used to bypass safe_mode. The vulnerability is a directory traversal issue in the PHP function posix_access() which allows one to check permissions of a file. CVE-2008-2666 describes an even more subtle bypass where chdir and ftok functions can allow access to files that should not be accessible through safe_mode if the directory starts with the string &#8220;http:&#8221;.</p>
<p><strong>Crash with URI/file..php (filename contains 2 dots) (CVE-2008-3660) </strong></p>
<p>If you are making use of FastCGI module then users accessing your webserver could cause a Denial of Service by simply supplying two or more dots in front of the php extension. This vulnerability could easily be triggered unintentionally so it is highly recommended to update if the web server is making us of FastCGI.</p>
<p><strong>IMAP toolkit crash: rfc822.c legacy routine buffer overflow). (Fixes CVE-2008-2829)</strong></p>
<p>PHP made use of old code written in 1988 which did not handle large buffers, thus leading to a classic buffer overflow. How can this be exploited? If you are making use of PHP code that reads messages from an IMAP server, then that code is exposed to a buffer overflow. By exploiting this security hole attackers can crash the HTTP server and execute arbitrary code and gain access to the server. Emails exploiting this vulnerability will typically consist of large address lists in the <strong>To</strong> or <strong>CC</strong> email header. This vulnerability is described in the <a href="http://bugs.php.net/bug.php?id=42862" target="_blank">PHP bug report</a> and could easily be triggered unintentionally and intentionally if one is making use of PHP applications that use the PHP IMAP functionality such as <a href="http://informationgateway.org/" target="_blank">TWIG</a>.</p>
<p><strong>When <a href="http://www.php.net/downloads.php" target="_blank">upgrading</a> make sure that you go for version 5.2.8 (or greater) which was issued to fix a flaw that was introduced in version 5.2.7. </strong></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202&amp;bodytext=To%20read%20part%201%20of%20this%20article%20please%20refer%20to%20the%20previous%20post.%0D%0A%0D%0ANote%3A%20a%20large%20number%20of%20vulnerabilities%20described%20in%20this%20post%20can%20be%20exploited%20to%20bypass%20safe_mode.%20It%20is%20not%20recommended%20to%20rely%20on%20this%20PHP%20functionality%20for%20the%20security%20of%20your" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202&amp;notes=To%20read%20part%201%20of%20this%20article%20please%20refer%20to%20the%20previous%20post.%0D%0A%0D%0ANote%3A%20a%20large%20number%20of%20vulnerabilities%20described%20in%20this%20post%20can%20be%20exploited%20to%20bypass%20safe_mode.%20It%20is%20not%20recommended%20to%20rely%20on%20this%20PHP%20functionality%20for%20the%20security%20of%20your" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=To%20read%20part%201%20of%20this%20article%20please%20refer%20to%20the%20previous%20post.%0D%0A%0D%0ANote%3A%20a%20large%20number%20of%20vulnerabilities%20described%20in%20this%20post%20can%20be%20exploited%20to%20bypass%20safe_mode.%20It%20is%20not%20recommended%20to%20rely%20on%20this%20PHP%20functionality%20for%20the%20security%20of%20your" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%202&amp;annotation=To%20read%20part%201%20of%20this%20article%20please%20refer%20to%20the%20previous%20post.%0D%0A%0D%0ANote%3A%20a%20large%20number%20of%20vulnerabilities%20described%20in%20this%20post%20can%20be%20exploited%20to%20bypass%20safe_mode.%20It%20is%20not%20recommended%20to%20rely%20on%20this%20PHP%20functionality%20for%20the%20security%20of%20your" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-2%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/why-upgrade-php-to-528-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What do American Express and Facebook have in common?</title>
		<link>http://www.acunetix.com/blog/news/what-do-american-express-and-facebook-have-in-common/</link>
		<comments>http://www.acunetix.com/blog/news/what-do-american-express-and-facebook-have-in-common/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 08:09:30 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[american express xss]]></category>
		<category><![CDATA[bank security]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook xss]]></category>
		<category><![CDATA[google rank]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=210</guid>
		<description><![CDATA[Cross Site Scripting seems to be the word of the past few days with high profile sites getting featured on the technology news sites. ZDNet reported how Facebook just fixed four XSS security flaws affecting ...]]></description>
			<content:encoded><![CDATA[<p>Cross Site Scripting seems to be the word of the past few days with high profile sites getting featured on the technology news sites. <a href="http://blogs.zdnet.com/security/?p=2308" target="_blank">ZDNet reported</a> how Facebook just fixed four XSS security flaws affecting their developer&#8217;s page, the iPhone login page, the new users registrations page and a Facebook applications page. All of these were reflected XSS vulnerabilities rather than stored XSS. This means that exploitation of the XSS flaw appears only temporarily when the victim is redirected to a vulnerable site after following a crafted link or visiting a malicious website. American Express was also found guilty of hosting code vulnerable to Cross Site Scripting. <a href="http://www.theregister.co.uk/2008/12/16/american_express_website_bug/" target="_blank">El Reg</a> is running an article on this vulnerability and about the Bank&#8217;s response or lack of. Russ McRee <a href="http://holisticinfosec.blogspot.com/2008/12/online-finance-flaw-american-express.html" target="_blank">posted</a> details on his blog after the futile attempt to reach AmEx&#8217;s security team. The flaw was fixed in a few minutes after The Register picked up the story.</p>
<p>So what is the reason that such vulnerabilities materialize and do not get fixed? Two months ago I too reported a XSS vulnerability to a Bank&#8217;s security team. The case was very similar to the security hole in American Express&#8217; website. The vulnerable script was a search script that echoed back the search string. After being told that they knew about the vulnerability, I asked &#8220;why not fix it?&#8221;. The reason? The Cross Site Scripting vulnerability does not affect the sensitive website (ebanking site) which is on a different server.</p>
<p>In the network security world, this would have been a good answer especially when the servers are segregated. However when it comes to Web Application Security, the situation is a bit different. If the secure ebanking site shares the cookie with the other websites on the same domain (eg. secure.bank.com and www.bank.com share the same cookie), then the risk is immediately understood. Cross Site Scripting on one site affects the other site. Even when that is not the case, Cross Site Scripting can cause trouble. Attackers have previously exploited XSS to launch very convincing phishing attacks on an <a href="http://tinyurl.com/2uge9s">Italian Bank</a> or to increase their <a href="http://www.cgisecurity.com/2008/03/10" target="_blank">google ranking</a>. Besides that, reputation is easily hurt if (like AmEx) your organization is trying to project the image that it takes security seriously!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F&amp;title=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F&amp;title=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F&amp;bodytext=Cross%20Site%20Scripting%20seems%20to%20be%20the%20word%20of%20the%20past%20few%20days%20with%20high%20profile%20sites%20getting%20featured%20on%20the%20technology%20news%20sites.%20ZDNet%20reported%20how%20Facebook%20just%20fixed%20four%20XSS%20security%20flaws%20affecting%20their%20developer%27s%20page%2C%20the%20iPhone%20login%20pa" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F&amp;title=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F&amp;notes=Cross%20Site%20Scripting%20seems%20to%20be%20the%20word%20of%20the%20past%20few%20days%20with%20high%20profile%20sites%20getting%20featured%20on%20the%20technology%20news%20sites.%20ZDNet%20reported%20how%20Facebook%20just%20fixed%20four%20XSS%20security%20flaws%20affecting%20their%20developer%27s%20page%2C%20the%20iPhone%20login%20pa" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F&amp;title=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=Cross%20Site%20Scripting%20seems%20to%20be%20the%20word%20of%20the%20past%20few%20days%20with%20high%20profile%20sites%20getting%20featured%20on%20the%20technology%20news%20sites.%20ZDNet%20reported%20how%20Facebook%20just%20fixed%20four%20XSS%20security%20flaws%20affecting%20their%20developer%27s%20page%2C%20the%20iPhone%20login%20pa" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F&amp;title=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F&amp;title=What%20do%20American%20Express%20and%20Facebook%20have%20in%20common%3F&amp;annotation=Cross%20Site%20Scripting%20seems%20to%20be%20the%20word%20of%20the%20past%20few%20days%20with%20high%20profile%20sites%20getting%20featured%20on%20the%20technology%20news%20sites.%20ZDNet%20reported%20how%20Facebook%20just%20fixed%20four%20XSS%20security%20flaws%20affecting%20their%20developer%27s%20page%2C%20the%20iPhone%20login%20pa" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Fwhat-do-american-express-and-facebook-have-in-common%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/news/what-do-american-express-and-facebook-have-in-common/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why upgrade PHP to 5.2.8? Part 1</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/why-upgrade-php-to-528-part-1/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/why-upgrade-php-to-528-part-1/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 07:22:24 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[apache security]]></category>
		<category><![CDATA[CVE-2008-2371]]></category>
		<category><![CDATA[directory traversal]]></category>
		<category><![CDATA[mod_php]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[php buffer overflow]]></category>
		<category><![CDATA[php directory traversal]]></category>
		<category><![CDATA[php extractto]]></category>
		<category><![CDATA[php memory corruption]]></category>
		<category><![CDATA[php security]]></category>
		<category><![CDATA[php update]]></category>
		<category><![CDATA[php ziparchive]]></category>
		<category><![CDATA[xsrf]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=198</guid>
		<description><![CDATA[Note: PHP 5.2.7 is the actual version that fixes the below security holes. PHP 5.2.8 fixes an issue introduced in 5.2.7. Details from the PHP news site.

A new version of the popular scripting language, PHP ...]]></description>
			<content:encoded><![CDATA[<p><em>Note: PHP 5.2.7 is the actual version that fixes the below security holes. PHP 5.2.8 fixes an issue introduced in 5.2.7. Details from the <a href="http://www.php.net/archive/2008.php#id2008-12-07-1" target="_blank">PHP news site</a>.<br />
</em></p>
<p>A new version of the popular scripting language, PHP includes a couple of security fixes (taken from the <a href="http://www.php.net/ChangeLog-5.php#5.2.7" target="_blank">Changelog</a>):</p>
<ul>
<li>Upgraded PCRE to version 7.8 (Fixes CVE-2008-2371)</li>
<li>Fixed missing initialization of BG(page_uid) and BG(page_gid)</li>
<li>Fixed incorrect php_value order for Apache configuration</li>
<li>Fixed a crash inside gd with invalid fonts (Fixes CVE-2008-3658).</li>
<li>Fixed a possible overflow inside memnstr (Fixes CVE-2008-3659).</li>
<li>Fixed security issues detailed in CVE-2008-2665 and CVE-2008-2666.</li>
<li>Fixed bug #45151 (Crash with URI/file..php (filename contains 2 dots)).(Fixes CVE-2008-3660)</li>
<li>Fixed bug #42862 (IMAP toolkit crash: rfc822.c legacy routine buffer overflow). (Fixes CVE-2008-2829)</li>
</ul>
<p>Additionally, Stefan Esser described a vulnerability that was silently fixed in PHP 5.2.8.</p>
<p>Obviously this update not only includes security updates but also a large number (170) of bug fixes that probably makes it worth the update. Many of these non-security fixes solve stability issues and make this update worth it. However the security issues fixed in this version may in some cases force your organization to upgrade some or all of its PHP installations depending on the case. In this post I will be describing these vulnerabilities in more detail so that one can easily prioritize application of this PHP update.</p>
<p><strong>Upgraded PCRE to version 7.8 which addresses </strong><strong>CVE-2008-2371</strong></p>
<p>What is CVE-2008-2371 about? The <a href="http://www.pcre.org/changelog.txt" target="_blank">Changelog</a> from PCRE gives the following description:</p>
<pre>11. An option change at the start of a pattern that had top-level alternatives
    could cause overwriting and/or a crash. This command provoked a crash in
    some environments:

      printf "/(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/8\n" | pcretest

    This potential security problem was recorded as CVE-2008-2371.</pre>
<p>To exploit this vulnerability an attacker needs to be able to pass regular expressions to the pcre_* functions. The most obvious case where this is an issue is when a PHP script allows regular expressions to be defined by the user. For example, plugin for WordPress called <a href="http://urbangiraffe.com/plugins/search-regex/" target="_blank">Search Regex</a> might expose this vulnerability. If this particular WordPress plugin only available to the administrator who is doing a WordPress migration, then the vulnerability is somewhat contained. There are cases where the website administrator or webmaster is not given system access to the website. In this context, this vulnerability will indeed affect the PHP installation. Another possibility is that an attacker can target the administrator by making use of an additional vulnerability such as Cross Site Request Forgery (XSRF).</p>
<p><strong>Fixed missing initialization of BG(page_uid) and BG(page_gid)</strong></p>
<p>Details of this vulnerability were published by <a href="http://securityreason.com/achievement_securityalert/59" target="_blank">SecurityReason</a> on Bugtraq and various security mailing lists. The advisory describes a vulnerability where the first Apache child process will incorrectly set the uid to 0 which is normally assigned to the root user on UNIX and Linux systems. The correct behavior would be to assign the uid to the correct user, typically the &#8220;www&#8221; user for Apache. By making use of this vulnerability, an attacker may be able to bypass certain security restrictions that PHP&#8217;s safe_mode is meant to apply. So who can this attacker be? It will have to be someone who can modify the php flags (modify php.ini or htaccess), which is typically someone with access to modify .htaccess or php.ini. I am waiting for feedback from the security researcher who discovered this vulnerability, so this description is subject to change.</p>
<p><strong>ZipArchive::extractTo() silent fix</strong></p>
<p>As described before, PHP fixed a vulnerability that was <a href="http://www.suspekt.org/2008/12/05/php-527-and-ziparchiveextractto/" target="_blank">reported by Stefan Esser </a>in the zip extraction functions. This is a traditional <a href="http://www.acunetix.com/websitesecurity/directory-traversal.htm">directory traversal vulnerability</a> that allows attackers to dump their files anywhere that the Apache user can write to. In this case, the attacker will upload a zip file to the PHP script in question which includes compressed files with filenames such as &#8220;../../../var/www/backdoor.php&#8221;. PHP scripts that extract uploaded zip files on the fly would expose this vulnerability. Websites allowing such functionality should be immediately upgraded to the latest version of PHP which fixes this vulnerability.</p>
<p>That&#8217;s it for now. Part two of this post coming up soon!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201&amp;bodytext=Note%3A%20PHP%205.2.7%20is%20the%20actual%20version%20that%20fixes%20the%20below%20security%20holes.%20PHP%205.2.8%20fixes%20an%20issue%20introduced%20in%205.2.7.%20Details%20from%20the%20PHP%20news%20site.%0D%0A%0D%0A%0D%0AA%20new%20version%20of%20the%20popular%20scripting%20language%2C%20PHP%20includes%20a%20couple%20of%20security%20fixes%20%28ta" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201&amp;notes=Note%3A%20PHP%205.2.7%20is%20the%20actual%20version%20that%20fixes%20the%20below%20security%20holes.%20PHP%205.2.8%20fixes%20an%20issue%20introduced%20in%205.2.7.%20Details%20from%20the%20PHP%20news%20site.%0D%0A%0D%0A%0D%0AA%20new%20version%20of%20the%20popular%20scripting%20language%2C%20PHP%20includes%20a%20couple%20of%20security%20fixes%20%28ta" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=Note%3A%20PHP%205.2.7%20is%20the%20actual%20version%20that%20fixes%20the%20below%20security%20holes.%20PHP%205.2.8%20fixes%20an%20issue%20introduced%20in%205.2.7.%20Details%20from%20the%20PHP%20news%20site.%0D%0A%0D%0A%0D%0AA%20new%20version%20of%20the%20popular%20scripting%20language%2C%20PHP%20includes%20a%20couple%20of%20security%20fixes%20%28ta" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F&amp;title=Why%20upgrade%20PHP%20to%205.2.8%3F%20Part%201&amp;annotation=Note%3A%20PHP%205.2.7%20is%20the%20actual%20version%20that%20fixes%20the%20below%20security%20holes.%20PHP%205.2.8%20fixes%20an%20issue%20introduced%20in%205.2.7.%20Details%20from%20the%20PHP%20news%20site.%0D%0A%0D%0A%0D%0AA%20new%20version%20of%20the%20popular%20scripting%20language%2C%20PHP%20includes%20a%20couple%20of%20security%20fixes%20%28ta" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fwhy-upgrade-php-to-528-part-1%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/why-upgrade-php-to-528-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Two factor authentication and Web Application Security</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/two-factor-authentication-and-web-application-security/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/two-factor-authentication-and-web-application-security/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 11:42:10 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[account hijacking]]></category>
		<category><![CDATA[cookie hijack]]></category>
		<category><![CDATA[cross site scripting]]></category>
		<category><![CDATA[paypal security]]></category>
		<category><![CDATA[secret key]]></category>
		<category><![CDATA[security token]]></category>
		<category><![CDATA[session cookie]]></category>
		<category><![CDATA[steal cookies]]></category>
		<category><![CDATA[two factor authentication]]></category>
		<category><![CDATA[web application security]]></category>
		<category><![CDATA[web password]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=168</guid>
		<description><![CDATA[A few days ago PayPal announced that they will be supporting Mobile Access for the PayPal Security Key. This means that to log into their accounts, PayPal users receive a 6 digit security code via ...]]></description>
			<content:encoded><![CDATA[<p>A few days ago PayPal announced that they will be supporting Mobile Access for the <a href="https://www.paypal.com/securitykey." target="_blank">PayPal Security Key</a>. This means that to log into their accounts, PayPal users receive a 6 digit security code via a text message. This feature obviously adds an extra layer of security since instead of simply relying on something you know, they now also check for something you have (a mobile phone number). Additionally PayPal have supported security tokens for quite a while, which also produces the a 6 digit security code.</p>
<p>These measures address security issues associated with passwords by introducing an additional secret that is not static. The problem with passwords is that they can be easily copied and abused. Additionally, it is not easy to choose a unique and hard to guess password for each service that you subscribe to.  That makes passwords one of the major security nightmares for services such as PayPal and your local bank. Two factor authentication addresses these concerns.</p>
<p>What two factor authentication does not target is web application security flaws. One of the questions that I have been asked when presenting my <a href="http://enablesecurity.com/2008/08/11/surf-jack-https-will-not-save-you/" target="_blank">Surf Jacking research</a> was &#8220;<em>but doesn&#8217;t the security token prevent stealing other user&#8217;s credentials?</em>&#8221; The answer to that is that yes it does but that does not prevent this particular attack. If your web application has a security flaw such as <a href="http://www.acunetix.com/websitesecurity/cross-site-scripting.htm">Cross Site Scripting</a> then the attacker never needs to get your credentials. Such attacks usually happen after the victim has authenticated by supplying his username, password and secret key. Once clients authenticate to a web application, the web application assigns a session cookie to the web client. Many account hijacking attacks target this behavior by stealing the session cookie rather than the password or the secret 6 digit key. What this means is that at the end of the day, the overall security of a web application does not only rely on strong authentication methods, but also on the security of the web application itself.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Two%20factor%20authentication%20and%20Web%20Application%20Security%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F&amp;title=Two%20factor%20authentication%20and%20Web%20Application%20Security" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F&amp;title=Two%20factor%20authentication%20and%20Web%20Application%20Security&amp;bodytext=A%20few%20days%20ago%20PayPal%20announced%20that%20they%20will%20be%20supporting%20Mobile%20Access%20for%20the%20PayPal%20Security%20Key.%20This%20means%20that%20to%20log%20into%20their%20accounts%2C%20PayPal%20users%20receive%20a%206%20digit%20security%20code%20via%20a%20text%20message.%20This%20feature%20obviously%20adds%20an%20extra%20" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F&amp;title=Two%20factor%20authentication%20and%20Web%20Application%20Security&amp;notes=A%20few%20days%20ago%20PayPal%20announced%20that%20they%20will%20be%20supporting%20Mobile%20Access%20for%20the%20PayPal%20Security%20Key.%20This%20means%20that%20to%20log%20into%20their%20accounts%2C%20PayPal%20users%20receive%20a%206%20digit%20security%20code%20via%20a%20text%20message.%20This%20feature%20obviously%20adds%20an%20extra%20" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F&amp;title=Two%20factor%20authentication%20and%20Web%20Application%20Security&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=A%20few%20days%20ago%20PayPal%20announced%20that%20they%20will%20be%20supporting%20Mobile%20Access%20for%20the%20PayPal%20Security%20Key.%20This%20means%20that%20to%20log%20into%20their%20accounts%2C%20PayPal%20users%20receive%20a%206%20digit%20security%20code%20via%20a%20text%20message.%20This%20feature%20obviously%20adds%20an%20extra%20" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F&amp;title=Two%20factor%20authentication%20and%20Web%20Application%20Security" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F&amp;title=Two%20factor%20authentication%20and%20Web%20Application%20Security&amp;annotation=A%20few%20days%20ago%20PayPal%20announced%20that%20they%20will%20be%20supporting%20Mobile%20Access%20for%20the%20PayPal%20Security%20Key.%20This%20means%20that%20to%20log%20into%20their%20accounts%2C%20PayPal%20users%20receive%20a%206%20digit%20security%20code%20via%20a%20text%20message.%20This%20feature%20obviously%20adds%20an%20extra%20" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Ftwo-factor-authentication-and-web-application-security%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/two-factor-authentication-and-web-application-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Cross Site Scripting can lead to a Windows Domain compromise</title>
		<link>http://www.acunetix.com/blog/web-security-zone/articles/how-cross-site-scripting-can-lead-to-a-windows-domain-compromise/</link>
		<comments>http://www.acunetix.com/blog/web-security-zone/articles/how-cross-site-scripting-can-lead-to-a-windows-domain-compromise/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 08:58:45 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[cain and abel]]></category>
		<category><![CDATA[cross site scripting]]></category>
		<category><![CDATA[integrated authentication]]></category>
		<category><![CDATA[internal hacking]]></category>
		<category><![CDATA[internal penetration test]]></category>
		<category><![CDATA[internal security]]></category>
		<category><![CDATA[internal server]]></category>
		<category><![CDATA[internal web application]]></category>
		<category><![CDATA[internet explorer vulnerability]]></category>
		<category><![CDATA[intranet security]]></category>
		<category><![CDATA[john the ripper]]></category>
		<category><![CDATA[MS08-068]]></category>
		<category><![CDATA[ntlm authentication]]></category>
		<category><![CDATA[ntlm credentials]]></category>
		<category><![CDATA[ntlm password]]></category>
		<category><![CDATA[smbrelay]]></category>
		<category><![CDATA[smbrelay3]]></category>
		<category><![CDATA[squirtle]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=137</guid>
		<description><![CDATA[Many times internal web applications are excluded from the scrutinity that external ones are subjected to. It is often assumed that attackers are on the external side of the network and therefore do not have ...]]></description>
			<content:encoded><![CDATA[<p>Many times internal web applications are excluded from the scrutinity that external ones are subjected to. It is often assumed that attackers are on the external side of the network and therefore do not have access to any internal resources. In turn this usually leads to Web Applications being vulnerable to common security flaws such as Cross Site Scripting and SQL injection.</p>
<p>An internal attacker who exploits vulnerabilities on an internal web application, or even one that is external and visited frequently by internal employees, has a number of options. Cross Site Scripting is usually used to steal session cookies, deface websites or inject javascript that attempts to exploit browser vulnerabilities. But what if the vulnerable website starts redirecting internal users to a malicious HTTP server on the internal network that asks for the NTLM authentication? What happens is that it will negotiate and send the NTLM credentials!</p>
<blockquote><p>What is NTLM? (based on this Wikipedia <a href="http://en.wikipedia.org/wiki/NTLM" target="_blank">article</a>)</p>
<p>NTLM (NT LAN Manager) (not to be confused with LAN Manager) is a Microsoft authentication protocol used with the SMB protocol. MS-CHAP is similar and is used for authentication with Microsoft remote access protocols. During protocol negotiation, the internal name is nt lm 0.12. The version number 0.12 has not been explained. It is the successor of LANMAN (Microsoft LAN Manager), an older Microsoft authentication protocol, and attempted to be backwards compatible with LANMAN. NTLM was followed by NTLMv2, at which time the original was renamed NTLMv1.</p></blockquote>
<p><strong>What can an attacker with NTLM credentials do? </strong><br />
These are a few of the ideas:</p>
<ul>
<li>Traditionally attackers would use a password cracker like <a href="http://www.oxid.it/cain.html" target="_blank">Cain and Abel</a> to obtain the user&#8217;s password from the hash. From there they would proceed to further attacks. However breaking passwords can be a time consuming job.</li>
<li>With new tools such as <a href="http://code.google.com/p/squirtle/" target="_blank">Squirtle</a> and <a href="http://www.tarasco.org/security/smbrelay/index.html" target="_blank">Smbrelay3</a> one no longer needs to obtain the passwords. Instead these attack tools allow malicious users to make use of the NTLM credentials to login as the victim on a target server of their choice. NTLM credentials can then be used on network shares, IMAP servers, SQL servers and any other software that supports this authentication scheme.</li>
</ul>
<p>Very recently Microsoft published a security patch (<a href="http://www.microsoft.com/technet/security/bulletin/Ms08-068.mspx" target="_blank">MS08-068</a>) that mitigates some of the issues associated with NTLM authentication. This means that if a victim running the latest patches sends his / her NTLM credentials to an attacker&#8217;s malicious HTTP server, the attacker can no longer replay these credentials on the victim&#8217;s workstation or server. However this patch only protects against this particular scenario, and therefore the attack would <a href="http://grutztopia.jingojango.net/2008/11/squirtle-and-ms08-068.html" target="_blank">still work</a> if the attacker simply accesses a different machine with the victim&#8217;s credentials.</p>
<p><strong>What can one do to mitigate this security issue? </strong></p>
<p>From a web application security point of view, it is important to threat internal web applications as part of the attack surface. Although Cross Site Scripting is not the only way of luring victims into automatically sending their NTLM credentials on an internal network, it definitely is one of the most effective. Therefore fixing such vulnerabilities in your internal web applications can help mitigate this and many other attack vectors that may apply to your organization.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F&amp;title=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F&amp;title=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise&amp;bodytext=Many%20times%20internal%20web%20applications%20are%20excluded%20from%20the%20scrutinity%20that%20external%20ones%20are%20subjected%20to.%20It%20is%20often%20assumed%20that%20attackers%20are%20on%20the%20external%20side%20of%20the%20network%20and%20therefore%20do%20not%20have%20access%20to%20any%20internal%20resources.%20In%20turn%20" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F&amp;title=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise&amp;notes=Many%20times%20internal%20web%20applications%20are%20excluded%20from%20the%20scrutinity%20that%20external%20ones%20are%20subjected%20to.%20It%20is%20often%20assumed%20that%20attackers%20are%20on%20the%20external%20side%20of%20the%20network%20and%20therefore%20do%20not%20have%20access%20to%20any%20internal%20resources.%20In%20turn%20" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F&amp;title=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=Many%20times%20internal%20web%20applications%20are%20excluded%20from%20the%20scrutinity%20that%20external%20ones%20are%20subjected%20to.%20It%20is%20often%20assumed%20that%20attackers%20are%20on%20the%20external%20side%20of%20the%20network%20and%20therefore%20do%20not%20have%20access%20to%20any%20internal%20resources.%20In%20turn%20" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F&amp;title=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F&amp;title=How%20Cross%20Site%20Scripting%20can%20lead%20to%20a%20Windows%20Domain%20compromise&amp;annotation=Many%20times%20internal%20web%20applications%20are%20excluded%20from%20the%20scrutinity%20that%20external%20ones%20are%20subjected%20to.%20It%20is%20often%20assumed%20that%20attackers%20are%20on%20the%20external%20side%20of%20the%20network%20and%20therefore%20do%20not%20have%20access%20to%20any%20internal%20resources.%20In%20turn%20" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fweb-security-zone%2Farticles%2Fhow-cross-site-scripting-can-lead-to-a-windows-domain-compromise%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/web-security-zone/articles/how-cross-site-scripting-can-lead-to-a-windows-domain-compromise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook worm on the loose</title>
		<link>http://www.acunetix.com/blog/news/facebook-worm-on-the-loose/</link>
		<comments>http://www.acunetix.com/blog/news/facebook-worm-on-the-loose/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 13:50:15 +0000</pubDate>
		<dc:creator>Sandro</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[cross site request forgery]]></category>
		<category><![CDATA[cross site scripting]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook widget]]></category>
		<category><![CDATA[facebook worm]]></category>
		<category><![CDATA[koobface]]></category>
		<category><![CDATA[web application malware]]></category>
		<category><![CDATA[web application virus]]></category>
		<category><![CDATA[web application worm]]></category>
		<category><![CDATA[web virus]]></category>

		<guid isPermaLink="false">http://www.acunetix.com/blog/?p=106</guid>
		<description><![CDATA[A worm abusing Facebook&#8216;s messaging system is making rounds between friends. It consists of an executable worm known as Koobface that runs on the victim&#8217;s computer and searches for Facebook cookies on his or her ...]]></description>
			<content:encoded><![CDATA[<p>A worm abusing <span class="nfakPe">Facebook</span>&#8216;s messaging system is making rounds between <em>friends</em>. It consists of an executable worm known as <a href="http://symantec.com/security_response/writeup.jsp?docid=2008-080315-0217-99&amp;tabid=2" target="_blank">Koobface</a> that runs on the victim&#8217;s computer and searches for <span class="nfakPe">Facebook</span> cookies on his or her computer. It will then use these cookies to hijack an authenticated session and send a message to all of the victim&#8217;s friends. This message typically contains a link to a website that will try to infect new victims.</p>
<p>This is not the first worm to make use of social networking sites for distribution. Social networking sites are the perfect way of distributing worms in the Web 2.0 world. By their nature, social networking is virulent &#8211; very much like malware &#8211; and can help reach a large group of people.  Some worms previously made use of web application attacks like Cross Site Scripting (XSS) and Cross Site Request forgery (CSRF). In fact the more complex and popular social networking sites become, the more chance that such sites are used as a platform to launch malware. Usage of technologies such as Ajax make the websites more useful and easier to use. As a side effect, they also tend to expose such sites to new risks that were previously not thought to be a security issue.</p>
<p>For example, <span class="nfakPe">Facebook</span> supports online Apps that have been found to hide malicious code. One particular malicious <span class="nfakPe">Facebook</span> App called &#8216;<a href="http://www.theregister.co.uk/2008/01/04/facebook_adware/" target="_blank">Secret Crush</a>&#8216; was discovered to be spreading early 2008. It attempted to install adware on the victim computers. Web application vulnerabilities together with a bit of social engineering can proof to be a very effective weapon in a malware writer&#8217;s arsenal.</p>
<p>Other posts that mention Koobface:</p>
<ul>
<li><a href="http://shiflett.org/blog/2008/nov/facebook-worm" target="_blank">Facebook Worm</a></li>
<li><a href="http://blogs.zdnet.com/security/?p=2146" target="_blank">Koobface Facebook worm still spreading</a></li>
</ul>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Facebook%20worm%20on%20the%20loose%20-%20http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F" title="Twitter"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F&amp;title=Facebook%20worm%20on%20the%20loose" title="Reddit"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F&amp;title=Facebook%20worm%20on%20the%20loose&amp;bodytext=A%20worm%20abusing%20Facebook%27s%20messaging%20system%20is%20making%20rounds%20between%20friends.%20It%20consists%20of%20an%20executable%20worm%20known%20as%20Koobface%20that%20runs%20on%20the%20victim%27s%20computer%20and%20searches%20for%20Facebook%20cookies%20on%20his%20or%20her%20computer.%20It%20will%20then%20use%20these%20cooki" title="Digg"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F&amp;title=Facebook%20worm%20on%20the%20loose&amp;notes=A%20worm%20abusing%20Facebook%27s%20messaging%20system%20is%20making%20rounds%20between%20friends.%20It%20consists%20of%20an%20executable%20worm%20known%20as%20Koobface%20that%20runs%20on%20the%20victim%27s%20computer%20and%20searches%20for%20Facebook%20cookies%20on%20his%20or%20her%20computer.%20It%20will%20then%20use%20these%20cooki" title="del.icio.us"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F&amp;title=Facebook%20worm%20on%20the%20loose&amp;source=Acunetix+Web+Application+Security+Blog+Acunetix+Web+Application+Security+Blog&amp;summary=A%20worm%20abusing%20Facebook%27s%20messaging%20system%20is%20making%20rounds%20between%20friends.%20It%20consists%20of%20an%20executable%20worm%20known%20as%20Koobface%20that%20runs%20on%20the%20victim%27s%20computer%20and%20searches%20for%20Facebook%20cookies%20on%20his%20or%20her%20computer.%20It%20will%20then%20use%20these%20cooki" title="LinkedIn"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F&amp;title=Facebook%20worm%20on%20the%20loose" title="StumbleUpon"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F&amp;title=Facebook%20worm%20on%20the%20loose&amp;annotation=A%20worm%20abusing%20Facebook%27s%20messaging%20system%20is%20making%20rounds%20between%20friends.%20It%20consists%20of%20an%20executable%20worm%20known%20as%20Koobface%20that%20runs%20on%20the%20victim%27s%20computer%20and%20searches%20for%20Facebook%20cookies%20on%20his%20or%20her%20computer.%20It%20will%20then%20use%20these%20cooki" title="Google Bookmarks"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.acunetix.com%2Fblog%2Fnews%2Ffacebook-worm-on-the-loose%2F" title="Technorati"><img src="http://www.acunetix.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.acunetix.com/blog/news/facebook-worm-on-the-loose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
