Lucene search
K

ATutor 2.2 PHP Code Injection Vulnerability

🗓️ 05 Nov 2015 00:00:00Reported by EgiXType 
zdt
 zdt
🔗 0day.today👁 24 Views

ATutor 2.2 PHP Code Injection Vulnerability in edit_marks.ph

Related
Code
ReporterTitlePublishedViews
Family
CNVD
ATutor PHP Code Injection Vulnerability
18 Nov 201500:00
cnvd
CVE
CVE-2015-7712
16 Nov 201519:00
cve
Cvelist
CVE-2015-7712
16 Nov 201519:00
cvelist
EUVD
EUVD-2015-7613
7 Oct 202500:30
euvd
NVD
CVE-2015-7712
16 Nov 201519:59
nvd
Packet Storm
ATutor 2.2 PHP Code Injection
4 Nov 201500:00
packetstorm
Prion
Sql injection
16 Nov 201519:59
prion
---------------------------------------------------------------
ATutor <= 2.2 (edit_marks.php) PHP Code Injection Vulnerability
---------------------------------------------------------------


[-] Software Link:

http://www.atutor.ca/


[-] Affected Versions:

Version 2.2 and prior versions.   


[-] Vulnerability Description:

The vulnerable code is located in the /mods/_standard/gradebook/edit_marks.php script:

54.  if (isset($_GET['asc']))
55.  {
56.      $order = 'asc';
57.      $order_col = $addslashes($_GET['asc']);
58.  }
59.  else if (isset($_GET['desc'])) {
60.      $order = 'desc';
61.      $order_col = $addslashes($_GET['desc']);

[...]

185.  if ((isset($_GET["asc"]) || isset($_GET["desc"])) && $order_col <> "name")
186.  {
187.      $sort = '$grades['.$order_col.'], SORT_'.strtoupper($order).', $selected_students ...
188.  
189.      foreach($selected_tests as $test)
190.      {
191.          if ($test["gradebook_test_id"] <> $order_col)
192.              $sort .= ', $grades['.$test["gradebook_test_id"].'], SORT_'.strtoupper($order);
193.      }
194.      $sort='array_multisort('.$sort.');';
195.      eval($sort);
196.  }

User input passed through the "asc" or "desc" GET parameters is not properly sanitized before being used in a
call to the "eval()" function at line 195. This can be exploited to inject and execute arbitrary PHP code.
Successful exploitation of this vulnerability requires an account with the "AT_PRIV_GRADEBOOK" privilege.


[-] Solution:

No official solution is currently available.


[-] Disclosure Timeline:

[06/10/2014] - Vendor notified
[09/10/2014] - Vendor response stating this issue has been added to the bug tracker and it is relatively minor
[13/10/2014] - Vendor replied saying he is not able to reproduce the issue and asked for further details
[29/10/2014] - Further exploitation details have been provided to the vendor
[11/11/2014] - Vendor replied saying he still is not able to reproduce the issue and asked for fix suggestions
[11/11/2014] - Some fix suggestions have been provided to the vendor
[30/09/2015] - CVE number requested
[05/10/2015] - CVE number assigned
[06/10/2015] - After one year still no official solution available
[04/11/2015] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2015-7712 to this vulnerability.

#  0day.today [2018-04-05]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Nov 2015 00:00Current
7.1High risk
Vulners AI Score7.1
EPSS0.00596
24