Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:26895
HistoryAug 27, 2011 - 12:00 a.m.

Jcow CMS 4.x:4.2 <= , 5.x:5.2 <= | Arbitrary Code Execution

2011-08-2700:00:00
vulners.com
81

Jcow CMS 4.x:4.2 <= , 5.x:5.2 <= | Arbitrary Code Execution

  1. OVERVIEW

Jcow CMS versions (4.x: 4.2 and lower, 5.x: 5.2 and lower) are
vulnerable to Arbitrary Code Execution.

  1. BACKGROUND

Jcow is a flexible Social Networking software written in PHP. It can
help you to build a social network for your interests and passions, a
member community for your existing website and a social networking
site like facebook/myspace/twitter.

  1. VULNERABILITY DESCRIPTION

The parameter "attachment" is not properly sanitized upon submission
to /index.php, which allows attacker to execute arbitrary PHP code of
his own.

  1. VERSIONS AFFECTED

Free version: 4.x: 4.2 and lower
Commercial version: 5.x: 5.2 and lower

  1. PROOF-OF-CONCEPT/EXPLOIT

http://dev.metasploit.com/redmine/attachments/1660/jcow_eval.rb

jcow 4.2.1:
file: /includes/libs/ss.inc.php
line: 167

    $app = $_POST[&#39;attachment&#39;];
if &#40;strlen&#40;$app&#41; &amp;&amp; $app != &#39;status&#39;&#41; {
    include_once&#40;&#39;modules/&#39;.$app.&#39;/&#39;.$app.&#39;.php&#39;&#41;;
    $c_run = $app.&#39;::ajax_post&#40;&#41;;&#39;;
    eval&#40;$c_run&#41;;
    exit;
}

jcow 5.2.0:
file: /includes/libs/ss.inc.php
line: 45

$Vd2a57dc1 = $_POST['attachment']; if (strlen($Vd2a57dc1) &&
$Vd2a57dc1 != 'status') {
include_once('modules/'.$Vd2a57dc1.'/'.$Vd2a57dc1.'.php'); $Ve8200cee
= $Vd2a57dc1.'::ajax_post();';
eval($Ve8200cee); exit; }

  1. SOLUTION

Free version users can upgrade to 4.3.1 or higher.
Commercial users can upgrade to 5.3 or higher.

  1. VENDOR

Jcow CMS Development Team
http://www.jcow.net

  1. CREDIT

This vulnerability was discovered by Aung Khant, http://yehg.net, YGN
Ethical Hacker Group, Myanmar.

  1. DISCLOSURE TIME-LINE

2010-06-03: notified vendor
2010-06-03: vendor replied fix would be available within 48hrs
2011-08-24: vendor released fixed versions for 4.x and 5.x,
4.3.1 for free release
5.3 for commercial release
2011-08-26: vulnerability disclosed

  1. REFERENCES

Original Advisory URL:
http://yehg.net/lab/pr0js/advisories/[jcow_4.2,5.2]_arbitrary_code_execution
Jcow CMS: http://sourceforge.net/projects/jcow/files/jcow4/jcow.4.2.1.zip/download

#yehg [2011-08-26]


Best regards,
YGN Ethical Hacker Group
Yangon, Myanmar
http://yehg.net
Our Lab | http://yehg.net/lab
Our Directory | http://yehg.net/hwd