Issues (379)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

language/english/admin.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
// $Id: admin.php,v 1.9 2007/03/24 20:09:11 marcellobrandao Exp $
3
//  ------------------------------------------------------------------------ //
4
//                XOOPS - PHP Content Management System                      //
5
//                    Copyright (c) 2000 XOOPS.org                           //
6
//                       <http://www.xoops.org/>                             //
7
//  ------------------------------------------------------------------------ //
8
//  This program is free software; you can redistribute it and/or modify     //
9
//  it under the terms of the GNU General Public License as published by     //
10
//  the Free Software Foundation; either version 2 of the License, or        //
11
//  (at your option) any later version.                                      //
12
//                                                                           //
13
//  You may not change or alter any portion of this comment or credits       //
14
//  of supporting developers from this source code or any supporting         //
15
//  source code which is considered copyrighted (c) material of the          //
16
//  original comment or credit authors.                                      //
17
//                                                                           //
18
//  This program is distributed in the hope that it will be useful,          //
19
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
20
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
21
//  GNU General Public License for more details.                             //
22
//                                                                           //
23
//  You should have received a copy of the GNU General Public License        //
24
//  along with this program; if not, write to the Free Software              //
25
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26
//  ------------------------------------------------------------------------ //
27
//index.php
28
29
//define("_AM_ASSESSMENT_CONGRATULATIONS", "Congratulations your test has been successfully saved");
0 ignored issues
show
Unused Code Comprehensibility introduced by
75% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
30
31
//excluirprova.php
32
define('_AM_ASSESSMENT_CONFIRMAEXCLUSAOPROVAS', "Deleting this exam you will also be deleting:
33
       :<br /><br />Its questions<br />The answers of those questions<br />
34
       The documents which show up before the questions<br />The results of the students who had already done the exam<br /><br />Are you sure that's what you want to do?<br />");
35
36
define('_AM_ASSESSMENT_SIMCONFIRMAEXCLUSAOPROVAS', 'Ok I understood that I will delete more than a single exam and yes I AM SURE');
37
define('_AM_ASSESSMENT_PERGUNTASAPAGADAS', 'question(s) deleted');
38
define('_AM_ASSESSMENT_RESPDAPERG', 'Answers of question %s deleted');
39
define('_AM_ASSESSMENT_RESULTAPAGADOS', 'result(s) deleted');
40
define('_AM_ASSESSMENT_DOCUMENTOSPAGADOS', 'document(s) deleted');
41
42
//index.php
43
define('_AM_ASSESSMENT_REQUERIMENTOS', "You need to install these packages in order to make this module work properly:<br /><br />
44
   <a href='http://dev.xoops.org/modules/xfmod/project/showfiles.php?group_id=1357'>
45
   Frameworks v 1.1 or newer</a><br />
46
   <br />
47
   <a href='http://dev.xoops.org/modules/xfmod/project/showfiles.php?group_id=1155'>
48
   Xoops editor 1.10 or newer</a><br />");
49
define('_AM_ASSESSMENT_SEMPROVAS', 'No exams have been submitted, yet');
50
define('_AM_ASSESSMENT_EDITARPROVAS', 'Edit exams');
51
define('_AM_ASSESSMENT_EXCLUIRPROVAS', 'Delete exams');
52
define('_AM_ASSESSMENT_VERRESULT', 'View results');
53
define('_AM_ASSESSMENT_LISTAPROVAS', 'Exams list:');
54
define('_AM_ASSESSMENT_PERGUNTA', 'Question:');
55
define('_AM_ASSESSMENT_RESPCERTA', 'Right answer');
56
define('_AM_ASSESSMENT_RESPUSR', "Student's answer");
57
define('_AM_ASSESSMENT_SEMRESULT', 'No result submitted yet');
58
define('_AM_ASSESSMENT_QTDRESULT', 'Number of results');
59
define('_AM_ASSESSMENT_NOTAMAX', ' Best mark:');
60
define('_AM_ASSESSMENT_NOTAMIN', ' Worst mark:');
61
define('_AM_ASSESSMENT_MEDIA', ' Mean:');
62
define('_AM_ASSESSMENT_LISTARESULTADOS', 'Results list:');
63
define('_AM_ASSESSMENT_PROVAANDAMENTO', 'Exam still going on');
64
define('_AM_ASSESSMENT_TERMINADA', 'Exam finished');
65
define('_AM_ASSESSMENT_NOMEALUNO', 'Name of the student:');
66
define('_AM_ASSESSMENT_DATA', 'Date:');
67
define('_AM_ASSESSMENT_CODPROVA', "Exam's id:");
68
define('_AM_ASSESSMENT_STATS', 'Stats:');
69
define('_AM_ASSESSMENT_LISTAPERGASSOC', 'List of questions associated to this exam:');
70
define('_AM_ASSESSMENT_SEMPERGUNTA', 'No questions submitted to this exam yet');
71
define('_AM_ASSESSMENT_EDITARPERGUNTAS', 'Edit questions');
72
define('_AM_ASSESSMENT_EXCLUIRPERGUNTAS', 'Delete questions');
73
define('_AM_ASSESSMENT_SEMDOCUMENTO', 'No documents submitted to this exam yet ');
74
define('_AM_ASSESSMENT_LISTADOC', "Document's List:");
75
define('_AM_ASSESSMENT_EDITARDOC', 'Edit Document');
76
define('_AM_ASSESSMENT_EXCLUIRDOC', 'Delete document');
77
define('_AM_ASSESSMENT_INSTRUCOESNOVODOC', "To submit a new document go to the exam tab and select 'edit exam'");
78
define('_AM_ASSESSMENT_PROVA', 'Exam');
79
define('_AM_ASSESSMENT_DOCUMENTO', 'Document');
80
define('_AM_ASSESSMENT_RESULTADO', 'Result');
81
define('_AM_ASSESSMENT_RESULTPROVA', 'Result per exam');
82
define('_AM_ASSESSMENT_RESPALUNO', "Student's answer");
83
define('_AM_ASSESSMENT_EDITAR', 'Edit');
84
define('_AM_ASSESSMENT_CADASTRAR', 'Submit');
85
define('_AM_ASSESSMENT_ACERTOU', 'Right: ');
86
define('_AM_ASSESSMENT_ERROU', 'Wrong:');
87
define('_AM_ASSESSMENT_SEMREPONDER', 'Blank:');
88
define('_AM_ASSESSMENT_DEUMTOTALDE', 'out of a total of');
89
define('_AM_ASSESSMENT_PERGUNTAS', 'questions');
90
91
//assessment_documentos.php
92
define('_AM_ASSESSMENT_PERGASSOC', 'Associated questions');
93
define('_AM_ASSESSMENT_TITULO', 'Title');
94
define('_AM_ASSESSMENT_FONTE', 'Source');
95
96
//assessment_perguntas.php
97
define('_AM_ASSESSMENT_RESPOSTA', 'Answer');
98
define('_AM_ASSESSMENT_RESPCORRETA', 'Right answer');
99
define('_AM_ASSESSMENT_SALVARALTERACOES', 'Save changes');
100
101
//assessment_provas.php
102
define('_AM_ASSESSMENT_DESCRICAO', 'Description');
103
define('_AM_ASSESSMENT_INSTRUCOES', 'Instructions');
104
define('_AM_ASSESSMENT_TEMPO', 'Time in seconds');
105
define('_AM_ASSESSMENT_GRUPOSACESSO', 'Groups with access');
106
define('_AM_ASSESSMENT_DATA_INICIO', 'Availability date');
107
define('_AM_ASSESSMENT_DATA_FIM', 'Unavailability date');
108
109
//assessment_resultados
110
define('_AM_ASSESSMENT_PERGDETALHES', 'Click on the ID of the question to see more details');
111
define('_AM_ASSESSMENT_RESPCERTAS', 'Right answers');
112
define('_AM_ASSESSMENT_RESPERR', 'Wrong answers');
113
define('_AM_ASSESSMENT_SUGESTNOTA', 'Grade suggestion');
114
define('_AM_ASSESSMENT_NOTAFINAL', 'Final grade');
115
define('_AM_ASSESSMENT_NIVEL', 'Level');
116
define('_AM_ASSESSMENT_OBS', 'Observations');
117
118
//cadastro_prova.php
119
define('_AM_ASSESSMENT_DATAINICIOMAIORQFIM', 'Unavailability date has been set to a date before the availability date');
120
//geral
121
define('_AM_ASSESSMENT_SUCESSO', 'Action succeed');
122
define('_AM_ASSESSMENT_TOKENEXPIRED', 'Your token has expired , try it again');
123
define('_AM_ASSESSMENT_ORDEM', 'Order');
124
125
//clone.php
126
define('_AM_ASSESSMENT_CLONE', '[Clone] ');
127
128
define('_AM_ASSESSMENT_DAYS_PER_MONTH', (((365 * 3) + 366) / 4) / 12);
129