This file is indexed.

/usr/share/moodle/mod/assignment/type/wims/getsheetsource.php is in wims-moodle 4.0-18.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?php  // $Id: getsheetsource.php,v 1.1.1.1 2009-04-04 14:19:23 georgesk Exp $
/**
* @author Georges Khaznadar
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package wims
*
*
*/

$f=fopen($_GET['url'],"r");
$lines=explode("\n",fread($f,32*1024));
header("Content-Encoding: iso-8859-1");
header("Content-Type: text/plain");
foreach($lines as $l){
  print ("$l\n");
}

?>