Issues (2687)

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/Eccube/Form/Type/OrderSearchType.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
 * This file is part of EC-CUBE
4
 *
5
 * Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
6
 *
7
 * http://www.lockon.co.jp/
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2
12
 * of the License, or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
 */
23
24
25
namespace Eccube\Form\Type;
26
27
use Symfony\Component\Form\AbstractType;
28
use Symfony\Component\Form\Extension\Core\Type;
29
use Symfony\Component\Form\FormBuilderInterface;
30
use Symfony\Component\Validator\Constraints as Assert;
31
32
// deprecated 3.1で削除予定
33
class OrderSearchType extends AbstractType
34
{
35
    public $app;
36
37 663
    public function __construct(\Silex\Application $app)
38
    {
39 663
        $this->app = $app;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function buildForm(FormBuilderInterface $builder, array $options)
46
    {
47
        $app = $this->app;
0 ignored issues
show
$app is not used, you could remove the assignment.

This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.

$myVar = 'Value';
$higher = false;

if (rand(1, 6) > 3) {
    $higher = true;
} else {
    $higher = false;
}

Both the $myVar assignment in line 1 and the $higher assignment in line 2 are dead. The first because $myVar is never used and the second because $higher is always overwritten for every possible time line.

Loading history...
48
49
        $builder
50
            ->add('order_id_start', 'integer', array(
51
                'label' => '注文番号',
52
                'required' => false,
53
                'constraints' => array(
54
                    new Assert\Type(array(
55
                        'type' => 'integer',
56
                    )),
57
                ),
58
            ))
59
            ->add('order_id_end', 'integer', array(
60
                'label' => '注文番号',
61
                'required' => false,
62
                'constraints' => array(
63
                    new Assert\Type(array(
64
                        'type' => 'integer',
65
                    )),
66
                ),
67
            ))
68
            ->add('status', 'order_status', array(
69
                'label' => '対応状況',
70
            ))
71
            ->add('name', 'text', array(
72
                'required' => false,
73
            ))
74
            ->add('kana', 'text', array(
75
                'required' => false,
76
            ))
77
            ->add('email', 'email', array(
78
                'required' => false,
79
            ))
80
            ->add('tel', 'tel', array(
81
                'required' => false,
82
            ))
83
            ->add('birth_start', 'birthday', array(
84
                'label' => '誕生日',
85
                'required' => false,
86
                'input' => 'datetime',
87
                'widget' => 'choice',
88
                'format' => 'yyyy-MM-dd',
89
                'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'),
90
            ))
91
            ->add('birth_end', 'birthday', array(
92
                'label' => '誕生日',
93
                'required' => false,
94
                'input' => 'datetime',
95
                'widget' => 'choice',
96
                'format' => 'yyyy-MM-dd',
97
                'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'),
98
            ))
99
            ->add('sex', 'sex', array(
100
                'label' => '性別',
101
                'required' => false,
102
                'expanded' => true,
103
                'multiple' => true,
104
            ))
105
            ->add('payment', 'payment', array(
106
                'label' => '支払方法',
107
                'required' => false,
108
                'expanded' => true,
109
                'multiple' => true,
110
            ))
111
            ->add('order_date_start', 'date', array(
112
                'label' => '注文日',
113
                'required' => false,
114
                'input' => 'datetime',
115
                'widget' => 'choice',
116
                'format' => 'yyyy-MM-dd',
117
                'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'),
118
            ))
119
            ->add('order_date_end', 'date', array(
120
                'label' => '注文日',
121
                'required' => false,
122
                'input' => 'datetime',
123
                'widget' => 'choice',
124
                'format' => 'yyyy-MM-dd',
125
                'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'),
126
            ))
127
            ->add('update_date_start', 'date', array(
128
                'label' => '更新日',
129
                'required' => false,
130
                'input' => 'datetime',
131
                'widget' => 'choice',
132
                'format' => 'yyyy-MM-dd',
133
                'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'),
134
            ))
135
            ->add('update_date_end', 'date', array(
136
                'label' => '更新日',
137
                'required' => false,
138
                'input' => 'datetime',
139
                'widget' => 'choice',
140
                'format' => 'yyyy-MM-dd',
141
                'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'),
142
            ))
143
            ->add('payment_total_start', 'integer', array(
144
                'label' => '購入金額',
145
                'required' => false,
146
            ))
147
            ->add('payment_total_end', 'integer', array(
148
                'label' => '購入金額',
149
                'required' => false,
150
            ))
151
            ->add('buy_product_name', 'text', array(
152
                'label' => '購入商品名',
153
                'required' => false,
154
            ))
155
        ;
156
    }
157
158
    /**
159
     * {@inheritdoc}
160
     */
161 663
    public function getName()
162
    {
163 663
        return 'order_search';
164
    }
165
}
166