exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ATutor 2.2 PHP Code Injection

ATutor 2.2 PHP Code Injection
Posted Nov 4, 2015
Authored by EgiX

ATutor versions 2.2 and below suffer from a remote php code injection vulnerability.

tags | exploit, remote, php
advisories | CVE-2015-7712
SHA-256 | d68f51a39b755fe477331334371a85a9867f5564885f7740eefbf41a2c9a3341

ATutor 2.2 PHP Code Injection

Change Mirror Download
---------------------------------------------------------------
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.


[-] Credits:

Vulnerability discovered by Egidio Romano.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2015-08


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close