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 (119)

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.

src/Model/PolicyRuleAttribute.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
namespace PhpAbac\Model;
4
5
class PolicyRuleAttribute
6
{
7
    /** @var PhpAbac\Model\AbstractAttribute **/
8
    protected $attribute;
9
    /** @var string **/
10
    protected $comparisonType;
11
    /** @var string **/
12
    protected $comparison;
13
    /** @var mixed **/
14
    protected $value;
15
    /** @var array **/
16
    protected $extraData;
17
	/** @var array Extended parameter */
18
	protected $getter_params_a = [];
19
20
    /**
21
     * @param \PhpAbac\Model\AbstractAttribute $attribute
22
     *
23
     * @return \PhpAbac\Model\PolicyRuleAttribute
24
     */
25 11
    public function setAttribute(AbstractAttribute $attribute)
26
    {
27 11
        $this->attribute = $attribute;
0 ignored issues
show
Documentation Bug introduced by
It seems like $attribute of type object<PhpAbac\Model\AbstractAttribute> is incompatible with the declared type object<PhpAbac\Model\Php...odel\AbstractAttribute> of property $attribute.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
28
29 11
        return $this;
30
    }
31
32
    /**
33
     * @return \PhpAbac\Model\AbstractAttribute
34
     */
35 11
    public function getAttribute()
36
    {
37 11
        return $this->attribute;
38
    }
39
40
    /**
41
     * @param string $comparisonType
42
     *
43
     * @return \PhpAbac\Model\PolicyRuleAttribute
44
     */
45 11
    public function setComparisonType($comparisonType)
46
    {
47 11
        $this->comparisonType = $comparisonType;
48
49 11
        return $this;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 11
    public function getComparisonType()
56
    {
57 11
        return $this->comparisonType;
58
    }
59
60
    /**
61
     * @param string $comparison
62
     *
63
     * @return \PhpAbac\Model\PolicyRuleAttribute
64
     */
65 11
    public function setComparison($comparison)
66
    {
67 11
        $this->comparison = $comparison;
68
69 11
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75 10
    public function getComparison()
76
    {
77 10
        return $this->comparison;
78
    }
79
80
    /**
81
     * @param mixed $value
82
     *
83
     * @return \PhpAbac\Model\PolicyRuleAttribute
84
     */
85 11
    public function setValue($value)
86
    {
87 11
        $this->value = $value;
88
89 11
        return $this;
90
    }
91
92
    /**
93
     * @return mixed
94
     */
95 11
    public function getValue()
96
    {
97 11
        return $this->value;
98
    }
99
    
100
    /**
101
     * @param array $extraData
102
     * @return \PhpAbac\Model\PolicyRuleAttribute
103
     */
104 2
    public function setExtraData($extraData) {
105 2
        $this->extraData = $extraData;
106
        
107 2
        return $this;
108
    }
109
    
110
    /**
111
     * @param string $key
112
     * @param string $value
113
     * @return \PhpAbac\Model\PolicyRuleAttribute
114
     */
115 3
    public function addExtraData($key, $value) {
116 3
        $this->extraData[$key] = $value;
117
        
118 3
        return $this;
119
    }
120
            
121
    /**
122
     * @param string $key
123
     * @return \PhpAbac\Model\PolicyRuleAttribute
124
     */
125 3
    public function removeExtraData($key) {
126 3
        if(isset($this->extraData[$key])) {
0 ignored issues
show
Expected 1 space after IF keyword; 0 found
Loading history...
127 3
            unset($this->extraData[$key]);
128 3
        }
129 3
        return $this;
130
    }
131
    
132
    /**
133
     * @return array
134
     */
135 7
    public function getExtraData() {
136 7
        return $this->extraData;
137
    }
138
    
139
	/**
140
	 * @param array $value
141
	 *
142
	 * @return static
143
	 */
144 5
	public function setGetterParams($value) {
145 5
		$this->getter_params_a = $value;
146
		
147 5
		return $this;
148
	}
149
	
150
	/**
151
	 * @return array
152
	 */
153 4
	public function getGetterParams() {
154 4
		return $this->getter_params_a;
155
	}
156
}
157