Issues (5)

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/Chrl/AppBundle/Entity/User.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 Chrl\AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Class User
9
 * @package AppBundle\Entity
10
 *
11
 * @ORM\Entity
12
 * @ORM\Table(name="user")
13
 */
14
class User
15
{
16
    /**
17
     * @return mixed
18
     */
19
    public function getId()
20
    {
21
        return $this->id;
22
    }
23
24
    /**
25
     * @param mixed $id
26
     * @return User
27
     */
28
    public function setId($id)
29
    {
30
        $this->id = $id;
31
        return $this;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getChatId()
38
    {
39
        return $this->chatId;
40
    }
41
42
    /**
43
     * @param int $chatId
44
     * @return User
45
     */
46
    public function setChatId($chatId)
47
    {
48
        $this->chatId = $chatId;
49
        return $this;
50
    }
51
52
    /**
53
     * @ORM\Id
54
     * @ORM\Column(type="integer")
55
     * @ORM\GeneratedValue(strategy="AUTO")
56
     */
57
    protected $id;
58
59
    /**
60
     * @var integer
61
     *
62
     * @ORM\Column(name="chat_id", type="bigint", nullable=false)
63
     */
64
    protected $chatId;
65
66
    /**
67
     * @ORM\Column(name="telegram_id", type="bigint")
68
     */
69
    protected $tgId;
70
71
    /**
72
     * @return mixed
73
     */
74
    public function getTgId()
75
    {
76
        return $this->tgId;
77
    }
78
79
    /**
80
     * @param mixed $tgId
81
     */
82
    public function setTgId($tgId)
83
    {
84
        $this->tgId = $tgId;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getName()
91
    {
92
        return $this->name;
93
    }
94
95
    /**
96
     * @param string $name
97
     */
98
    public function setName($name)
99
    {
100
        $this->name = $name;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getAlias()
107
    {
108
        return str_replace('_', '\_', $this->alias);
109
    }
110
111
    /**
112
     * @param string $alias
113
     */
114
    public function setAlias($alias)
115
    {
116
        $this->alias = $alias;
117
    }
118
119
    /**
120
     * @return int
121
     */
122
    public function getPoints()
123
    {
124
        return $this->points;
125
    }
126
127
    /**
128
     * @param int $points
129
     */
130
    public function setPoints($points)
131
    {
132
        $this->points = $points;
133
    }
134
135
    /**
136
     * @return int
137
     */
138
    public function getGame()
139
    {
140
        return $this->game;
141
    }
142
143
    /**
144
     * @param Game $game
145
     */
146
    public function setGame($game)
147
    {
148
        $this->game = $game;
0 ignored issues
show
Documentation Bug introduced by
It seems like $game of type object<Chrl\AppBundle\Entity\Game> is incompatible with the declared type integer of property $game.

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...
149
    }
150
151
    /**
152
     * @var string
153
     *
154
     * @ORM\Column(name="name", type="text")
155
     */
156
    protected $name;
157
158
    /**
159
     * @var string
160
     *
161
     * @ORM\Column(name="alias", type="string", nullable=true)
162
     */
163
    protected $alias;
164
165
    /**
166
     * @var integer
167
     *
168
     * @ORM\Column(name="points", type="bigint")
169
     */
170
    protected $points;
171
172
    /**
173
     * @var integer
174
     *
175
     * @ORM\ManyToOne(targetEntity="Chrl\AppBundle\Entity\Game", inversedBy="users")
176
     */
177
    public $game;
178
    /**
179
     * @ORM\OneToMany(targetEntity="Chrl\AppBundle\Entity\Message", mappedBy="user")
180
     */
181
    public $messages;
182
183
    /**
184
     * @ORM\Column(type="integer")
185
     */
186
    public $fastestAnswer = 10000;
187
}
188