Exploit-DB #19133
Description: Cells Blog CMS 1.1 - Multiple Web Vulnerabilities
Type: webapps
Platform: php
Date: 2012-06-14
Author: Vulnerability-Lab

Exploit:
Title:
======
Cells Blog CMS v1.1 - Multiple Web Vulnerabilites


Date:
=====
2012-06-05


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=591


VL-ID:
=====
591


Common Vulnerability Scoring System:
====================================
8.3


Introduction:
=============
Cells-blog is a free but powerful mini-blog system. It can run on any web server that can excute PHP script codes.
It comes alone with the SQLite data base so you can copy and play without any installation. Any question please first 
check to the FAQ in the Cells official web site. If you still have question, you can contact with system manager or 
leave a message in our official webite www.cells.tw 

(Copy of the Vendor Homepage: http://www.cells.tw )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple different web vulnerabilites in Cells Blog v1.1 Content Management System.


Report-Timeline:
================
2012-06-05:	Public or Non-Public Disclosure


Status:
========
Published


Exploitation-Technique:
=======================
Remote


Severity:
=========
Critical


Details:
========
1.1
Multiple SQL Injection vulnerabilities  are detected in the Cells Blog v1.1 Content Management System.
The vulnerability allows an attacker (remote) or local low privileged user account to inject/execute own sql commands 
on the affected application dbms without user inter action. Successful exploitation of the vulnerability results in dbms 
& application compromise. The sql injection vulnerabilities are located in multiple files in the main menu and the bound 
parameters bgid, ptid, fmid & id ...


Vulnerable File(s):
                                     [+] adm_bgsetting.php
                                     [+] adm_editforum.php
                                     [+] adm_editpost.php
                                     [+] album.php
                                     [+] blog.php
                                     [+] fourm.php
                                     [+] func/adm_updateblog.php
                                     [+] func/adm_updateinfo.php
                                     [+] func/del_cover.php
                                     [+] func/del_msg.php
                                     [+] head.php
                                     [+] open_attach.php
                                     [+] one_blog.php
                                     [+] open_bgalbum.php
                                     [+] open_bgfourm.php
                                     [+] open_bgpics.php
                                     [+] pub_listrmsg.php
                                     [+] pub_listsmsg.php
                                     [+] pub_nlink.php
                                     [+] pub_nmsg.php
                                     [+] pub_post.php
                                     [+] pub_pubmsg.php
                                     [+] pub_readpost.php
                                     [+] pub_upload.php

Vulnerable Parameter(s):
                                     [+] bgid
                                     [+] ptid
                                     [+] fmid
                                     [+] id


1.2
Multiple persistent input validation vulnerabilities are detected in the Cells Blog v1.1 Content Management System.
The bugs allow remote attackers to implement/inject malicious script code on the application side (persistent). 
Successful exploitation of the vulnerability can lead to session hijacking (manager/admin) or stable (persistent) 
context manipulation. Exploitation requires low user inter action or low privileged application user account.
The bugs are located in the add, save & update input fields. The code is getting executed on the specific listing 
page of after adding via module. If the attacker for example include persistent script code in the album name the 
context will be executed out of the album listing page.


Vulnerable File(s):
                                     [+] func/add_album.php
                                     [+] func/add_fourm.php
                                     [+] func/add_link.php
                                     [+] func/add_mynpost.php
                                     [+] func/add_post.php
                                     [+] func/add_rpost.php
                                     [+] func/add_user.php
                                     [+] func/adm_updateinfo.php
                                     [+] func/save_post.php
                                     [+] func/update_myinfo.php
                                     [+] func/update_post.php


Proof of Concept:
=================
1.1
Multiple SQL Injection vulnerabilities  are detected in the Cells Blog v1.1 Content Management System.
The vulnerability allows an attacker (remote) or local low privileged user account to inject/execute own sql commands 
on the affected application dbms without user inter action. Successful exploitation of the vulnerability results in dbms 
& application compromise. The sql injection vulnerabilities are located in multiple files in the main menu and the bound 
parameters bgid, ptid, fmid & id ...


1.1
The sql injection vulnerability can be exploited by remote attackers without user inter action. For demonstration or reproduce ...

PoC:
http://127.0.0.1:1338/cells/fourm.php?bgid=-1 union select [SQL-INJECTION]--
http://127.0.0.1:1338/cells/fourm.php?bgid=1&fmid=-1 union select [SQL-INJECTION]--
http://127.0.0.1:1338/cells/pub_readpost.php?bgid=1&ptid=-1 union select [SQL-INJECTION]--
http://127.0.0.1:1338/cells/pub_readpost.php?bgid=-1 union select [SQL-INJECTION]--
http://127.0.0.1:1338/cells/pub_nmsg.php?report=pst&bgid=1&fmid=8&ptid=-1 union select [SQL-INJECTION]--
http://127.0.0.1:1338/cells/pub_openpic.php?fnid=10&bgid=