<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>ClearNet Security: Tag Penetration Testing</title>
    <link>http://blog.clearnetsec.com/articles/tag/penetrationtesting</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>True penetration testing?</title>
      <description>&lt;p&gt;
This from the new 
&lt;a href="https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf"&gt;PCI information supplement&lt;/a&gt;: (regarding the required annual penetration testing for compliance)
&lt;/p&gt;
&lt;img src="http://blog.clearnetsec.com/files/paperBag.jpg" align="right"&gt;
&lt;blockquote&gt;
The penetration tests should attempt to exploit vulnerabilities [&#8230;] attempting to penetrate both at the network level and key applications
&lt;/blockquote&gt;
&lt;p&gt;
Really?  I laughed when I read this, seriously.  It made me think for a second about how many consultants &lt;b&gt;&lt;i&gt;really&lt;/i&gt;&lt;/b&gt; have the skills to chef-boy-ar-dee exploits under pressure.  It&#8217;s clear too; this is not about a vulnerability sweep, they want you to bust in.
&lt;/p&gt;
&lt;blockquote&gt;
Penetration testing [..] should occur from both outside the network trying to come in (external testing) and from inside the network.
&lt;/blockquote&gt;
&lt;p&gt;
Wow.  &lt;b&gt;&lt;i&gt;True penetration testing&lt;/i&gt;&lt;/b&gt; from inside the network?  How many internal networks have you seen that would survive a blitzkrieg attack from a good penetration test team?      
&lt;/p&gt;
PCI states:
&lt;blockquote&gt;
&#8220;resources must be experienced penetration testers&#8221;
&lt;/blockquote&gt;
&lt;p&gt;
What does that mean?  
&lt;/p&gt;
&lt;p&gt;
I&#8217;m sure the PCI council is of compos mentis, and I&#8217;m not trying to rain on the PCI council or ASVs or QSAs, though it&#8217;s funny the council points out that &lt;i&gt;&#8220;The PCI DSS does not require that a QSA or ASV perform the penetration test&#8221;&lt;/i&gt;.  That statement wouldn&#8217;t be because most of them couldn&#8217;t penetration test there way out of a paper bag even if they were handed a loaded metasploit gun, right?    
&lt;/p&gt;
&lt;p&gt;
With the huge number of companies bemoaning PCI compliance, I just don&#8217;t see most getting a &lt;b&gt;&lt;i&gt;true&lt;/i&gt;&lt;/b&gt; penetration test.  I guess I could be reading too much into this.  Maybe the skills bar level I consider for experienced penetration testers is way higher than what the PCI council considers experienced or what others consider experienced or good?
&lt;/p&gt;
&lt;p&gt;
Do you have penetration testing skills?  What does that mean to you?  Do you think most of the companies that buy a penetration test actually get one?
&lt;/p&gt;

</description>
      <pubDate>Sun, 04 May 2008 22:45:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:470c8a22-8394-42f3-865f-16f2cea23a84</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/05/04/true-penetration-testing</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>vulnerability</category>
      <category>Penetration Testing</category>
      <category>PCI</category>
      <category>ASV</category>
      <category>exploits</category>
      <category>QSA</category>
    </item>
    <item>
      <title>Rogue modems are still plentiful?</title>
      <description>&lt;p&gt;
I was doing a scope call for a large grocery chain recently when they mentioned they discover around &lt;b&gt;20 rogue modems per quarter per division&lt;/b&gt; (and they have more than 12 divisions).  That number is way higher than I would've guessed, though maybe lots of the modems are legitimate but not on their official roster.  
&lt;/p&gt;
&lt;p&gt;
Whatever the case may be, wardialing is not a moribund activity, or as close to it as I thought. 
&lt;/p&gt;

</description>
      <pubDate>Fri, 15 Feb 2008 22:18:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:6580f55a-61aa-4171-b6e9-0170041d2a03</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/02/15/rogue-modems-are-still-plentiful</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>Penetration Testing</category>
      <category>wardialing</category>
      <category>modems</category>
      <category>rogue</category>
    </item>
    <item>
      <title>&#8220;Big money!  Big prizes!  I love it!&#8221;</title>
      <description>&lt;img src="http://blog.clearnetsec.com/files/smashtv1.jpg" align="right"&gt;
&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Smash_TV"&gt;Smash TV &lt;/a&gt;quotes.  Love &#8216;em.  
&lt;/p&gt;
&lt;p&gt;
Speaking of big money, the commercial exploit market&#8217;s growth isn&#8217;t making it any easier to bid on penetration test gigs.  If you want to provide the highest assurance you&#8217;re capable of to clients, then of course you would like to have your hands on all the exploits out there, both public and private.      
&lt;/p&gt;

&lt;table border="1"&gt;
  &lt;tr&gt;
    &lt;th&gt;product&lt;/th&gt;
    &lt;th&gt;to start&lt;/th&gt;
    &lt;th&gt;quarterly&lt;/th&gt;
    &lt;th&gt;total&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://d2sec.com/products.htm"&gt;d2&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,950&lt;/td&gt;
    &lt;td&gt;$850&lt;/td&gt;
    &lt;td&gt;$5,350&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://gleg.net/vulndisco_prices.shtml"&gt;gleg&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,400&lt;/td&gt;
    &lt;td&gt;$700&lt;/td&gt;
    &lt;td&gt;$4,200&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://gleg.net/argeniss_pack.shtml"&gt;argeniss &lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,000&lt;/td&gt;
    &lt;td&gt;$500&lt;/td&gt;
    &lt;td&gt;$3,000&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://www.immunitysec.com/products-canvas.shtml"&gt;canvas&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,450&lt;/td&gt;
    &lt;td&gt;$730&lt;/td&gt;
    &lt;td&gt;$4,370&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;p&gt;
And the cr&#232;me of the crop:&lt;br /&gt;
&lt;b&gt;Immunity Sec&#8217;s Vulnerability Sharing Club	$50,000 - $100,000 per year&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
Attacking with anything less in hand tends toward negligence, especially if you do so without disclosing what you&#8217;re missing.  Pay to have all and you&#8217;ve likely priced yourself out of competitive bids.  
&lt;/p&gt;
&lt;p&gt;
The winners here, again, are the attackers.      
&lt;/p&gt;
&lt;p&gt;
&#8220;Good Luck&#8230; you&#8217;ll need it!&#8221;
&lt;/p&gt;
&lt;img src="http://blog.clearnetsec.com/files/smashtv.jpg" align="left"&gt;
&lt;br /&gt;

</description>
      <pubDate>Fri, 28 Dec 2007 08:57:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:5b29bc79-91d9-4ca9-bf12-d9426ee719ee</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2007/12/28/%E2%80%9Cbig-money-big-prizes-i-love-it-%E2%80%9D</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>Penetration Testing</category>
      <category>gleg</category>
      <category>immunity</category>
      <category>argeniss</category>
      <category>d2</category>
      <category>exploits</category>
    </item>
    <item>
      <title>Cisco VPN group name and password testing</title>
      <description>&lt;html&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content="text/html; charset=windows-1252"&gt;
&lt;meta name=Generator content="Microsoft Word 11 (filtered)"&gt;
&lt;title&gt;Cisco VPN group name and password&lt;/title&gt;
&lt;style&gt;
&lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:Arial;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:Arial;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:Arial;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
 /* Page Definitions */
 @page Section1
	{size:595.3pt 841.9pt;
	margin:70.9pt 70.9pt 70.9pt 70.9pt;}
div.Section1
	{page:Section1;}
--&gt;
&lt;/style&gt;

&lt;/head&gt;

&lt;body lang=EN-GB link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Even though this is not a new attack, it seems that the
patch from Cisco has not gained a lot of attention. (The patch is from May
2005).&lt;/p&gt;


&lt;p class=MsoNormal&gt;The following is a walk through of how to exploit this
vulnerability in order to gain access to a network through an unpatched Cisco
VPN Concentrator.&lt;/p&gt;


&lt;p class=MsoNormal&gt;It should be noted that only Concentrators configured to use
group names instead of certificates are vulnerable to this attack. &lt;/p&gt;


&lt;p class=MsoNormal&gt;&amp;nbsp;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;Walk through&lt;/b&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;The primary reason for this vulnerability is the use of bad
security practice from Cisco &#8211; letting the device respond differently to valid
and invalid usernames. &lt;/p&gt;

&lt;p class=MsoNormal&gt;The exploit is based on sending packets to the Concentrator
(see a follow-up post about detecting VPN Concentrators using IKEscan) in order
to initiate an IKE session. &lt;/p&gt;

&lt;p class=MsoNormal&gt;If we do not provide a group name, the Concentrator will
drop the packets (which is why it will not show up on a port scan). If we
provide a wrong group name, the Concentrator drops the packets as well. But if
we provide the right group name, the Concentrator responds with this:&lt;/p&gt;

&lt;p class=MsoNormal style='text-indent:42.55pt'&gt;&lt;span style='font-family:"Courier New";
color:red'&gt;&amp;lt;EXTERNAL IP&amp;gt;&lt;/span&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;
Aggressive Mode Handshake returned&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; HDR=(CKY-R=1234567890abcdef)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-left:42.55pt'&gt;&lt;span style='font-family:"Courier New"'&gt;SA=(Enc=3DES
Hash=MD5 Group=2:modp1024 Auth=XAUTH LifeType=Seconds Life&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-left:42.55pt'&gt;&lt;span style='font-family:"Courier New"'&gt;Duration=1500)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160;
KeyExchange(128 bytes)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; Nonce(20
bytes)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160;
ID(Type=ID_IPV4_ADDR, Value=&lt;span style='color:red'&gt;&amp;lt;INTERNAL IP&amp;gt;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; Hash(16
bytes)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; VID=a0b9c8d7e6f5a4b3c2d1f0a9b8c7d6e5
(Cisco Unity)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; VID=123455668b3b3888
(XAUTH)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; VID=a0b9c8d7f6f5a4b3c3d1f0b9b8c7d6e5
(Dead Peer Detection)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-left:42.55pt'&gt;&lt;span style='font-family:"Courier New"'&gt;VID=a0b9c8d7f6f5a4b3c3d1fa0b9c8d7f6f5a4b3c3
(IKE Fragmentation)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; VID=a6b9c6b7f6b5a4b3c3d1f1b9b8c7d6e5&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-family:"Courier New"'&gt;&#160;&#160;&#160;&#160;&#160;&#160; VID=f0c3d8b7f6f5a7c3c1e6f0c2d2d7f3e8
(Cisco VPN Concentrator)&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Because of this, we can guess the group name, either by
manually guessing or by doing a dictionary attack against the server. For this,
IKEscan (http://www.nta-monitor.com/tools/ike-scan/) can be used. &lt;/p&gt;

&lt;p class=MsoNormal&gt;Once the group name is obtained, the server can be forced to
provide a HASH of the group name password in a modified MD5 format. Such a
response from the IKE pre-shared key exchange with the Concentrator could look
like this:&lt;/p&gt;

&lt;p class=MsoNormal style='margin-left:42.55pt'&gt;&lt;span style='font-family:"Courier New"'&gt;a60f86af35c2b771944ade9b2c5c3f5cc0a1fccee054184061202bf1c788be35999a5b3ea4b902ba209394b369060decfd1369f4f438b5721b597df859a529e71a2b530c555ddda7439c1c6c766a67b6817b9f14d40af8d365d07e4f8e56627bbb7d748361c05bb6dd562c92bfd873f6c1cf8a622ac7c79f8ca3e45516d4e8ea:77da26beecf8ecdc1eec2d8b46d4aecb6aff6bccdd943ad836fbdcd7af3dfd3a3b7f710a6619a84797d5ba9dbdf1cf80dcd1d8672c164983dc4798e96dc53d1f168701cc132a97855d1673984522625b368720625d782b2df62182a9eb377c72a5d01aa9765d072f347895dee4f11af172af3a706c636b97f376c5cc84a55831:0b79320bbb06bbbb:b0dd49295b043bfc:00000001000000010000009801010004030003240101000080010005800200028003000180140002800b0001000c00040000708003000240201000080010005800200018003000180040002800b0001000c0004000073480030000240301000080010001800200028003600180040002800b0001000c000403017080000000240401000080010001800200018003000180040002800b0001000c000400017080:121100000afe0617:c849c27485e3815eb786e1dd22ad028da3fab34d:5bdbd293c1d52d12b75dee547653269102acfcc8:564372d4715dd3e9ecf963571d4cb3a9&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Once the hash is obtained, the password can be cracked offline
using a dictionary, brute force, or rainbow table attack. A good program for
this is Cain &amp;amp; Abel (www.oxid.it/cain.html). In the newest version this is
integrated with Rainbow Crack Online (www.rainbowcrack-online.com), a
subscription based rainbow crack service. &lt;/p&gt;

&lt;p class=MsoNormal&gt;Now we have the group name and group name password. In a
corporate environment the next step is the user authentication, normally based
on some kind of token identification. &lt;/p&gt;


&lt;p class=MsoNormal&gt;Let&#8217;s assume that a two-factor authentication system is in
place for user authentication once the group name authentication is passed. If
we assume that RSA SecurID tokens are used in their standard configuration, a 4
digit PIN and a 6 digit token code is used to authenticate the user. The
username can most likely be obtained through the e-mail address or other means.
&lt;/p&gt;

&lt;p class=MsoNormal&gt;This means that the VPN access is now protected by a 4 digit
PIN and 6 digit token code (combined also called a passcode). The token code
will change every 60 seconds. However, because of time drifting, the window of
opportunity for token codes is actually three minutes. That means that we need
to crack the token code within 180 seconds.&lt;/p&gt;

&lt;p class=MsoNormal&gt;If we assume the VPN server has a 100Mbit connection to the
internet, we are able to try out approximately 2.3 million password
combinations per minute. The token code represents 999.999 combinations. We can
therefore try about 6 PINs per window (three minutes). With 9999 PIN codes this
will take less than four days to complete. After that time we will be in possession
of the PIN code of the user&#8217;s token as well as the group name and group password.
We will still need to try up to 999.999 passcodes every time we wish to log on
but this can be done within a minute (a mitigating factor here is that the RSA
server can be set up to deny this sort of brute force attack). &lt;/p&gt;


&lt;p class=MsoNormal&gt;It should be noted that this attack works on other systems
than the Cisco Concentrator and that if authentication is based solely on
usernames and passwords, what you are cracking and enumerating is not just
group names and passwords, but actual end user names and passwords. &lt;/p&gt;

&lt;p class=MsoNormal&gt;&amp;nbsp;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Nothing new &#8211; but as a pen tester, it is worth taking a shot
at the VPN boxes out there. It seems that at least Cisco hasn&#8217;t been doing
everything in their power to push these patches out to customers :)&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;


</description>
      <pubDate>Mon, 18 Sep 2006 01:31:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:a3f7fdf1-3608-4760-b265-169b11bfad6d</guid>
      <author>soren@maigaard.com (S&#248;ren Maigaard)</author>
      <link>http://blog.clearnetsec.com/articles/2006/09/18/cisco-vpn-group-name-and-password-testing</link>
      <category>ClearNet Security</category>
      <category>Soren Maigaard</category>
      <category>Cisco</category>
      <category>VPN</category>
      <category>Penetration Testing</category>
    </item>
  </channel>
</rss>
