Issues (38)

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.

web/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
 * ************** CAUTION **************
5
 *
6
 * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of
7
 * the installation/update process. The original file resides in the
8
 * SensioDistributionBundle.
9
 *
10
 * ************** CAUTION **************
11
 */
12
13
if (!isset($_SERVER['HTTP_HOST'])) {
14
    exit('This script cannot be run from the CLI. Run it from a browser.');
15
}
16
17
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
18
    '127.0.0.1',
19
    '::1',
20
))) {
21
    header('HTTP/1.0 403 Forbidden');
22
    exit('This script is only accessible from localhost.');
23
}
24
25
require_once dirname(__FILE__).'/../var/SymfonyRequirements.php';
26
27
$symfonyRequirements = new SymfonyRequirements();
28
29
$majorProblems = $symfonyRequirements->getFailedRequirements();
30
$minorProblems = $symfonyRequirements->getFailedRecommendations();
31
32
?>
33
<!DOCTYPE html>
34
<html>
35
    <head>
36
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
37
        <meta name="robots" content="noindex,nofollow" />
38
        <title>Symfony Configuration Checker</title>
39
        <link rel="stylesheet" href="bundles/framework/css/structure.css" media="all" />
40
        <link rel="stylesheet" href="bundles/framework/css/body.css" media="all" />
41
        <style type="text/css">
42
            /* styles copied from bundles/sensiodistribution/webconfigurator/css/install.css */
43
            body {
44
                font-size: 14px;
45
                font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
46
            }
47
            .sf-reset h1.title {
48
                font-size: 45px;
49
                padding-bottom: 30px;
50
            }
51
            .sf-reset h2 {
52
                font-weight: bold;
53
                color: #FFFFFF;
54
                /* Font is reset to sans-serif (like body) */
55
                font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
56
                margin-bottom: 10px;
57
                background-color: #aacd4e;
58
                padding: 2px 4px;
59
                display: inline-block;
60
                text-transform: uppercase;
61
            }
62
            .sf-reset ul a,
63
            .sf-reset ul a:hover {
64
                background: url(../images/blue-arrow.png) no-repeat right 6px;
65
                padding-right: 10px;
66
            }
67
            .sf-reset ul, ol {
68
                padding-left: 20px;
69
            }
70
            .sf-reset li {
71
                padding-bottom: 18px;
72
            }
73
            .sf-reset ol li {
74
                list-style-type: decimal;
75
            }
76
            .sf-reset ul li {
77
                list-style-type: none;
78
            }
79
            .sf-reset .symfony-blocks-install {
80
                overflow: hidden;
81
            }
82
            .sf-reset .symfony-install-continue {
83
                font-size: 0.95em;
84
                padding-left: 0;
85
            }
86
            .sf-reset .symfony-install-continue li {
87
                padding-bottom: 10px;
88
            }
89
            .sf-reset .ok {
90
                color: #fff;
91
                font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
92
                background-color: #6d6;
93
                padding: 10px;
94
                margin-bottom: 20px;
95
            }
96
            .sf-reset .ko {
97
                background-color: #d66;
98
            }
99
            .version {
100
                text-align: right;
101
                font-size: 10px;
102
                margin-right: 20px;
103
            }
104
            .sf-reset a,
105
            .sf-reset li a {
106
                color: #08C;
107
                text-decoration: none;
108
            }
109
            .sf-reset a:hover,
110
            .sf-reset li a:hover {
111
                color: #08C;
112
                text-decoration: underline;
113
            }
114
            .sf-reset textarea {
115
                padding: 7px;
116
            }
117
        </style>
118
    </head>
119
    <body>
120
        <div id="content">
121
            <div class="header clear-fix">
122
                <div class="header-logo">
123
                    <img src="bundles/framework/images/logo_symfony.png" alt="Symfony" />
124
                </div>
125
126
                <div class="search">
127
                  <form method="get" action="http://symfony.com/search">
128
                    <div class="form-row">
129
130
                      <label for="search-id">
131
                          <img src="bundles/framework/images/grey_magnifier.png" alt="Search on Symfony website" />
132
                      </label>
133
134
                      <input name="q" id="search-id" type="search" placeholder="Search on Symfony website" />
135
136
                      <button type="submit" class="sf-button">
137
                          <span class="border-l">
138
                            <span class="border-r">
139
                                <span class="btn-bg">OK</span>
140
                            </span>
141
                        </span>
142
                      </button>
143
                    </div>
144
                   </form>
145
                </div>
146
            </div>
147
148
            <div class="sf-reset">
149
                <div class="block">
150
                    <div class="symfony-block-content">
151
                        <h1 class="title">Configuration Checker</h1>
152
                        <p>
153
                            This script analyzes your system to check whether is
154
                            ready to run Symfony applications.
155
                        </p>
156
157
                        <?php if (count($majorProblems)): ?>
158
                            <h2 class="ko">Major problems</h2>
159
                            <p>Major problems have been detected and <strong>must</strong> be fixed before continuing:</p>
160
                            <ol>
161
                                <?php foreach ($majorProblems as $problem): ?>
162
                                    <li><?php echo $problem->getHelpHtml() ?></li>
163
                                <?php endforeach; ?>
164
                            </ol>
165
                        <?php endif; ?>
166
167
                        <?php if (count($minorProblems)): ?>
168
                            <h2>Recommendations</h2>
169
                            <p>
170
                                <?php if (count($majorProblems)): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,
171
                                it’s recommended that you fix the following:
172
                            </p>
173
                            <ol>
174
                                <?php foreach ($minorProblems as $problem): ?>
175
                                    <li><?php echo $problem->getHelpHtml() ?></li>
176
                                <?php endforeach; ?>
177
                            </ol>
178
                        <?php endif; ?>
179
180
                        <?php if ($symfonyRequirements->hasPhpIniConfigIssue()): ?>
181
                            <p id="phpini">*
182
                                <?php if ($symfonyRequirements->getPhpIniConfigPath()): ?>
0 ignored issues
show
Bug Best Practice introduced by
The expression $symfonyRequirements->getPhpIniConfigPath() of type string|false is loosely compared to true; this is ambiguous if the string can be empty. You might want to explicitly use !== false instead.

In PHP, under loose comparison (like ==, or !=, or switch conditions), values of different types might be equal.

For string values, the empty string '' is a special case, in particular the following results might be unexpected:

''   == false // true
''   == null  // true
'ab' == false // false
'ab' == null  // false

// It is often better to use strict comparison
'' === false // false
'' === null  // false
Loading history...
183
                                    Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>".
184
                                <?php else: ?>
185
                                    To change settings, create a "<strong>php.ini</strong>".
186
                                <?php endif; ?>
187
                            </p>
188
                        <?php endif; ?>
189
190
                        <?php if (!count($majorProblems) && !count($minorProblems)): ?>
191
                            <p class="ok">All checks passed successfully. Your system is ready to run Symfony applications.</p>
192
                        <?php endif; ?>
193
194
                        <ul class="symfony-install-continue">
195
                            <?php if (count($majorProblems) || count($minorProblems)): ?>
196
                                <li><a href="config.php">Re-check configuration</a></li>
197
                            <?php endif; ?>
198
                        </ul>
199
                    </div>
200
                </div>
201
            </div>
202
            <div class="version">Symfony Standard Edition</div>
203
        </div>
204
    </body>
205
</html>
206