Issues (1704)

Branch: master

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.

Bundle/QueryBundle/Entity/QueryTrait.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 Victoire\Bundle\QueryBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntity;
7
8
/**
9
 * Query trait adds the query fields.
10
 */
11
trait QueryTrait
12
{
13
    /**
14
     * @var string
15
     *
16
     * @ORM\Column(name="query", type="text", nullable=true)
17
     */
18
    protected $query;
19
20
    /**
21
     * @var string
22
     *
23
     * @ORM\Column(name="orderBy", type="text", nullable=true)
24
     */
25
    protected $orderBy;
26
27
    /**
28
     * @deprecated
29
     *  Auto list mode: businessentity type.
30
     *
31
     * @var string
32
     * @ORM\Column(name="business_entity_id", type="string", nullable=true)
33
     */
34
    protected $businessEntityName;
35
    /**
36
     * @ORM\ManyToOne(targetEntity="Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntity", cascade={"persist"})
37
     * @ORM\JoinColumn(name="related_business_entity_id", referencedColumnName="id", onDelete="CASCADE")
38
     */
39
    protected $businessEntity;
40
41
    /**
42
     * Get query.
43
     *
44
     * @return string
45
     */
46
    public function getQuery()
47
    {
48
        return $this->query;
49
    }
50
51
    /**
52
     * Set query.
53
     *
54
     * @param string $query
55
     */
56
    public function setQuery($query)
57
    {
58
        $this->query = $query;
59
    }
60
61
    /**
62
     * Get orderBy.
63
     *
64
     * @return string
65
     */
66
    public function getOrderBy()
67
    {
68
        return $this->orderBy;
69
    }
70
71
    /**
72
     * Set orderBy.
73
     *
74
     * @param string $orderBy
75
     */
76
    public function setOrderBy($orderBy)
77
    {
78
        $this->orderBy = $orderBy;
79
    }
80
81
    /**
82
     * @deprecated
83
     * Get businessEntityName.
84
     *
85
     * @return int
86
     */
87
    public function getOldBusinessEntityName()
88
    {
89
        return $this->businessEntityName;
0 ignored issues
show
Deprecated Code introduced by
The property Victoire\Bundle\QueryBun...it::$businessEntityName has been deprecated with message: Auto list mode: businessentity type.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
90
    }
91
92
    /**
93
     * Get businessEntityName.
94
     *
95
     * @return int
96
     */
97
    public function getBusinessEntityName()
98
    {
99
        return $this->getBusinessEntity()->getName();
100
    }
101
102
    /**
103
     * @deprecated
104
     * Proxy to get businessEntityName.
105
     *
106
     * @return int
107
     */
108
    public function getBusinessEntityId()
109
    {
110
        return $this->getBusinessEntityName();
111
    }
112
113
    /**
114
     * @return mixed
115
     */
116
    public function getBusinessEntity()
117
    {
118
        return $this->businessEntity;
119
    }
120
121
    /**
122
     * @param BusinessEntity $businessEntity
123
     */
124
    public function setBusinessEntity(BusinessEntity $businessEntity)
125
    {
126
        $this->businessEntity = $businessEntity;
127
    }
128
}
129