GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (41)

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.

Action/Reference/ServiceMethod.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
 * This file is part of the Global Trading Technologies Ltd workflow-extension-bundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * (c) fduch <[email protected]>
9
 *
10
 * Date: 14.09.16
11
 */
12
13
namespace Gtt\Bundle\WorkflowExtensionsBundle\Action\Reference;
14
15
use Gtt\Bundle\WorkflowExtensionsBundle\Exception\ActionException;
16
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
17
use Symfony\Component\DependencyInjection\ContainerInterface;
18
use ReflectionMethod;
19
20
/**
21
 * Reference to service method
22
 *
23
 * @author fduch <[email protected]>
24
 */
25
class ServiceMethod implements ActionReferenceInterface, ContainerAwareInterface
26
{
27
    /**
28
     * Service id of the object which method is used as an action
29
     *
30
     * @var string
31
     */
32
    private $serviceId;
33
34
    /**
35
     * Method name used as action
36
     *
37
     * @var string
38
     */
39
    private $methodName;
40
41
    /**
42
     * Action type
43
     *
44
     * @var string
45
     */
46
    private $type;
47
48
    /**
49
     * Action method reflection
50
     *
51
     * @var ReflectionMethod
52
     */
53
    private $reflectionMethod;
54
55
    /**
56
     * Target object object which method is used as an action
57
     * Used internally to invoke action
58
     *
59
     * @var object
60
     */
61
    private $object;
62
63
    /**
64
     * DI Container instance
65
     *
66
     * @var ContainerInterface
67
     */
68
    private $container;
69
70
    /**
71
     * ActionReference constructor.
72
     *
73
     * @param string $methodName method name
74
     * @param int    $serviceId  service id which method is used as an action
75
     * @param string $type       action reference type
76
     */
77
    public function __construct($methodName, $serviceId, $type = self::TYPE_REGULAR)
78
    {
79
        $this->methodName = $methodName;
80
        $this->serviceId  = $serviceId;
0 ignored issues
show
Documentation Bug introduced by
The property $serviceId was declared of type string, but $serviceId is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
81
        $this->type       = $type;
82
    }
83
84
    /**
85
     * Returns action type
86
     *
87
     * @return string
88
     */
89
    public function getType()
90
    {
91
        return $this->type;
92
    }
93
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function setContainer(ContainerInterface $container = null)
98
    {
99
        $this->container = $container;
100
    }
101
102
    /**
103
     * Invokes action
104
     *
105
     * @param array $args action args
106
     *
107
     * @return mixed
108
     */
109
    public function invoke(array $args)
110
    {
111
        return $this->getReflectionMethod()->invokeArgs($this->getObject(), $args);
112
    }
113
114
    /**
115
     * Returns reflection method
116
     *
117
     * @return ReflectionMethod
118
     */
119
    private function getReflectionMethod()
120
    {
121
        if (!$this->reflectionMethod) {
122
            $this->reflectionMethod = new ReflectionMethod($this->getObject(), $this->methodName);
123
        }
124
125
        return $this->reflectionMethod;
126
    }
127
128
    /**
129
     * Returns service object
130
     *
131
     * @return object
132
     */
133
    private function getObject()
134
    {
135
        if (!$this->object) {
136
            if (!$this->container) {
137
                throw ActionException::containerUnavailableForServiceMethodReference($this->serviceId);
138
            }
139
140
            $this->object = $this->container->get($this->serviceId);
141
        }
142
143
        return $this->object;
144
    }
145
}