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.
Cross-Site Scripting
(6)
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
(1)
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
(1)
Code Injection enables an attacker to execute arbitrary code on the server.
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.
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.
$redirectData['url']
can contain request data and is used in output context(s) leading to a potential security vulnerability.2 paths for user data to reach this point
$this->parameters['HTTP_AUTHORIZATION']
seems to return tainted data, and$authorizationHeader
is assigned in ServerBag.php on line 59$this->parameters['HTTP_AUTHORIZATION']
seems to return tainted data, and$authorizationHeader
is assignedin vendor/ServerBag.php on line 59
in vendor/ServerBag.php on line 74
in vendor/ParameterBag.php on line 77
$redirectData
is assignedin src/SWP/Bundle/TemplatesSystemBundle/EventListener/RedirectListener.php on line 39
$_POST,
and$_POST
is passed to Request::createRequestFromFactory() in Request.php on line 285$_POST,
and$_POST
is passed to Request::createRequestFromFactory()in vendor/Request.php on line 285
$request
is passed to Request::__construct()in vendor/Request.php on line 1981
$request
is passed to Request::initialize()in vendor/Request.php on line 239
$request
is passed to ParameterBag::__construct()in vendor/Request.php on line 257
in vendor/ParameterBag.php on line 28
in vendor/ParameterBag.php on line 77
$redirectData
is assignedin src/SWP/Bundle/TemplatesSystemBundle/EventListener/RedirectListener.php on line 39
Used in output context
in vendor/RedirectResponse.php on line 39
in vendor/RedirectResponse.php on line 92
in vendor/Response.php on line 404
in vendor/Response.php on line 363
Preventing Cross-Site-Scripting Attacks
Cross-Site-Scripting allows an attacker to inject malicious code into your website - in particular Javascript code, and have that code executed with the privileges of a visiting user. This can be used to obtain data, or perform actions on behalf of that visiting user.
In order to prevent this, make sure to escape all user-provided data:
General Strategies to prevent injection
In general, it is advisable to prevent any user-data to reach this point. This can be done by white-listing certain values:
For numeric data, we recommend to explicitly cast the data: