Issues (204)

Security Analysis    13 potential vulnerabilities

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 (2)
Response Splitting can be used to send arbitrary responses.
  File Manipulation (6)
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 (1)
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 (1)
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.
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.

config/ConfAssistant-template.php (1 issue)

1
<?php
2
3
/*
4
 * *****************************************************************************
5
 * Contributions to this work were made on behalf of the GÉANT project, a 
6
 * project that has received funding from the European Union’s Framework 
7
 * Programme 7 under Grant Agreements No. 238875 (GN3) and No. 605243 (GN3plus),
8
 * Horizon 2020 research and innovation programme under Grant Agreements No. 
9
 * 691567 (GN4-1) and No. 731122 (GN4-2).
10
 * On behalf of the aforementioned projects, GEANT Association is the sole owner
11
 * of the copyright in all material which was developed by a member of the GÉANT
12
 * project. GÉANT Vereniging (Association) is registered with the Chamber of 
13
 * Commerce in Amsterdam with registration number 40535155 and operates in the 
14
 * UK as a branch of GÉANT Vereniging.
15
 * 
16
 * Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. 
17
 * UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK
18
 *
19
 * License: see the web/copyright.inc.php file in the file structure or
20
 *          <base_url>/copyright.php after deploying the software
21
 */
22
?>
23
<?php
24
25
/**
26
 * This is the main (and currently: only) configuration file for CAT
27
 *
28
 * @package Configuration
29
 */
30
31
namespace config;
32
33
/**
34
 * This classes' members hold the configuration for CAT
35
 *
36
 * @author Stefan Winter <[email protected]>
37
 * @author Tomasz Wolniewicz <[email protected]>
38
 *
39
 * @package Configuration
40
 */
41
class ConfAssistant
42
{
43
44
    /**
45
     * Defines various general parameters of the roaming consortium.
46
     * name: the display name of the consortium
47
     * ssid: an array of default SSIDs for this consortium; they are automatically added to all installers.
48
     * interworking-consortium-oi: Organisation Identifier of the roaming consortium for Interworking/Hotspot 2.0; 
49
     *                             a profile with these OIs will be added to all installers
50
     * interworking-domainname-fallback: This will be used in Windows installers for the DomainName setting if
51
     *                             the IdP configuration does not supply its own realm
52
     * homepage: URL of the consortium's general homepage.
53
     * signer_name: if installers are configured for digital signature, this parameter should contain the "O" name
54
     *           in the certificate. If left empty, signatures are not advertised even if configured and working
55
     * allow_self_service_registration: if set to NULL, federation admins need to invite new inst admins manually
56
     *                                  if set to a federation ID string, e.g. "DE" for Germany, new admins can
57
     *                                  self-register and will be put into that federation.
58
     * registration_API_keys: allows select federations to make bulk registrations for new IdPs (e.g. if they have
59
     *                        an own, opaque, customer management system. The API will be documented at a later stage
60
     * LOGOS: there are several variants of the consortium logo scattered in the
61
     *        source. Please change them at the appropriate places:
62
     *        - web/resources/images/consortium_logo.png
63
     *        - web/favicon.ico
64
     *        - devices/ms/Files/eduroam_150.bmp
65
     *        - devices/ms/Files/eduroam32.ico
66
     * 
67
     * @var array
68
     */
69
    public const CONSORTIUM = [
70
        // for technical usages inside the product and things in installers not 
71
        // reaching the human eye. Please keep this ASCII only. There are some
72
        // code paths in the product which are only taken when the value is "eduroam"
73
        'name' => 'eduroam',
74
        // pretty-print version of the consortium name, for places where this is
75
        // presented to actual humans.
76
        'display_name' => 'eduroam®',
77
        'ssid' => ['eduroam'],
78
        'homepage' => 'https://www.eduroam.org',
79
        'signer_name' => 'GÉANT Association',
80
        'selfservice_registration' => NULL,
81
#        'deployment-voodoo'         => "Operations Team",
82
        'ssid' => ['eduroam'],
83
        'interworking-consortium-oi' => ['001bc50460'],
84
        'interworking-domainname-fallback' => 'eduroam.org',
85
        'networks' => [
86
            'eduroam'     => [
87
                'ssid' => ['eduroam'], 
88
                'oi' => [
89
                    '001bc50460' /* eduroam RCOI */ 
90
                    ], 
91
                'condition' => TRUE],
92
            'OpenRoaming® (%REALM%)' => [
93
                'ssid' => [], /* OpenRoaming has left SSIDs behind */
94
                'oi' => [
95
                    '5A03BA0000', /* OpenRoaming/AllIdentities/SettlementFree/NoPersonalData/BaselineQoS */
96
                    '5A03BA0800', /* OpenRoaming/EduIdentities/SettlementFree/NoPersonalData/BaselineQoS */
97
                    ],
98
                'condition' => 'internal:openroaming',
99
                ],
100
        ],
101
        'registration_API_keys' => [
102
        // 'secretvalue' => 'UK',
103
        // 'othervalue' => 'DE',
104
        ],
105
        /*  Please note that many languages that CAT is translated to distinguish
106
          grammatical gender and if you change this phrase it might get a wrong
107
          article in some translated strings or look odd. This only affects the
108
          administrative interface and not end users.
109
          Since this product has a flagship use for the eduroam consortium
110
          (which uses the term "Identity Provider"), at least the German
111
          translation is geared towards *male* declination to match that term.
112
         */
113
        'nomenclature_federation' => 'National Roaming Operator',
114
        'nomenclature_idp' => 'Identity Provider',
115
        'nomenclature_hotspot' => 'Service Provider',
116
        'nomenclature_participant' => 'Organisation',
117
        'entitlement' => 'urn:geant:eduroam:inst:admin',
118
    ];
119
120
    /** eduPKI options:
121
     *
122
     * at the moment we just have one whic decides wheather we are in the testing
123
     * or production mode. In future it might make sense to move some other parametrs
124
     * from code to this place.
125
     */
126
    const eduPKI = [
0 ignored issues
show
This class constant is not uppercase (expected EDUPKI).
Loading history...
127
        'testing' => false,
128
    ];
129
    /** silverbullet options:
130
     *         default_maxusers: an institution is not allowed to create more than that amount of users
131
     *             the value can be overridden as a per-federation option in fed-operator UI
132
     *         realm_suffix: user credentials have a realm which always includes the inst ID and profile ID and the name
133
     *             of the federation; for routing aggregation purposes /all/ realms should end with a common suffix though
134
     *             if left empty, realms would end in the federation name only
135
     *         server_suffix: the suffix of the auth server's name. It will be auth.<fedname> followed by this suffix
136
     *         gracetime: admins need to re-login and verify that accounts are still valid. This prevents lazy admins
137
     *             who forget deletion of people who have lost their eligibility. The number is an integer value in days
138
     *         CA: the code can either act as its own CA ("embedded") or use API calls to an external CA. This config
139
     *             value steers where to get certificates from 
140
     * 
141
     */
142
    const SILVERBULLET = [
143
        'product_name' => 'Hosted Services',
144
        'subproduct_sp_name' => 'Managed SP',
145
        'subproduct_idp_name' => 'Managed IdP',
146
        'documentation' => 'https://wiki.geant.org/pages/viewpage.action?pageId=66650390',
147
        'default_maxusers' => 200,
148
        'realm_suffix' => '.hosted.eduroam.org',
149
        'server_suffix' => '.hosted.eduroam.org',
150
        'gracetime' => 90,
151
        'CA' => ["type" => "embedded"], # OCSP URL needs to be configured in openssl.cnf
152
            # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"],
153
    ];
154
155
    /**
156
     * Various paths.
157
     * makensis: path to the makensis executable. If you just fill in "makensis" the one from the system $PATH will be taken.
158
     * zip: path to the zip executable. If you just fill in "zip" the one from the system $PATH will be taken.
159
     *   See also NSIS_VERSION further down
160
     * trust-store-*: if an IdP wants to auto-detect his root CA rather than specifying it properly, we need to have repositories
161
     *                of "known-good" CAs. Mozilla's trust store is usually good, plus ones we can ship ourselves
162
     * @var array
163
     */
164
    const PATHS = [
165
        'makensis' => 'makensis',
166
        'zip' => 'zip',
167
        'trust-store-mozilla' => '/etc/ssl/certs/ca-certificates.crt',
168
        'trust-store-custom' => __DIR__."/known-roots.pem",
169
    ];
170
171
    /**
172
     * NSIS version - with version 3 UTF installers will be created
173
     * see also $PATHS['makensis']
174
     * 
175
     * @var integer
176
     */
177
    const NSIS_VERSION = 3;
178
    const MAPPROVIDER = [
179
        'PROVIDER' => 'OpenLayers', // recognised values: Google, Bing, OpenLayers, None
180
        'USERNAME' => '' // or equivalent; for Google, this is the APIKEY
181
    ];
182
183
    /**
184
     * Configures SMS gateway settings
185
     */
186
    const SMSSETTINGS = [
187
        'provider' => 'Nexmo',
188
        'username' => '...',
189
        'password' => '...',
190
    ];
191
    
192
    /**
193
     * Lists the RADIUS servers. They have a built-in DB to log auth requests.
194
     * We need to query those to get auth stats for silverbullet admins
195
     *
196
     * @var array
197
     */
198
    const DB = [
199
        // names don't matter - the source code will iterate through
200
        // all entries
201
        'RADIUS_1' => [
202
            'host' => 'auth-1.hosted.eduroam.org',
203
            'db' => 'radacct',
204
            'user' => 'someuser',
205
            'pass' => 'somepass',
206
            'readonly' => TRUE, ],
207
        'RADIUS_2' => [
208
            'host' => 'auth-2.hosted.eduroam.org',
209
            'db' => 'radacct',
210
            'user' => 'someuser',
211
            'pass' => 'somepass',
212
            'readonly' => TRUE, ],
213
    ];
214
215
    /**
216
     * Determines if DiscoJuice keywords should be used in the discovery service
217
     * The keywords contain other language variants of the IdP name making it
218
     * easier to follow keyboard search. Turning this option on will add
219
     * about 40% size to the IdP list
220
     */
221
    const USE_KEYWORDS = true;
222
    /**
223
     * Determines if the IdP list for DiscoJouce should be preloaded in the background
224
     * at the main page load
225
     */
226
    const PRELOAD_IDPS = true;
227
    /**
228
     * Points to information on what certificates should be used for servers
229
     * and corresponding CAs
230
     * If this value is set to an empty string then no link will be displayed.
231
     */
232
    const CERT_GUIDELINES = 'https://wiki.geant.org/display/H2eduroam/EAP+Server+Certificate+considerations';
233
    
234
    /**
235
     * These are warning thresholds used to analyse certificates in profiles
236
     * These default settings are probably much too low.
237
     */
238
    const CERT_WARNINGS = [
239
        'expiry_warning' => 5184000, // 60 days
240
        'expiry_critical' => 0, //
241
    ];
242
    
243
    /**
244
     * 'startday' sets the date from which you started recording admins logins
245
     * 'allowed_inactivity_days' the number of allowed inactivity days - above that the warning will
246
     *     be shown on the NRO page; be aware that admins who were not active AFTER the date you
247
     *     started recording the logins will be shown as inactive, so to be completely OK
248
     *     there should be a synchronisation between the moment you start the system, startday and allowed_inactivity_days
249
     */
250
    const ADMIN_LOGINS = [
251
        'startday' => '2030-01-01', // change this to your date 
252
        'allowed_inactivity_days' =>  365,
253
    ];
254
255
}
256