[Fixed 1.6.4 patch] Dokeos 1.6.4 SQL Injection Vulnerability

Dokeos 1.6.x is no longer the latest version. Please use Dokeos 1.8

Moderator: jprudhomme

[Fixed 1.6.4 patch] Dokeos 1.6.4 SQL Injection Vulnerability

Postby QuEsT » Tue Apr 11, 2006 3:24 am

Dokeos 1.6.4 SQL Injection Vulnerability


Author: Alvaro Olavarria - aolavarria at secure.cl

Affected: Dokeos <= 1.6.4
Status: Notified hereby
Vendor url: http://www.dokeos.com


Vulnerability.

Dokeos was built using Claroline's code; it inherited several of its features including an old version
 of phpBB which is being used as the forum for the courses.   There is a problem  in the “viewtopic.php",
 where the $topic variable is not correctly sanitized and $forumview is equal to “threaded", that would
allow an attacker to inject arbitrary code to the application.


Impact

An attacker could use Blind SQL Injection to gain access to privileged data like the password hashes
for the administrator user and so on.


Proof of Concept

http://localhost/claroline/phpbb/viewto ... ed&topic=1[blind_sql_inject]


Greetings

Rodrigo Guitierrez -  rodrigo at secure.cl
University of Los Lagos in Chile "for lending the required equipment for testing" >:D

http://lists.grok.org.uk/pipermail/full ... 44995.html

<strong>note by admin: Use the file attached to close the sql injection hole</strong>
QuEsT
 
Posts: 2
Joined: Tue Apr 11, 2006 3:19 am

Postby Hugues » Tue Apr 11, 2006 10:49 am

Dokeos was built using Claroline's code; it inherited several of its features including an old version of phpBB which is being used as the forum for the courses.
Claroline <strong>1.7</strong> is NOT concerned by this security hole. And the problem has already been fixed in Claroline <strong>1.6</strong> (see last 1.6.* version available in the<a href="http://www.claroline.net/download.htm"> download section of the Claroline web site</a>).

Concerning Dokeos, you'll find attached to this message the patch fixing the security hole discovered by Rodrigo Guitierrez.

Hugues Peeters
<small><strong>Claroline</strong> - Open Source e-learning - <a href="http://www.claroline.net">http://www.claroline.net</a></small>
Hugues
 
Posts: 516
Joined: Tue Apr 16, 2002 1:00 am
Location: Belgium

Postby pcool » Tue Apr 11, 2006 10:54 am

indeed, and I'm afraid there are a lot of holes for sql injection in the version of phpbb that is used by dokeos.
For dokeos 1.8 there is a completely new forum that has (hopefully) less holes
pcool
 
Posts: 3039
Joined: Mon Jun 23, 2003 2:08 pm
Location: Ghent University

Postby pcool » Tue Apr 11, 2006 10:56 am

Thanks Hugues !!!
pcool
 
Posts: 3039
Joined: Mon Jun 23, 2003 2:08 pm
Location: Ghent University

Postby QuEsT » Tue Apr 11, 2006 11:24 pm

Hugues wrote:Concerning Dokeos, you'll find attached to this message the patch fixing the security hole discovered by Rodrigo Guitierrez.

...sorry, but that was discovered by Alvaro Olavarria...

pcool wrote:I'm afraid there are a lot of holes for sql injection in the version of phpbb that is used by dokeos.

...it's true and very possible...

pcool wrote:For dokeos 1.8 there is a completely new forum that has (hopefully) less holes

... really, that is the best solution... it does not have sense to continue working that old and disordered code mainly.

Good Luck with Dokeos 1.8!

<em>Note: Very fast patched.. congratulations.</em>
QuEsT
 
Posts: 2
Joined: Tue Apr 11, 2006 3:19 am

Postby digibyte » Wed Apr 12, 2006 3:29 pm

Where could I download the patch?
Or what CVS command should I use to get this?
digibyte
 
Posts: 33
Joined: Tue Apr 11, 2006 9:51 am

Postby pcool » Wed Apr 12, 2006 3:40 pm

the patch for dokeos 1.6.4 will be released this evening
pcool
 
Posts: 3039
Joined: Mon Jun 23, 2003 2:08 pm
Location: Ghent University

Postby roan » Wed Apr 12, 2006 3:43 pm

Using cvs commands: normally this is possible, but anonymous cvs is currently not updated on SourceForge - they had a big server problem a week ago and are still recovering. Developer cvs access works again, but anonymous access will come later.

There is a new <em>Dokeos community release 2.0.4</em> that contains a patch:
<a href="http://prdownloads.sourceforge.net/dokeos/dokeos-community-204.tar.gz?download">Dokeos community release 2.0.4 (tar.gz)</a>
<a href="http://prdownloads.sourceforge.net/dokeos/dokeos-community-204.zip?download">Dokeos community release 2.0.4 (zip)</a>
<a href="http://www.dokeos.com/wiki/index.php/Dokeos_community_2.0.4_release_notes">Release notes</a>

A new version or patch for Dokeos 1.6.x will probably be released tonight
roan
 
Posts: 2192
Joined: Wed Dec 11, 2002 10:37 am
Location: Free University of Brussels, Belgium

Postby pcool » Wed Apr 12, 2006 3:47 pm

Here is the file that will be in the patch

Just overwrite the file on your campus with this one if you have not made any changes in this file.
This will close the sql injection hole.
pcool
 
Posts: 3039
Joined: Mon Jun 23, 2003 2:08 pm
Location: Ghent University

Postby digibyte » Wed Apr 12, 2006 4:14 pm

thanks for the quick reply
digibyte
 
Posts: 33
Joined: Tue Apr 11, 2006 9:51 am

Postby domifreitas » Wed Apr 12, 2006 5:38 pm

Something seems to be wrong with the file provided. After upgrading, when trying to view a topic, I get that file 'viewtopic.php' edited, not the topic...
domifreitas
 
Posts: 602
Joined: Mon Oct 18, 2004 10:00 pm
Location: Portugal

Postby Thomas » Wed Apr 12, 2006 5:42 pm

you should rename it viewtopic.php instead of phps
Thomas
 
Posts: 2172
Joined: Tue Mar 12, 2002 1:00 am
Location: Belgium

Postby domifreitas » Wed Apr 12, 2006 5:43 pm

I did.
Someone else has the same problem?

EDIT: it was a problem with FireFox and its download. I got the file in another way. Thanks.
domifreitas
 
Posts: 602
Joined: Mon Oct 18, 2004 10:00 pm
Location: Portugal

Postby misterlu » Wed Apr 19, 2006 9:48 am

It's possible to post in this topic, where is the sql injection and the correction (only the line needed for remove them) please ?

Thanks in advance :-)
misterlu
 
Posts: 8
Joined: Wed Sep 22, 2004 12:41 pm


Return to Bugs Dokeos 1.6.x

Who is online

Users browsing this forum: No registered users and 0 guests