Issues (1098)

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.

src/config.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
3
#-------------------------------------------------------------------------------
4
#
5
#  eTraxis - Records tracking web-based system
6
#  Copyright (C) 2003-2011  Artem Rodygin
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 3 of the License, or
11
#  (at your option) any later version.
12
#
13
#  This program is distributed in the hope that it will be useful,
14
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
#  GNU General Public License for more details.
17
#
18
#  You should have received a copy of the GNU General Public License
19
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
#
21
#-------------------------------------------------------------------------------
22
23
/**
24
 * Instance configuration
25
 *
26
 * This module contains settings of eTraxis instance, which are required to be updated for
27
 * particular installation.
28
 *
29
 * @package Engine
30
 */
31
32
#-------------------------------------------------------------------------------
33
#  Location
34
#-------------------------------------------------------------------------------
35
36
/**#@+
37
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Install#step-4-configure-etraxis online documentation} for details.
38
 */
39
define('WEBROOT', 'http://www.example.com/etraxis/');
40
/**#@-*/
41
42
#-------------------------------------------------------------------------------
43
#  Database
44
#-------------------------------------------------------------------------------
45
46
/**#@+
47
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Install#step-4-configure-etraxis online documentation} for details.
48
 */
49
define('DATABASE_DRIVER',   1);
50
define('DATABASE_HOST',     'localhost');
51
define('DATABASE_DBNAME',   'etraxis');
52
define('DATABASE_USERNAME', '%');
53
define('DATABASE_PASSWORD', '');
54
/**#@-*/
55
56
#-------------------------------------------------------------------------------
57
#  Security Options
58
#-------------------------------------------------------------------------------
59
60
/**#@+
61
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Security-options online documentation} for details.
62
 */
63
define('MIN_PASSWORD_LENGTH', 6);
64
define('LOCKS_COUNT',         3);
65
define('LOCKS_TIMEOUT',       30);
66
define('PASSWORD_EXPIRATION', 90);
67
define('SESSION_EXPIRE',      120);
68
/**#@-*/
69
70
#-------------------------------------------------------------------------------
71
#  Localization
72
#-------------------------------------------------------------------------------
73
74
/**#@+
75
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Localization online documentation} for details.
76
 */
77
define('LANG_DEFAULT', 1000);
78
/**#@-*/
79
80
#-------------------------------------------------------------------------------
81
#  Customization
82
#-------------------------------------------------------------------------------
83
84
/**#@+
85
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Customization online documentation} for details.
86
 */
87
define('COMPANY_LOGO',  'images/logo.png');
88
define('COMPANY_SITE',  'https://www.etraxis.com/');
89
define('THEME_DEFAULT', 'Emerald');
90
/**#@-*/
91
92
#-------------------------------------------------------------------------------
93
#  Attachments
94
#-------------------------------------------------------------------------------
95
96
/**#@+
97
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Attachments online documentation} for details.
98
 */
99
define('ATTACHMENTS_ENABLED',    1);
100
define('ATTACHMENTS_MAXSIZE',    2048);
101
define('ATTACHMENTS_TOTALSIZE',  0);
102
define('ATTACHMENTS_COMPRESSED', 1);
103
define('ATTACHMENTS_PATH',       '/usr/local/etraxis/bins/');
104
/**#@-*/
105
106
#-------------------------------------------------------------------------------
107
#  Email Notifications
108
#-------------------------------------------------------------------------------
109
110
/**#@+
111
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Email-notifications online documentation} for details.
112
 */
113
define('EMAIL_NOTIFICATIONS_ENABLED', 1);
114
define('EMAIL_ATTACHMENTS_MAXSIZE',   0);
115
/**#@-*/
116
117
#-------------------------------------------------------------------------------
118
#  SMTP Settings
119
#-------------------------------------------------------------------------------
120
121
/**#@+
122
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/SMTP-settings online documentation} for details.
123
 */
124
define('SMTP_SERVER_NAME',    'smtp.example.com');
125
define('SMTP_SERVER_PORT',    25);
126
define('SMTP_SERVER_TIMEOUT', 5);
127
define('SMTP_USERNAME',       '');
128
define('SMTP_PASSWORD',       '');
129
define('SMTP_MAILFROM',       '[email protected]');
130
define('SMTP_USE_TLS',        0);
131
/**#@-*/
132
133
#-------------------------------------------------------------------------------
134
#  LDAP Authentication
135
#-------------------------------------------------------------------------------
136
137
/**#@+
138
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/LDAP-authentication online documentation} for details.
139
 */
140
define('LDAP_ENABLED',       0);
141
define('LDAP_HOST',          'ldap://localhost');
142
define('LDAP_PORT',          389);
143
define('LDAP_USE_TLS',       0);
144
define('LDAP_BASEDN',        'OU=unit1,DC=example,DC=com; OU=unit2,DC=example,DC=com');
145
define('LDAP_USERNAME',      '');
146
define('LDAP_PASSWORD',      '');
147
define('LDAP_ATTR_LOGIN',    'samaccountname');
148
define('LDAP_ATTR_FULLNAME', 'displayname');
149
define('LDAP_ATTR_EMAIL',    'mail');
150
define('LDAP_ENUMERATION',   0);
151
define('LDAP_ADMINS',        'Administrator');
152
/**#@-*/
153
154
#-------------------------------------------------------------------------------
155
#  Maintenance
156
#-------------------------------------------------------------------------------
157
158
/**#@+
159
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Maintenance online documentation} for details.
160
 */
161
define('MAINTENANCE_BANNER',      0);
162
define('MAINTENANCE_START_DATE',  '1980-01-01');
163
define('MAINTENANCE_START_TIME',  '00:00');
164
define('MAINTENANCE_FINISH_DATE', '2037-12-31');
165
define('MAINTENANCE_FINISH_TIME', '00:00');
166
/**#@-*/
167
168
#-------------------------------------------------------------------------------
169
#  Debug Logging
170
#-------------------------------------------------------------------------------
171
172
/**#@+
173
 * See {@link https://github.com/etraxis/etraxis-obsolete/wiki/Debug-logging online documentation} for details.
174
 */
175
define('DEBUG_MODE', 0);
176
define('DEBUG_LOGS', '/usr/local/etraxis/logs/');
177
/**#@-*/
178
179
#-------------------------------------------------------------------------------
180
#  Restrictions
181
#-------------------------------------------------------------------------------
182
183
/**#@+
184
 * @ignore
185
 */
186
define('MAX_ACCOUNTS_NUMBER',  0);
187
define('MAX_TEMPLATES_NUMBER', 0);
188
/**#@-*/
189
190
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
191