Total Tests:
Stay in Touch

Get exclusive updates and invitations to our events and webinars:


Your data will stay confidential Private and Confidential

Multiple Vulnerabilities in CompuCMS

Advisory ID:HTB22580
Product:CompuCMS
Vendor:CompuSoft A/S
Vulnerable Versions:Current on 06.08.2010 and probably prior
Tested Version:Current on 06.08.2010
Advisory Publication:August 9, 2010 [without technical details]
Vendor Notification:August 9, 2010
Public Disclosure:August 23, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
SQL Injection [CWE-89]
Risk Level:High
CVSSv2 Base Scores:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities CompuCMS, which could be exploited to perform cross-site scripting and SQL Injection attacks.

1) Cross-site scripting (XSS) vulnerabilities in CompuCMS

1.1 The vulnerability exists due to input sanitation error in the "sprog" parameter in index.asp. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
http://host/index.asp?mode=for!forside!gb&sprog=gb'"><script>alert(document. cookie)</script>

1.2 The vulnerability exists due to input sanitation error in the "site", "Dir" and "mode" parameters in /_CompuCMS/_CMS_output/_viskarrusel.inc.asp. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation examples:
http://host/_CompuCMS/_CMS_output/_viskarrusel.inc.asp?mode=alm!udflugtsmaal !dk&vispic=2138&Dir=&site=demo%27%22%3E%3Cscript%3Ealert%28document.cookie%2 9%3C/script%3Ed&NoElementNum=0&NoFirstElement
http://host/_CompuCMS/_CMS_ou tput/_viskarrusel.inc.asp?mode=alm!udflugtsmaal!dk&vispic=2138&Dir=%27%22%3E %3Cscript%3Ealert%28document.cookie%29%3C/script%3E%3C&site=demo&NoElementNu m=0&NoFirstElement
http://host/_CompuCMS/_CMS_output/_viskarrusel.inc.asp?m ode=alm!udflugtsmaal!dk%27%22%3E%3Cscript%3Ealert%28document.cookie%29%3C/sc ript%3E%3C&vispic=2138&Dir=&site=demo&NoElementNum=0&NoFirstElement


1.3 The vulnerability exists due to input sanitation error in the "billede" parameter in /_CompuCMS/_CMS_output/_visbillede.asp. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
http://host/_CompuCMS/_CMS_output/_visbillede.asp?billede=1.jpg&tekst=%3Cscr ipt%3Ealert%28document.cookie%29%3C/script%3E
http://host/_CompuCMS/_CMS_ output/_visbillede.asp?billede=1.jpg%27%22%3E%3Cscript%3Ealert%28document.co okie%29%3C/script%3E&tekst=


2) SQL injection vulnerabilities in CompuCMS
2.1 The vulnerability exists due to input sanitation error in the "sogeord" and "visid" parameters in index.asp. A remote attacker can send a specially crafted HTTP GET request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation examples:
http://host/index.asp?mode=visresultat&sogeord=%27+ANY_SQL_CODE
http://host/demo/index.asp?mode=nyh!forside~1220010667!dk&visid=383%27+ANY_S QL_CODE

2.2 The vulnerability exists due to input sanitation error in the "vispic" parameter in /_CompuCMS/_CMS_output/_viskarrusel.inc.asp. A remote attacker can send a specially crafted HTTP GET request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation example:
http://host/_CompuCMS/_CMS_output/_viskarrusel.inc.asp?mode=alm!udflugtsmaal !dk&vispic=2138+ANY_SQL_CODE&Dir=www.compucms.dk/demo/&site=demo&NoElementNu m=0&NoFirstElement

2.3 The vulnerability exists due to input sanitation error in the login field in /demo/inc/_login.asp. A remote attacker can send a specially crafted HTTP GET request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation example:
Add this value
' ANY_SQL_CODE
in login form at http://host/demo/inc/_login.asp.

How to Detect Cross-Site Scripting Vulnerabilities
Website Security Test
  • GDPR & PCI DSS Test
  • Website CMS Security Test
  • CSP & HTTP Headers Check
  • WordPress & Drupal Scanning
Try For Free

Solution:
Currently we are not aware of any vendor-supplied patches or other solutions. The vendor was contacted in accordance to our Vendor Notification Policy but we didn't get any answer or feedback.


References:
[1] High-Tech Bridge Advisory HTB22580 - https://www.immuniweb.com/advisory/HTB22580 - Multiple vulnerabilities in CompuCMS
[2] CompuCMS - compusoft.dk - CompuCMS is a webbased simple, yet effective CMS system, aimed at websites that need freedom of design.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Book a Call Ask a Question
Close
Talk to ImmuniWeb Experts
ImmuniWeb AI Platform
Have a Technical Question?

Our security experts will answer within
one business day. No obligations.

Have a Sales Question?
Email:
Tel: +41 22 560 6800 (Switzerland)
Tel: +1 720 605 9147 (USA)
*
*
*
*
Your data will stay private and confidential