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/DocBlockFixture.php (7 issues)

Severity

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    Transformer
9
 * @subpackage Unit_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
/**
17
 * Fixture file for different DocBlock tests.
18
 *
19
 * @category   phpDocumentor
20
 * @package    Transformer
21
 * @subpackage Unit_tests
22
 * @author     Mike van Riel <[email protected]>
23
 * @license    http://www.opensource.org/licenses/mit-license.php MIT
24
 * @link       http://phpdoc.org
25
 */
26
class phpDocumentor_Tests_Data_DocBlockFixture
27
{
28
    /*
29
    * The class docblock has two lines of short description AND the short description ends with a space.
30
    */
31
32
    public static function EmptyDocBlock(ArrayObject $object)
0 ignored issues
show
The parameter $object 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...
33
    {
34
        // test a method with an empty docblock
35
    }
36
37
    public static function ReallyEmptyDocBlock(ArrayObject $object)
0 ignored issues
show
The parameter $object 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...
38
    {
39
        // test a method with the smallest thinkable docblock
40
    }
41
42
    /**
43
     * Single line docblock.
44
     */
45
    public static function SingleLineDocBlock(ArrayObject $object)
0 ignored issues
show
The parameter $object 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...
46
    {
47
        // test a method with an empty docblock
48
    }
49
50
    /** Single line docblock. */
51
    public static function SingleLineDocBlock2(ArrayObject $object)
0 ignored issues
show
The parameter $object 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...
52
    {
53
        // test a method with an empty docblock
54
    }
55
56
    /**
57
     * Single line docblock.
58
     * Long description.
59
     */
60
    public static function SimpleDocBlockWithLD(ArrayObject $object)
0 ignored issues
show
The parameter $object 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...
61
    {
62
        // test a method with an empty docblock
63
    }
64
65
    /**
66
     * This docblock is the ideal situation, short descriptions are single line and closed with a point.
67
     *
68
     * The long description is separated a whiteline away and has a trailing whiteline. After which each
69
     * tag 'group' is separated by a whiteline.
70
     *
71
     * @static
72
     *
73
     * @param ArrayObject $object Ideally.
74
     *
75
     * @return string
76
     */
77
    public static function IdealDocBlock(ArrayObject $object)
0 ignored issues
show
The parameter $object 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...
78
    {
79
    }
80
81
    /**
82
     * This docblock is invalid because the short description 'does not end'
83
     * @static
84
     * @param ArrayObject $object
85
     * @return string
86
     */
87
    public static function DocBlockWithInvalidShortDescription($object)
0 ignored issues
show
The parameter $object 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...
88
    {
89
        /*
90
         * This Docblock's short description does not end with a . or with a double space and thus
91
         * should be invalid. We allow it by noticing that there are tags following.
92
         */
93
    }
94
95
    /**
96
     * This DocBlock tests whether the @link tag is correctly taken and shown.
97
     *
98
     * @link http://www.phpdoc.org
99
     */
100
    public static function DocBlockWithLinkTag()
101
    {
102
    }
103
104
    /**
105
     * This tests whether a custom tag with hypen is interpreted
106
     *
107
     * @custom-tag This is a custom tag
108
     */
109
    public static function DocBlockWithTagWithHyphen()
110
    {
111
    }
112
113
    /**
114
     * This docblock will contain an inline tag to test whether it still crashes.
115
     *
116
     * This is a test {@link} with an inline tag.
117
     *
118
     * @static
119
     */
120
    public static function DocBlockWithInlineTag()
121
    {
122
    }
123
}
124