Issues (1039)

Security Analysis    not enabled

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/Options/ModuleOptions.php (1 issue)

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
namespace PlaygroundGame\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
class ModuleOptions extends AbstractOptions implements GameEditOptionsInterface
8
{
9
    /**
10
     * Turn off strict options mode
11
     */
12
    protected $__strictMode__ = false;
13
14
    /**
15
     * drive path to game media files
16
     */
17
    protected $media_path = 'public/media/game';
18
19
    /**
20
     * url path to game media files
21
     */
22
    protected $media_url = 'media/game';
23
24
    /**
25
     * core_layout config
26
     */
27
    protected $core_layout = array();
28
29
    /**
30
     * @var string
31
     */
32
    protected $emailFromAddress = '';
33
    
34
    /**
35
     * @var string
36
     */
37
    protected $defaultSubjectLine = '';
38
    
39
    /**
40
     * @var string
41
     */
42
    protected $participationSubjectLine = '';
43
44
    /**
45
     * @var string
46
     */
47
    protected $shareCommentSubjectLine = '';
48
49
    /**
50
     * @var string
51
     */
52
    protected $sharePostSubjectLine = '';
53
54
    /**
55
     * @var string
56
     */
57
    protected $inviteToTeamSubjectLine = '';
58
59
    /**
60
     * @var string
61
     * The field associated with the invitation request Id
62
     */
63
    protected $onInvitationField = 'code';
64
65
    /**
66
     * @var string
67
     */
68
    protected $gameEntityClass = 'PlaygroundGame\Entity\Game';
69
70
    /**
71
     * Set game entity class name
72
     *
73
     * @param $gameEntityClass
74
     *
75
     * @return ModuleOptions
76
     */
77
    public function setGameEntityClass($gameEntityClass)
78
    {
79
        $this->gameEntityClass = $gameEntityClass;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @return string
86
     */
87
    public function getGameEntityClass()
88
    {
89
        return $this->gameEntityClass;
90
    }
91
92
    /**
93
     * Set media path
94
     *
95
     * @param  string $media_path
96
     *
97
     * @return \PlaygroundGame\Options\ModuleOptions
98
     */
99
    public function setMediaPath($media_path)
100
    {
101
        $this->media_path = $media_path;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getMediaPath()
110
    {
111
        return $this->media_path;
112
    }
113
114
    /**
115
     *
116
     * @param  string $media_url
117
     *
118
     * @return \PlaygroundGame\Options\ModuleOptions
119
     */
120
    public function setMediaUrl($media_url)
121
    {
122
        $this->media_url = $media_url;
123
124
        return $this;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getMediaUrl()
131
    {
132
        return $this->media_url;
133
    }
134
    
135
    public function setEmailFromAddress($emailFromAddress)
136
    {
137
        $this->emailFromAddress = $emailFromAddress;
138
139
        return $this;
140
    }
141
    
142
    public function getEmailFromAddress()
143
    {
144
        return $this->emailFromAddress;
145
    }
146
    
147
    public function setDefaultSubjectLine($defaultSubjectLine)
148
    {
149
        $this->defaultSubjectLine = $defaultSubjectLine;
150
151
        return $this;
152
    }
153
    
154
    public function getDefaultSubjectLine()
155
    {
156
        return $this->defaultSubjectLine;
157
    }
158
    
159
    public function setParticipationSubjectLine($participationSubjectLine)
160
    {
161
        $this->participationSubjectLine = $participationSubjectLine;
162
163
        return $this;
164
    }
165
    
166
    public function getParticipationSubjectLine()
167
    {
168
        return $this->participationSubjectLine;
169
    }
170
    
171
    public function setSharePostSubjectLine($sharePostSubjectLine)
172
    {
173
        $this->sharePostSubjectLine = $sharePostSubjectLine;
174
175
        return $this;
176
    }
177
    
178
    public function getSharePostSubjectLine()
179
    {
180
        return $this->sharePostSubjectLine;
181
    }
182
183
    public function setShareCommentSubjectLine($shareCommentSubjectLine)
184
    {
185
        $this->shareCommentSubjectLine = $shareCommentSubjectLine;
186
187
        return $this;
188
    }
189
    
190
    public function getShareCommentSubjectLine()
191
    {
192
        return $this->shareCommentSubjectLine;
193
    }
194
195
    public function setInviteToTeamSubjectLine($inviteToTeamSubjectLine)
196
    {
197
        $this->inviteToTeamSubjectLine = $inviteToTeamSubjectLine;
198
199
        return $this;
200
    }
201
    
202
    public function getInviteToTeamSubjectLine()
203
    {
204
        return $this->inviteToTeamSubjectLine;
205
    }
206
207
    public function setOnInvitationField($onInvitationField)
208
    {
209
        $this->onInvitationField = $onInvitationField;
210
    }
211
212
    public function getOnInvitationField()
213
    {
214
        return $this->onInvitationField;
215
    }
216
217
    /**
218
     *
219
     * @param  string $core_layout
220
     *
221
     * @return \PlaygroundGame\Options\ModuleOptions
222
     */
223
    public function setCoreLayout($core_layout)
224
    {
225
        $this->core_layout = $core_layout;
0 ignored issues
show
Documentation Bug introduced by
It seems like $core_layout of type string is incompatible with the declared type array of property $core_layout.

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...
226
227
        return $this;
228
    }
229
230
    /**
231
     * @return string
232
     */
233
    public function getCoreLayout()
234
    {
235
        return $this->core_layout;
236
    }
237
}
238