Issues (31)

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.

sandbox/index.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
require_once __DIR__ . '/../vendor/autoload.php';
3
//Alias
4
use Ext\Core as Ext;
5
6
7
8
$navigation = Ext::create('Ext.Panel.Panel',[
9
    'region'=>'west',
10
    'width' => 150,
11
    'collapsible'=>true,
12
    'title' => 'Navigation',
13
    'frame' => true
14
]);
15
$content = Ext::create('Ext.Form.Panel',[
16
    'region' => 'center',
17
    'title' => 'Content',
18
    'frame' => true,
19
]);
20
$controls = [
21
    Ext::create('Ext.Form.Field.Text',[
22
        'fieldLabel'=>'Test label',
23
        'value' => 'Value',
24
        'name' => 'fname',
25
    ]),
26
    Ext::create('Ext.Form.Field.Checkbox',[
27
        'fieldLabel'=>'Test checkbox',
28
        'value' => false,
29
        'name' => 'fname',
30
    ]),
31
    Ext::create('Ext.Form.Field.Combobox',[
32
        'fieldLabel'=>'Test combo',
33
        'name' => 'fname',
34
    ]),
35
    Ext::create('Ext.Form.Field.Date',[
36
        'fieldLabel'=>'Test date',
37
        'name' => 'fname',
38
    ]),
39
    Ext::create('Ext.Form.Field.Display',[
40
        'fieldLabel'=>'Test display',
41
        'name' => 'fname',
42
        'value' => 'display'
43
    ]),
44
    Ext::create('Ext.Form.Field.File',[
45
        'fieldLabel'=>'Test file',
46
        'name' => 'fname',
47
        'value' => 'display'
48
    ]),
49
    Ext::create('Ext.Form.Field.Hidden',[
50
        'fieldLabel'=>'Test file',
51
        'name' => 'fname',
52
        'value' => 'hidden'
53
    ]),
54
    Ext::create('Ext.Form.Field.Radio',[
55
        'fieldLabel'=>'Test radio',
56
        'name' => 'fname',
57
        'value' => 1,
58
    ]),
59
    Ext::create('Ext.Form.Field.TextArea',[
60
        'fieldLabel'=>'Test area',
61
        'name' => 'fname',
62
        'value' => 'area content',
63
    ]),
64
    Ext::create('Ext.Form.CheckboxGroup',[
65
        'fieldLabel'=>'Checkbox group',
66
        'name' => 'fname',
67
        'vertical' => true,
68
        'columns' => 1,
69
        'items' => [
70
            Ext::create('Ext.Form.Field.Checkbox',[
71
                'fieldLabel'=>'Test checkbox',
72
                'value' => false,
73
                'name' => 'fname',
74
            ]),
75
            Ext::create('Ext.Form.Field.Checkbox',[
76
                'fieldLabel'=>'Test checkbox',
77
                'value' => false,
78
                'name' => 'fname',
79
            ]),
80
        ]
81
    ]),
82
    Ext::create('Ext.Form.RadioGroup',[
83
        'fieldLabel'=>'Radio group',
84
        'name' => 'fname',
85
        'vertical' => true,
86
        'columns' => 1,
87
        'items' => [
88
            Ext::create('Ext.Form.Field.Radio',[
89
                'fieldLabel'=>'Test label',
90
                'value' => false,
91
                'name' => 'fname',
92
            ]),
93
            Ext::create('Ext.Form.Field.Radio',[
94
                'boxLabel'=>'Test boxLabel',
95
                'value' => false,
96
                'name' => 'fname',
97
            ]),
98
        ]
99
    ]),
100
];
101
102
$content->setItems($controls);
103
$content->setButtons(
104
  [
105
      Ext::create('Ext.Button.Button',[
106
          'text' => 'Button',
107
      ]),
108
      Ext::create('Ext.Button.Button',[
109
          'text' => 'Disabled Button',
110
          'disabled' => true,
111
      ]),
112
      Ext::create('Ext.Button.Button',[
113
          'text' => 'Pressed Button',
114
          'pressed' => true,
115
      ]),
116
  ]
117
);
118
/** @var Ext\Grid\Panel $grid */
119
120
$grid = Ext::create('Ext.Grid.Panel', [
121
        'title' => 'Grid',
122
        'region'=> 'south',
123
        'height' => 300,
124
        'frame' => true,
125
        'controller' => 'foo',
126
        'store' => Ext::create('Ext.data.Store',[
127
            'data'=>[
128
                [
129
                    'key' => 'First key',
130
                    'value' => 'First value',
131
                ],
132
                [
133
                    'key' => 'Secons key',
134
                    'value' => 'Double click me',
135
                ],
136
            ],
137
            'fields' => [
138
                Ext::create('Ext.data.Field.Field',['name'=>'key']),
139
            ],
140
            'storeId' => 'testStore',
141
        ]),
142
        'columns' => [
143
            Ext::create('Ext.Grid.Column.Column',[
144
                'text' => 'First field',
145
                'dataIndex' => 'key',
146
            ]),
147
            Ext::create('Ext.Grid.Column.Column',[
148
                'text' => 'Second field',
149
                'dataIndex' => 'value',
150
            ]),
151
        ],
152
        'dockedItems' => [
153
            Ext::create('Ext.Toolbar.Paging',[
154
                'dock'=>'bottom',
155
                'store'=>'testStore',
156
                'displayInfo'=>true
157
            ]),
158
        ]
159
    ]
160
);
161
162
$grid->addListener(Ext::create('Ext.Event.Listener',[
163
    'event' => 'rowdblclick',
164
    'function' => 'alert',
165
    'scope' => 'self.controller'
166
]));
167
168
$component = Ext::create('Ext.Container.Viewport',[
169
    'layout' => 'border',
170
    'items'  => [$navigation, $content, $grid]
171
]);
172
173
174
$componentJSON = $component->serialize(new \Ext\Serializer\ExtSerializer());
175
176
if(array_key_exists('json',$_REQUEST)){
177
    echo $componentJSON;
178
    die();
179
}
180
181
182
/*
0 ignored issues
show
Unused Code Comprehensibility introduced by
42% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
183
 * Ext.create('Ext.Container', {
184
    fullscreen: true,
185
    layout: 'vbox',
186
    items: [
187
        {
188
            docked: 'left',
189
            xtype: 'panel',
190
            width: 100,
191
            html: 'This is docked to the left'
192
        },
193
        {
194
            xtype: 'panel',
195
            html: 'message list',
196
            flex: 1
197
        },
198
        {
199
            xtype: 'panel',
200
            html: 'message preview',
201
            flex: 2
202
        }
203
    ]
204
});
205
 */
206
include "template.php";