Local File Include in Dokeos E-Learning System 1.8.5

2008.07.31
Risk: High
Local: No
Remote: Yes
CWE: CWE-22


CVSS Base Score: 7.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

Digital Security Research Group [DSecRG] Advisory #DSECRG-08-029 Application: Dokeos E-Learning System Versions Affected: 1.8.5 Vendor URL: http://dokeos.com/ Bug: Local File Include Exploits: YES Reported: 01.07.2008 Vendor response: 05.07.2008 Solution: YES Date of Public Advisory: 17.07.2008 Authors: Digital Security Research Group [DSecRG] (research [at] dsec [dot] ru) Description *********** Dokeos E-Learning System system has local file include vulnerability in script user_portal.php Vulnerable GET parameter "include". Registered user can use this vulnerability. Code **** ################################################# if (!empty ($_GET['include']) && !strstr($_GET['include'], '/') && strstr($_GET['include'], '.html')) { include ('./home/'.$_GET['include']); $pageIncluded = true; } else .. ################################################# Example: http://[server]/[installdir]/user_portal.php?include=..\..\..\..\..\..\. .\..\..\..\..\..\..\boot.ini%00.html Fix Information *************** you can fix it following this official information http://www.dokeos.com/wiki/index.php/Security Or wait a new release Fixing this issue can be done by replacing line 770 of /user_portal.php by: if (!empty ($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/',$_GET['include'])) About ***** Digital Security is leading IT security company in Russia, providing information security consulting, audit and penetration testing services, risk analysis and ISMS-related services and certification for ISO/IEC 27001:2005 and PCI DSS standards. Digital Security Research Group focuses on web application and database security problems with vulnerability reports, advisories and whitepapers posted regularly on our website. Contact: research [at] dsec [dot] ru http://www.dsec.ru (in Russian) Regards, Digital Security Research Group [DSecRG] ________________________________________ DIGITAL SECURITY tel/fax: +7(812)703-1547 tel: +7(812)430-9130 e-mail: research (at) dsec (dot) ru [email concealed] web: www.dsec.ru ---------------------------------------- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient any use, distribution, copying or disclosure is strictly prohibited. If you have received this message in error, please notify the sender immediately either by telephone or by e-mail and delete this message and any attachment from your system. Correspondence via e-mail is for information purposes only. Digital Security neither makes nor accepts legally binding statements by e-mail unless otherwise agreed. ----------------------------------------

References:

http://www.securityfocus.com/archive/1/archive/1/494496/100/0/threaded
http://www.milw0rm.com/exploits/6149
http://www.frsirt.com/english/advisories/2008/2208/references
http://www.dokeos.com/wiki/index.php/Security


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top