Issues (3099)

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.

DashboardBundle/Entity/AnalyticsConfig.php (3 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 Kunstmaan\DashboardBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Kunstmaan\AdminBundle\Entity\AbstractEntity;
7
8
/**
9
 * @ORM\Table(name="kuma_analytics_config")
10
 * @ORM\Entity(repositoryClass="Kunstmaan\DashboardBundle\Repository\AnalyticsConfigRepository")
11
 */
12
class AnalyticsConfig extends AbstractEntity
13
{
14
    /**
15
     * @ORM\OneToMany(targetEntity="AnalyticsOverview", mappedBy="config", cascade={"persist", "remove"})
16
     */
17
    private $overviews;
18
19
    /**
20
     * @ORM\OneToMany(targetEntity="AnalyticsSegment", mappedBy="config", cascade={"persist", "remove"})
21
     */
22
    private $segments;
23
24
    /**
25
     * @var string
26
     *
27
     * @ORM\Column(name="name", type="text", nullable=true)
28
     */
29
    private $name;
30
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="token", type="text", nullable=true)
35
     */
36
    private $token;
37
38
    /**
39
     * @var string
40
     *
41
     * @ORM\Column(name="account_id", type="string", nullable=true)
42
     */
43
    private $accountId;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="property_id", type="string", nullable=true)
49
     */
50
    private $propertyId;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="profile_id", type="string", nullable=true)
56
     */
57
    private $profileId;
58
59
    /**
60
     * @var \DateTime
61
     *
62
     * @ORM\Column(name="last_update", type="datetime", nullable=true)
63
     */
64
    private $lastUpdate;
65
66
    /**
67
     * @var bool
68
     *
69
     * @ORM\Column(name="disable_goals", type="boolean")
70
     */
71
    private $disableGoals = false;
72
73
    /**
74
     * Set overviews
75
     *
76
     * @param array $overviews
77
     *
78
     * @return AnalyticsDailyOverviews
0 ignored issues
show
Should the return type not be AnalyticsConfig?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
79
     */
80 1
    public function setOverviews($overviews)
81
    {
82 1
        $this->overviews = $overviews;
83
84 1
        return $this;
85
    }
86
87
    /**
88
     * Get overviews
89
     *
90
     * @return array
91
     */
92 1
    public function getOverviews()
93
    {
94 1
        return $this->overviews;
95
    }
96
97
    /**
98
     * Set segments
99
     *
100
     * @param array $segments
101
     *
102
     * @return AnalyticsDailysegments
0 ignored issues
show
Should the return type not be AnalyticsConfig?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
103
     */
104 1
    public function setSegments($segments)
105
    {
106 1
        $this->segments = $segments;
107
108 1
        return $this;
109
    }
110
111
    /**
112
     * Get segments
113
     *
114
     * @return array
115
     */
116 1
    public function getSegments()
117
    {
118 1
        return $this->segments;
119
    }
120
121
    /**
122
     * Get name
123
     *
124
     * @return string
125
     */
126 1
    public function getName()
127
    {
128 1
        return $this->name;
129
    }
130
131
    /**
132
     * Set name
133
     *
134
     * @param string $name
135
     *
136
     * @return Analyticsname
0 ignored issues
show
Should the return type not be AnalyticsConfig?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
137
     */
138 1
    public function setName($name)
139
    {
140 1
        $this->name = $name;
141
142 1
        return $this;
143
    }
144
145
    /**
146
     * Get token
147
     *
148
     * @return string
149
     */
150 1
    public function getToken()
151
    {
152 1
        return $this->token;
153
    }
154
155
    /**
156
     * Set token
157
     *
158
     * @param string $token
159
     *
160
     * @return $this
161
     */
162 1
    public function setToken($token)
163
    {
164 1
        $this->token = $token;
165
166 1
        return $this;
167
    }
168
169
    /**
170
     * Get propertyId
171
     *
172
     * @return string
173
     */
174 1
    public function getPropertyId()
175
    {
176 1
        return $this->propertyId;
177
    }
178
179
    /**
180
     * Set propertyId
181
     *
182
     * @param string $propertyId
183
     *
184
     * @return $this
185
     */
186 1
    public function setPropertyId($propertyId)
187
    {
188 1
        $this->propertyId = $propertyId;
189
190 1
        return $this;
191
    }
192
193
    /**
194
     * Get accountId
195
     *
196
     * @return string
197
     */
198 1
    public function getAccountId()
199
    {
200 1
        return $this->accountId;
201
    }
202
203
    /**
204
     * Set accountId
205
     *
206
     * @param string $accountId
207
     *
208
     * @return $this
209
     */
210 1
    public function setAccountId($accountId)
211
    {
212 1
        $this->accountId = $accountId;
213
214 1
        return $this;
215
    }
216
217
    /**
218
     * Get profileId
219
     *
220
     * @return string
221
     */
222 1
    public function getProfileId()
223
    {
224 1
        return $this->profileId;
225
    }
226
227
    /**
228
     * Set profileId
229
     *
230
     * @param string $profileId
231
     *
232
     * @return $this
233
     */
234 1
    public function setProfileId($profileId)
235
    {
236 1
        $this->profileId = $profileId;
237
238 1
        return $this;
239
    }
240
241
    /**
242
     * Get lastUpdate
243
     *
244
     * @return \DateTime
245
     */
246 1
    public function getLastUpdate()
247
    {
248 1
        return $this->lastUpdate;
249
    }
250
251
    /**
252
     * Set lastUpdate
253
     *
254
     * @param \DateTime $lastUpdate
255
     *
256
     * @return $this
257
     */
258 1
    public function setLastUpdate($lastUpdate)
259
    {
260 1
        $this->lastUpdate = $lastUpdate;
261
262 1
        return $this;
263
    }
264
265
    /**
266
     * Get disableGoals
267
     *
268
     * @return bool
269
     */
270 1
    public function getDisableGoals()
271
    {
272 1
        return $this->disableGoals;
273
    }
274
275
    /**
276
     * Set disableGoals
277
     *
278
     * @param bool $disableGoals
279
     *
280
     * @return $this
281
     */
282 1
    public function setDisableGoals($disableGoals)
283
    {
284 1
        $this->disableGoals = $disableGoals;
285
286 1
        return $this;
287
    }
288
}
289