# Description
"Take your office online with Group-Office groupware. Share projects,
calendars, files and e-mail online with co-workers and clients. Easy
to use and fully customizable, Group-Office takes online collaboration
to the next level."
# Credit
Vulnerability founded by Canberk BOLAT
- Mail: security[AT]adeo.com.tr
- Web: http://security.adeo.com.tr , http://adeosecuritylabs.com
# Vulnerability
Remote attacker can inject sql codes to the system that host target
web application. Its high level vulnerability.
In json.php 'get_comment' method called with value of HTTP Request
that's name 'comment_id'. In the 'get_comment' method, variable
'$comment_id' inserted to sql query and executed by application.
modules/comments/classes/comments.class.inc.php:
function get_comment($comment_id)
{
$this->query("SELECT * FROM co_comments WHERE id=".$this->escape($comment_id));
...
'escape' method can't prevent because attacker don't need single
quotes for successful exploitation.