Issues (387)

Branch: develop

Security Analysis    no request data  

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.

tests/data/NamespaceTestData.php (2 issues)

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
 * phpDocumentor
4
 *
5
 * PHP Version 5
6
 *
7
 * @category   phpDocumentor
8
 * @package    Parser
9
 * @subpackage Tests
10
 * @author     Mike van Riel <[email protected]>
11
 * @copyright  2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
12
 * @license    http://www.opensource.org/licenses/mit-license.php MIT
13
 * @link       http://phpdoc.org
14
 */
15
16
namespace foo;
17
18
use \ArrayObject;
19
20
// this is the same as use My\Full\NSname as NSname
21
use My\Full\Classname as Another;
22
23
// importing a global class
24
use My\Full\NSname;
25
26
/**
27
 * Namespace test.
28
 *
29
 * @category   phpDocumentor
30
 * @package    Parser
31
 * @subpackage Tests
32
 * @author     Mike van Riel <[email protected]>
33
 * @license    http://www.opensource.org/licenses/mit-license.php MIT
34
 * @link       http://phpdoc.org
35
 */
36
class NamespaceTest
37
{
38
    /**
39
     * Expected type is foo\Classname
40
     *
41
     * @var Classname
42
     */
43
    public $singleNameClass = null;
44
45
    /**
46
     * Expected type is My\Full\Classname
47
     *
48
     * @var My\Full\Classname
49
     */
50
    public $namespacedClass = null;
51
52
    /**
53
     * Expected type is \ArrayObject
54
     *
55
     * @var \ArrayObject
56
     */
57
    public $globalClass = null;
58
59
    /**
60
     * Expected type is foo\Another
61
     *
62
     * @var namespace\Another
63
     */
64
    public $sameSpaceClassAnother = null;
65
66
    /**
67
     * Expected type is My\Full\Classname
68
     *
69
     * @var Another
70
     */
71
    public $aliasClassAnother = null;
72
73
    /**
74
     * Expected type is My\Full\NSname\subns
75
     *
76
     * @var NSname\subns
77
     */
78
    public $aliasSpaceNSname = null;
79
80
    /**
81
     * Expected type is \ArrayObject
82
     *
83
     * @var ArrayObject
84
     */
85
    public $aliasGlobalClass = null;
86
}
87
88
/**
89
 * Contains the test data for the phpDocumentor parser.
90
 *
91
 * This is a long description
92
 *
93
 * @category   phpDocumentor
94
 * @package    Parser
95
 * @subpackage Tests
96
 * @author     Mike van Riel <[email protected]>
97
 * @license    http://www.opensource.org/licenses/mit-license.php MIT
98
 * @link       http://phpdoc.org
99
 */
100
class DocBlocTest
101
{
102
    /** @var string $a */
103
    public $a = '';
104
105
    /**
106
     * This is a multi-line test where
107
     * we want to see if it works.
108
     *
109
     * We include a long description as well
110
     * that spans multiple lines.
111
     * {@link http://www.github.com/phpdocumentor/phpdocumentor2}
112
     */
113
    public function function1()
114
    {
115
    }
116
117
    /**
118
     * Only a single line.
119
     */
120
    public function function2()
121
    {
122
    }
123
124
    /**
125
     * Multiline short description
126
     * but intentionally did not end with a dot
127
     *
128
     * long description
129
     */
130
    public function function3()
131
    {
132
    }
133
134
    /**
135
     * Only a short description
136
     */
137
    public function function4()
138
    {
139
    }
140
141
    /**
142
     * Multiline short description
143
     * but intentionally did not @end with a dot and forgot extra newline
144
     * long @description
145
     *
146
     * @param string[] $test
147
     */
148
    public function function5($test)
0 ignored issues
show
The parameter $test is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
149
    {
150
    }
151
}
152
153
/**
154
 * Separate test function.
155
 *
156
 * @param string[]|int[] $param
157
 */
158
function test(array $param)
0 ignored issues
show
The parameter $param is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
159
{
160
}
161