Issues (132)

Security Analysis    not enabled

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

  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.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  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.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  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.
  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.
  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.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
  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.
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  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.
  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.
  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.
  Header Injection
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.

xoops_version.php (1 issue)

Labels
Severity
1
<?php
2
### =============================================================
3
### Mastop InfoDigital - Paixão por Internet
4
### =============================================================
5
### Arquivo de Configuração do Módulo
6
### =============================================================
7
### Developer: Fernando Santos (topet05), [email protected]
8
### Copyright: Mastop InfoDigital © 2003-2007
9
### -------------------------------------------------------------
10
### www.mastop.com.br
11
### =============================================================
12
###
13
### =============================================================
14
15
require_once __DIR__ . '/preloads/autoloader.php';
16
17
$moduleDirName      = basename(__DIR__);
18
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
19
20
require_once XOOPS_ROOT_PATH . '/modules/' . MGO_MOD_DIR . '/include/funcoes.inc.php';
21
22
// Dados do Módulo
23
$modversion['version']             = '1.10';
24
$modversion['module_status']       = 'Beta 1';
25
$modversion['release_date']        = '2019/06/09';
26
$modversion['name']                = MGO_MOD_NOME;
27
$modversion['author']              = 'Fernando Santos (aka topet05)';
28
$modversion['description']         = MGO_MOD_DESC;
29
$modversion['credits']             = 'Mastop InfoDigital - www.mastop.com.br';
30
$modversion['help']                = 'page=help';
31
$modversion['license']             = 'GNU GPL 2.0';
32
$modversion['license_url']         = 'www.gnu.org/licenses/gpl-2.0.html/';
33
$modversion['official']            = 0; //1 indicates supported by XOOPS Dev Team, 0 means 3rd party supported
34
$modversion['image']               = 'assets/images/logoModule.png';
35
$modversion['dirname']             = basename(__DIR__);
36
$modversion['modicons16']          = 'assets/images/icons/16';
37
$modversion['modicons32']          = 'assets/images/icons/32';
38
$modversion['module_website_url']  = 'www.xoops.org/';
39
$modversion['module_website_name'] = 'XOOPS';
40
$modversion['min_php']             = '5.5';
41
$modversion['min_xoops']           = '2.5.10';
42
$modversion['min_admin']           = '1.2';
43
$modversion['min_db']              = ['mysql' => '5.5'];
44
45
// Set to 1 if you want to display menu generated by system module
46
$modversion['system_menu'] = 1;
47
48
// Arquivo Sql (Deve conter o dump de todas as tabelas do módulo)
49
// Todas as tabelas devem estar sem o prefixo!
50
$modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
51
//$modversion['sqlfile']['postgresql'] = "sql/pgsql.sql";
52
53
// Tabelas criadas pelo Arquivo sql (sem prefixo poha!)
54
$modversion['tables'][0] = MGO_MOD_TABELA0;
55
$modversion['tables'][1] = MGO_MOD_TABELA1;
56
57
// Itens da Administração
58
$modversion['hasAdmin']   = 1;
59
$modversion['adminindex'] = 'admin/index.php';
60
$modversion['adminmenu']  = 'admin/menu.php';
61
62
$modversion['blocks'][1]['file']        = MGO_MOD_BLOCO1_FILE;
63
$modversion['blocks'][1]['name']        = MGO_MOD_BLOCO1;
64
$modversion['blocks'][1]['description'] = MGO_MOD_BLOCO1_DESC;
65
$modversion['blocks'][1]['show_func']   = MGO_MOD_BLOCO1_SHOW;
66
$modversion['blocks'][1]['edit_func']   = MGO_MOD_BLOCO1_EDIT;
67
$modversion['blocks'][1]['options']     = '0|200|1|1|6|333333|FFFFFF|50';
68
$modversion['blocks'][1]['template']    = MGO_MOD_BLOCO1_TEMPLATE;
69
70
// ------------------- Help files ------------------- //
71
$modversion['helpsection'] = [
72
    ['name' => MI_MGO_OVERVIEW, 'link' => 'page=help'],
73
    ['name' => MI_MGO_DISCLAIMER, 'link' => 'page=disclaimer'],
74
    ['name' => MI_MGO_LICENSE, 'link' => 'page=license'],
75
    ['name' => MI_MGO_SUPPORT, 'link' => 'page=support'],
76
];
77
78
// Menu
79
$modversion['hasMain'] = 1;
80
81
// Busca
82
$modversion['hasSearch'] = 0;
83
84
// Configurações (Para as preferências do módulo)
85
$imgcatHandler                          = xoops_getHandler('imagecategory');
86
$catlist                                = array_flip($imgcatHandler->getList([], 'imgcat_read', 1));
0 ignored issues
show
The method getList() does not exist on XoopsObjectHandler. It seems like you code against a sub-type of XoopsObjectHandler such as XoopsModuleHandler or XoopsImageHandler or XoopsRankHandler or XoopsCommentHandler or XoopsTplsetHandler or XoopsAvatarHandler or XoopsBlockHandler or XoopsImagesetHandler or XoopsPersistableObjectHandler or XoopsImagecategoryHandler. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

86
$catlist                                = array_flip($imgcatHandler->/** @scrutinizer ignore-call */ getList([], 'imgcat_read', 1));
Loading history...
87
88
$modversion['config'][] = [
89
    'name'        => 'mgo_des_img',
90
    'title'       => 'MGO_MOD_DSTAC_IMG',
91
    'description' => 'MGO_MOD_DSTAC_IMG_DES',
92
    'formtype'    => 'select_multi',
93
    'valuetype'   => 'array',
94
    'options'     => $catlist,
95
];
96
/**
97
 * Make Sample button visible?
98
 */
99
$modversion['config'][] = [
100
    'name'        => 'displaySampleButton',
101
    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON',
102
    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC',
103
    'formtype'    => 'yesno',
104
    'valuetype'   => 'int',
105
    'default'     => 1,
106
];
107
108
/**
109
 * Show Developer Tools?
110
 */
111
$modversion['config'][] = [
112
    'name'        => 'displayDeveloperTools',
113
    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS',
114
    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC',
115
    'formtype'    => 'yesno',
116
    'valuetype'   => 'int',
117
    'default'     => 0,
118
];
119