Joomla! JomSocial component < - Remote code execution

From: Matias Fontanini <>
Subject: Joomla! JomSocial component < - Remote code execution


Joomla! JomSocial component < - Remote code execution

== Description ==
- Software link:
- Affected versions: All versions >= 2.6 and < are vulnerable.
- Vulnerability discovered by: Matias Fontanini and Gaston Traberg

== Vulnerability ==
The vulnerability is located in the "photos" controller,
"ajaxUploadAvatar" task. The parameters parsed by the "Azrul" plugin are
not properly sanitized before being used in a call to the
"call_user_func_array" PHP function. This allows an attacker to execute
arbitrary static class functions, using any amount of user-provided
parameters. This can be leveraged by calling the "escape" method in the
"CStringHelper" class to execute arbitrary PHP code.

In order to exploit the vulnerability, no authentication is required.

== Proof of concept ==
See the attached python script which allows executing arbitrary code on
a Jommla! application which has the JomSocial component installed.

== Solution ==
Upgrade the product to the version.

== Report timeline ==
[2013-12-12] Vulnerability reported to vendor.
[2013-12-12] Developers answered back.
[2013-12-23] JomSocial was released, which fixes the the
reported issue.
[2014-01-30] Public disclosure.

Copyright © 1995-2018 All rights reserved.