<?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>Babel on Untrusted Network</title>
    <link>https://untrustednetwork.net/en/tag/babel/</link>
    <description>Recent content in Babel on Untrusted Network</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>&amp;copy; Jan Kopriva 2015 - {year}</copyright>
    <lastBuildDate>Sat, 02 Mar 2019 12:35:00 +0100</lastBuildDate>
    <sy:updatePeriod>weekly</sy:updatePeriod>
    <sy:updateFrequency>weekly</sy:updateFrequency>
    
        <atom:link href="https://untrustednetwork.net/en/tag/babel/index.xml" rel="self" type="application/rss+xml" />
    
    
    

      
      <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>
      

    
  </channel>
</rss>