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/TokenIteratorTestFixture.php (5 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
 * File docblock
4
 *
5
 * @package    Tokens
6
 * @subpackage Tests
7
 */
8
9
/**
10
 * @package    Tokens
11
 * @subpackage Tests
12
 */
13
14
namespace
15
{
16
    define('TEST', -1);
17
    define('TEST2', 1);
18
}
19
20
namespace Test\Tests5
21
{
22
23
    interface iTest extends \Countable
24
    {
25
    }
26
27
    abstract class test implements iTest
28
    {
29
        public function count()
30
        {
31
        }
32
33
        abstract public function count2();
34
    }
35
36
    require 'test2.php';
37
    require_once 'test2.php';
38
    include('test2.php');
39
    include_once 'test2.php';
40
41
    const GLOBAL_CONST = '1';
42
    const GLOBAL_CONST3 = 2, GLOBAL_CONST4 = '1';
43
    const GLOBAL_CONST2 = '2';
44
45
    /**
46
     * Function docblock for SingleFunction
47
     *
48
     * This is a code block:
49
     *
50
     *     block of code
51
     *
52
     * @param int $argument
53
     * @param Test\SingleClass $argument2 This is a test argument
54
     */
55
    function single_function($argument = 'test', $argument2 = 'test2')
0 ignored issues
show
The parameter $argument 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...
The parameter $argument2 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...
56
    {
57
    }
58
59
    /**
60
     * This is a test method
61
     *
62
     * @return int description
63
     */
64
    function test_function()
65
    {
66
    }
67
68
    /**
69
     * This is a test method
70
     *
71
     * @return int description
72
     */
73
    function test_function2()
74
    {
75
    }
76
77
}
78
79
namespace Test
80
{
81
82
    /**
83
     * test.
84
     *
85
     * This is a class test
86
     *
87
     * @author Mike
88
     */
89
    class SingleClass
90
    {
91
        private $test = null;
92
93
        private $test2 = ['test' => 1];
94
95
        private $test3 = 1;
96
97
        /**
98
         * This is a property test
99
         *
100
         * @var boolean
101
         */
102
        private $test4 = true;
103
104
        /**
105
         * Method Docblock for StaticPublicMethod
106
         *
107
         * I have explicitly added a **long** description _containing_ some markup to:
108
         *
109
         * * demonstrate what it looks like
110
         * * test the markdown conversion process
111
         *
112
         * @param array $argument_a test argument
113
         * @param FooBarClass $argument_b test argument
114
         */
115
        public static function StaticPublicMethod(array $argument_a, FooBarClass $argument_b = null)
0 ignored issues
show
The parameter $argument_a 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...
The parameter $argument_b 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...
116
        {
117
        }
118
119
        /**
120
         * Method Docblock
121
         *
122
         * @param int $argument test argument
123
         */
124
        public function PublicMethod($argument)
0 ignored issues
show
The parameter $argument 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...
125
        {
126
        }
127
128
        protected function ProtectedMethod()
129
        {
130
        }
131
    }
132
133
    abstract class FooBarClass extends SingleClass implements Reflector, Traversable
134
    {
135
        const TEST = 'test2';
136
    }
137
138
    class FooBarClass2 extends SingleClass
139
    {
140
        const TEST = 'test2';
141
    }
142
}
143