Issues (789)

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.

tests/acceptance/ExportCest.php (23 issues)

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
4
class ExportCest extends CestCase
5
{
6
	public function _before(AcceptanceTester $I)
0 ignored issues
show
The parameter $I is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
7
	{
8
	}
9
10
	public function _after(AcceptanceTester $I)
0 ignored issues
show
The parameter $I is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
11
	{
12
	}
13
14
	// tests
15
	public function it_should_export_evidence_confirm_for_all_visitors(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
16
	{
17
		$I->wantTo('Export evidence cofirmation for all visitors');
18
		$I = $this->logIn($I);
19
		$I->amOnPage('/srazvs/export/?mid=1');
20
		$I->seeInCurrentUrl('/srazvs/export/');
21
		$I->click('potvrzení o přijetí zálohy');
22
		$I->seeInCurrentUrl('/srazvs/export/evidence/confirm');
23
		$I->see('POTVRZENÍ O PŘIJETÍ ZÁLOHY');
24
		$I->see('Přijato od:');
25
		$I->see('Účel platby:');
26
		$I->see('Celkem Kč:');
27
		$I->see('Slovy Kč:');
28
	}
29
30 View Code Duplication
	public function it_should_export_evidence_for_all_visitors(AcceptanceTester $I)
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
31
	{
32
		$I->wantTo('Export evidence for all visitors');
33
		$I = $this->logIn($I);
34
		$I->amOnPage('/srazvs/export/?mid=1');
35
		$I->seeInCurrentUrl('/srazvs/export/');
36
		$I->click('příjmový pokladní doklad');
37
		$I->seeInCurrentUrl('/srazvs/export/evidence/');
38
		$I->see('PŘÍJMOVÝ POKLADNÍ DOKLAD');
39
		$I->see('Přijato od:');
40
		$I->see('Účel platby:');
41
		$I->see('Celkem Kč:');
42
		$I->see('Slovy Kč:');
43
		$I->see('Převzal:');
44
	}
45
46 View Code Duplication
	public function it_should_export_evidence_summary(AcceptanceTester $I)
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
47
	{
48
		$I->wantTo('Export evidence summary');
49
		$I = $this->logIn($I);
50
		$I->amOnPage('/srazvs/export/?mid=1');
51
		$I->seeInCurrentUrl('/srazvs/export/');
52
		$I->click('kompletní příjmový pokladní doklad');
53
		$I->seeInCurrentUrl('/srazvs/export/evidence/summary');
54
		$I->see('Příjmení a Jméno');
55
		$I->see('Narození');
56
		$I->see('Adresa');
57
		$I->see('Jednotka');
58
		$I->see('Záloha');
59
		$I->see('Doplatek');
60
		$I->see('Podpis');
61
	}
62
63
	public function it_should_export_public_program(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
64
	{
65
		$I->wantTo('Export public program');
66
		$I = $this->logIn($I);
67
		$I->amOnPage('/srazvs/export/?mid=1');
68
		$I->seeInCurrentUrl('/srazvs/export/');
69
		$I->click('veřejný program');
70
		$I->seeInCurrentUrl('/srazvs/export/program/public');
71
		$I->see('program srazu vodních skautů');
72
		$I->see('pátek');
73
		$I->see('sobota');
74
		$I->see('neděle');
75
		$I->see('DEBUG_MODE');
76
	}
77
78
	public function it_should_export_publically_public_program(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
79
	{
80
		$I->wantTo('Export publically public program');
81
		$I->amOnPage('/srazvs/program/public');
82
		$I->seeInCurrentUrl('/srazvs/program/public');
83
		$I->click('Stáhněte si program srazu ve formátu PDF');
84
		$I->seeInCurrentUrl('/srazvs/export/program/public/');
85
		$I->see('program srazu vodních skautů');
86
		$I->see('pátek');
87
		$I->see('sobota');
88
		$I->see('neděle');
89
		$I->see('DEBUG_MODE');
90
	}
91
92
	public function it_should_export_private_program(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
93
	{
94
		$I->wantTo('Export private program');
95
		$I = $this->logIn($I);
96
		$I->amOnPage('/srazvs/export/?mid=1');
97
		$I->seeInCurrentUrl('/srazvs/export/');
98
		$I->click('osobní program');
99
		$I->seeInCurrentUrl('/srazvs/export/program/cards');
100
		$I->see('SRAZ VS');
101
		$I->see('pátek');
102
		$I->see('sobota');
103
		//$I->see('neděle');
104
		$I->see('DEBUG_MODE');
105
	}
106
107
	public function it_should_export_meeting_shedule_in_big_format(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
108
	{
109
		$I->wantTo('Export meeting schedule in big format');
110
		$I = $this->logIn($I);
111
		$I->amOnPage('/srazvs/export/?mid=1');
112
		$I->seeInCurrentUrl('/srazvs/export/');
113
		$I->click('program srazu - velký formát');
114
		$I->seeInCurrentUrl('/srazvs/export/program/large');
115
		$I->see('program srazu vodních skautů');
116
		$I->see('pátek');
117
		$I->see('sobota');
118
		$I->see('neděle');
119
		$I->see('DEBUG_MODE');
120
	}
121
122
	public function it_should_export_meeting_shedule_into_badge(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
123
	{
124
		$I->wantTo('Export meeting schedule into visitor`s badge');
125
		$I = $this->logIn($I);
126
		$I->amOnPage('/srazvs/export/?mid=1');
127
		$I->seeInCurrentUrl('/srazvs/export/');
128
		$I->click('program srazu - do visačky');
129
		$I->seeInCurrentUrl('/srazvs/export/program/badge');
130
		$I->see('pátek');
131
		$I->see('sobota');
132
		$I->see('neděle');
133
		$I->see('DEBUG_MODE');
134
	}
135
136 View Code Duplication
	public function it_should_export_name_badges(AcceptanceTester $I)
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
137
	{
138
		$I->wantTo('Export name badges');
139
		$I = $this->logIn($I);
140
		$I->amOnPage('/srazvs/export/?mid=1');
141
		$I->seeInCurrentUrl('/srazvs/export/');
142
		$I->click('jmenovky');
143
		$I->seeInCurrentUrl('/srazvs/export/name-badges');
144
		$I->see('roboTester');
145
		$I->see('DEBUG_MODE');
146
	}
147
148 View Code Duplication
	public function it_should_export_attendance_list(AcceptanceTester $I)
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
149
	{
150
		$I->wantTo('Export attendance list');
151
		$I = $this->logIn($I);
152
		$I->amOnPage('/srazvs/export/?mid=1');
153
		$I->seeInCurrentUrl('/srazvs/export/');
154
		$I->click('prezenční listina');
155
		$I->seeInCurrentUrl('/srazvs/export/attendance');
156
		$I->see('Příjmení a Jméno');
157
		$I->see('Narození');
158
		$I->see('Adresa');
159
		$I->see('Středisko/Přístav');
160
		$I->see('Podpis');
161
		$I->see('DEBUG_MODE');
162
	}
163
164
	public function it_should_export_name_list(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
165
	{
166
		$I->wantTo('Export name list');
167
		$I = $this->logIn($I);
168
		$I->amOnPage('/srazvs/export/?mid=1');
169
		$I->seeInCurrentUrl('/srazvs/export/');
170
		$I->click('jmenný seznam');
171
		$I->seeInCurrentUrl('/srazvs/export/name-list');
172
		$I->see('Příjmení, Jméno, Přezdívka');
173
		$I->see('Adresa');
174
		$I->see('Středisko/Přístav');
175
		$I->see('DEBUG_MODE');
176
	}
177
178 View Code Duplication
	public function it_should_export_meal_tickets(AcceptanceTester $I)
0 ignored issues
show
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
179
	{
180
		$I->wantTo('Export meal tickets');
181
		$I = $this->logIn($I);
182
		$I->amOnPage('/srazvs/export/?mid=1');
183
		$I->seeInCurrentUrl('/srazvs/export/');
184
		$I->click('stravenky');
185
		$I->seeInCurrentUrl('/srazvs/export/meal-ticket');
186
		$I->see('Pátek');
187
		$I->see('Sobota');
188
		$I->see('Neděle');
189
		$I->see('Snídaně');
190
		$I->see('Oběd');
191
		$I->see('Večeře');
192
		$I->see('DEBUG_MODE');
193
	}
194
195
	public function it_should_export_program_details(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
196
	{
197
		$I->wantTo('Export program details');
198
		$I = $this->logIn($I);
199
		$I->amOnPage('/srazvs/export/?mid=1');
200
		$I->seeInCurrentUrl('/srazvs/export/');
201
		$I->click('detaily programů');
202
		$I->seeInCurrentUrl('/srazvs/export/program/details');
203
		$I->see('Program:');
204
		$I->see('Popis:');
205
		$I->see('Lektor:');
206
		$I->see('E-mail:');
207
		$I->see('DEBUG_MODE');
208
	}
209
210
	public function it_should_export_publically_program_details(AcceptanceTester $I)
0 ignored issues
show
Coding Style Naming introduced by
The parameter $I is not named in camelCase.

This check marks parameter names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
211
	{
212
		$I->wantTo('Export publically program details');
213
		$I->amOnPage('/srazvs/program/public?mid=1');
214
		$I->seeInCurrentUrl('/srazvs/program/public');
215
		$I->click('Stáhněte si detaily programů srazu ve formátu PDF', '#content-pad-program');
216
		$I->seeInCurrentUrl('/srazvs/export/program/details/');
217
		$I->see('Program:');
218
		$I->see('Popis:');
219
		$I->see('Lektor:');
220
		$I->see('E-mail:');
221
		$I->see('DEBUG_MODE');
222
	}
223
224
}
225