Issues (46)

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.

lib/Trello/Model/Organization.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
namespace Trello\Model;
4
5
/**
6
 * @codeCoverageIgnore
7
 */
8
class Organization extends AbstractObject implements OrganizationInterface
9
{
10
    protected $apiName = 'organization';
11
12
    protected $loadParams = array(
13
        'fields' => 'all',
14
        'members' => 'all',
15
        'membersInvited' => 'all',
16
    );
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function setName($name)
22
    {
23
        $this->data['name'] = $name;
24
25
        return $this;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getName()
32
    {
33
        return $this->data['name'];
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function setDisplayName($displayName)
40
    {
41
        $this->data['displayName'] = $displayName;
42
43
        return $this;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function getDisplayName()
50
    {
51
        return $this->data['displayName'];
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function setDescription($desc)
58
    {
59
        $this->data['desc'] = $desc;
60
61
        return $this;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function getDesciption()
68
    {
69
        return $this->data['desc'];
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function setDescriptionData($descData)
76
    {
77
        $this->data['descData'] = $descData;
78
79
        return $this;
80
    }
81
82
    /**
83
     * {@inheritdoc}
84
     */
85
    public function getDescriptionData()
86
    {
87
        return $this->data['descData'];
88
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function setBoardIds(array $boardIds)
94
    {
95
        $this->data['idBoards'] = $boardIds;
96
97
        return $this;
98
    }
99
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function getBoardIds()
104
    {
105
        return $this->data['idBoards'];
106
    }
107
108
    /**
109
     * {@inheritdoc}
110
     */
111 View Code Duplication
    public function getBoards()
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
112
    {
113
        $boards = array();
114
115
        foreach ($this->data['idBoards'] as $boardId) {
116
            $boards[] = new Board($this->client, $boardId);
117
        }
118
119
        return $boards;
120
    }
121
122
    /**
123
     * {@inheritdoc}
124
     */
125
    public function setInvited(array $invited)
126
    {
127
        $this->data['invited'] = $invited;
128
129
        return $this;
130
    }
131
132
    /**
133
     * {@inheritdoc}
134
     */
135
    public function getInvited()
136
    {
137
        return $this->data['invited'];
138
    }
139
140
    /**
141
     * {@inheritdoc}
142
     */
143
    public function setInvitations(array $invitations)
144
    {
145
        $this->data['invitations'] = $invitations;
146
147
        return $this;
148
    }
149
150
    /**
151
     * {@inheritdoc}
152
     */
153
    public function getInvitations()
154
    {
155
        return $this->data['invitations'];
156
    }
157
158
    /**
159
     * {@inheritdoc}
160
     */
161
    public function getMemberships()
162
    {
163
        return $this->data['memberships'];
164
    }
165
166
    /**
167
     * {@inheritdoc}
168
     */
169
    public function setPreferences(array $prefs)
170
    {
171
        $this->data['prefs'] = $prefs;
172
173
        return $this;
174
    }
175
176
    /**
177
     * {@inheritdoc}
178
     */
179
    public function getPreferences()
180
    {
181
        return $this->data['prefs'];
182
    }
183
184
    /**
185
     * {@inheritdoc}
186
     */
187
    public function setPowerUps(array $powerUps)
188
    {
189
        $this->data['powerUps'] = $powerUps;
190
191
        return $this;
192
    }
193
194
    /**
195
     * {@inheritdoc}
196
     */
197
    public function getPowerUps()
198
    {
199
        return $this->data['powerUps'];
200
    }
201
202
    /**
203
     * {@inheritdoc}
204
     */
205
    public function setProducts(array $products)
206
    {
207
        $this->data['products'] = $products;
208
209
        return $this;
210
    }
211
212
    /**
213
     * {@inheritdoc}
214
     */
215
    public function getProducts()
216
    {
217
        return $this->data['products'];
218
    }
219
220
    /**
221
     * {@inheritdoc}
222
     */
223
    public function getBillableMemberCount()
224
    {
225
        return $this->data['billableMemberCount'];
226
    }
227
228
    /**
229
     * {@inheritdoc}
230
     */
231
    public function setUrl($url)
232
    {
233
        $this->data['url'] = $url;
234
235
        return $this;
236
    }
237
238
    /**
239
     * {@inheritdoc}
240
     */
241
    public function getUrl()
242
    {
243
        return $this->data['url'];
244
    }
245
246
    /**
247
     * {@inheritdoc}
248
     */
249
    public function setWebsite($website)
250
    {
251
        $this->data['website'] = $website;
252
253
        return $this;
254
    }
255
256
    /**
257
     * {@inheritdoc}
258
     */
259
    public function getWebsite()
260
    {
261
        return $this->data['website'];
262
    }
263
264
    /**
265
     * {@inheritdoc}
266
     */
267
    public function setLogoHash($logoHash)
268
    {
269
        $this->data['logoHash'] = $logoHash;
270
271
        return $this;
272
    }
273
274
    /**
275
     * {@inheritdoc}
276
     */
277
    public function getLogoHash()
278
    {
279
        return $this->data['logoHash'];
280
    }
281
282
    /**
283
     * {@inheritdoc}
284
     */
285
    public function setPremiumFeatures(array $premiumFeatures)
286
    {
287
        $this->data['premiumFeatures'] = $premiumFeatures;
288
289
        return $this;
290
    }
291
292
    /**
293
     * {@inheritdoc}
294
     */
295
    public function getPremiumFeatures()
296
    {
297
        return $this->data['premiumFeatures'];
298
    }
299
}
300