Issues (62)

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.

admin/menu.php (1 issue)

Labels
Severity
1
<?php declare(strict_types=1);
2
3
/**
4
 * ****************************************************************************
5
 *  - A Project by Developers TEAM For Xoops - ( https://xoops.org )
6
 * ****************************************************************************
7
 *  XHTTPERROR - MODULE FOR XOOPS
8
 *  Copyright (c) 2007 - 2012
9
 *  Rota Lucio ( http://luciorota.altervista.org/xoops/ )
10
 *
11
 *  You may not change or alter any portion of this comment or credits
12
 *  of supporting developers from this source code or any supporting
13
 *  source code which is considered copyrighted (c) material of the
14
 *  original comment or credit authors.
15
 *
16
 *  This program is distributed in the hope that it will be useful,
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 *  GNU General Public License for more details.
20
 *  ---------------------------------------------------------------------------
21
 * @copyright  Rota Lucio ( http://luciorota.altervista.org/xoops/ )
22
 * @license    GNU General Public License v3.0
23
 * @package    xhttperror
24
 * @author     Rota Lucio ( [email protected] )
25
 *
26
 *  $Rev$:     Revision of last commit
27
 *  $Author$:  Author of last commit
28
 *  $Date$:    Date of last commit
29
 * ****************************************************************************
30
 */
31
32
use Xmf\Module\Admin;
33
use XoopsModules\Xhttperror\{
34
    Helper
35
};
36
/** @var Admin $adminObject */
37
/** @var Helper $helper */
38
39
include dirname(__DIR__) . '/preloads/autoloader.php';
40
41
$moduleDirName      = basename(dirname(__DIR__));
42
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
43
44
$helper = Helper::getInstance();
45
$helper->loadLanguage('common');
46
$helper->loadLanguage('feedback');
47
48
$pathIcon32 = Admin::menuIconPath('');
49
$pathModIcon32 = XOOPS_URL .   '/modules/' . $moduleDirName . '/assets/images/icons/32/';
50
if (is_object($helper->getModule()) && false !== $helper->getModule()->getInfo('modicons32')) {
51
    $pathModIcon32 = $helper->url($helper->getModule()->getInfo('modicons32'));
0 ignored issues
show
It seems like $helper->getModule()->getInfo('modicons32') can also be of type array; however, parameter $url of Xmf\Module\Helper\GenericHelper::url() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

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

51
    $pathModIcon32 = $helper->url(/** @scrutinizer ignore-type */ $helper->getModule()->getInfo('modicons32'));
Loading history...
52
}
53
54
$adminmenu[] = [
55
    'name'  => 'Index',
56
    'title' => _MI_XHTTPERR_ADMENU_INDEX,
57
    'link'  => 'admin/index.php',
58
    'desc'  => _MI_XHTTPERR_ADMENU_INDEX_DESC,
59
    'icon'  => $pathModIcon32 . '/house.png',
60
];
61
62
$adminmenu[] = [
63
    'name'  => 'Errors',
64
    'title' => _MI_XHTTPERR_ADMENU_ERRORS,
65
    'link'  => 'admin/errors.php',
66
    'desc'  => _MI_XHTTPERR_ADMENU_ERRORS_DESC,
67
    'icon'  => $pathModIcon32 . '/error.png',
68
];
69
70
$adminmenu[] = [
71
    'name'  => 'Reports',
72
    'title' => _MI_XHTTPERR_ADMENU_REPORTS,
73
    'link'  => 'admin/reports.php',
74
    'desc'  => _MI_XHTTPERR_ADMENU_REPORTS_DESC,
75
    'icon'  => $pathModIcon32 . '/report_error.png',
76
];
77
78
$adminmenu[] = [
79
    'name'  => 'About',
80
    'title' => _MI_XHTTPERR_ADMENU_ABOUT,
81
    'link'  => 'admin/about.php',
82
    'desc'  => _MI_XHTTPERR_ADMENU_ABOUT_DESC,
83
    'icon'  => $pathModIcon32 . '/information.png',
84
];
85