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.

Kunstmaan/NodeBundle/Entity/NodeVersionLock.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 Kunstmaan\NodeBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * NodeVersionLock
9
 *
10
 * @ORM\Table(name="kuma_node_version_lock", indexes={
11
 *     @ORM\Index(name="nt_owner_public_idx", columns={"owner", "node_translation_id", "public_version"}),
12
 * })
13
 * @ORM\Entity(repositoryClass="Kunstmaan\NodeBundle\Repository\NodeVersionLockRepository")
14
 */
15
class NodeVersionLock extends \Kunstmaan\AdminBundle\Entity\AbstractEntity
16
{
17
    /**
18
     * @var string
19
     *
20
     * @ORM\Column(name="owner", type="string", length=255)
21
     */
22
    private $owner;
23
24
    /**
25
     * @var NodeTranslation
26
     *
27
     * @ORM\ManyToOne(targetEntity="Kunstmaan\NodeBundle\Entity\NodeTranslation")
28
     * @ORM\JoinColumn(name="node_translation_id", referencedColumnName="id")
29
     */
30
    private $nodeTranslation;
31
32
    /**
33
     * @var bool
34
     *
35
     * @ORM\Column(name="public_version", type="boolean")
36
     */
37
    private $publicVersion;
38
39
    /**
40
     * @ORM\Column(name="created_at", type="datetime")
41
     */
42
    private $createdAt;
43
44
    /**
45
     * Set createdAt
46
     *
47
     * @param \DateTime $createdAt
48
     *
49
     * @return NodeVersionLock
50
     */
51 1
    public function setCreatedAt($createdAt)
52
    {
53 1
        $this->createdAt = $createdAt;
54
55 1
        return $this;
56
    }
57
58
    /**
59
     * Get createdAt
60
     *
61
     * @return \DateTime
62
     */
63 1
    public function getCreatedAt()
64
    {
65 1
        return $this->createdAt;
66
    }
67
68
    /**
69
     * @return bool
70
     */
71 1
    public function isPublicVersion()
72
    {
73 1
        return $this->publicVersion;
74
    }
75
76
    /**
77
     * @param bool $publicVersion
78
     */
79 1
    public function setPublicVersion($publicVersion)
80
    {
81 1
        $this->publicVersion = $publicVersion;
82 1
    }
83
84
    /**
85
     * Set owner
86
     *
87
     * @param string
88
     *
89
     * @return NodeVersionLock
90
     */
91 1
    public function setOwner($owner)
92
    {
93 1
        $this->owner = $owner;
94
95 1
        return $this;
96
    }
97
98
    /**
99
     * Get owner
100
     *
101
     * @return string
102
     */
103 1
    public function getOwner()
104
    {
105 1
        return $this->owner;
106
    }
107
108
    /**
109
     * Set nodeTranslation
110
     *
111
     * @param \Kunstmaan\NodeBundle\Entity\NodeTranslation $nodeTranslation
0 ignored issues
show
Should the type for parameter $nodeTranslation not be null|NodeTranslation?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
112
     *
113
     * @return NodeVersionLock
114
     */
115 1
    public function setNodeTranslation(NodeTranslation $nodeTranslation = null)
116
    {
117 1
        $this->nodeTranslation = $nodeTranslation;
118
119 1
        return $this;
120
    }
121
122
    /**
123
     * Get nodeTranslation
124
     *
125
     * @return \Kunstmaan\NodeBundle\Entity\NodeTranslation
126
     */
127 1
    public function getNodeTranslation()
128
    {
129 1
        return $this->nodeTranslation;
130
    }
131
}
132