Issues (4388)

Security Analysis    no vulnerabilities found

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  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.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  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.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  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.
  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.
  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.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
  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.
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  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.
  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.
  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.
  Header Injection
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.

templates/element/navbar.php (142 issues)

1
<div class="row">
0 ignored issues
show
PHP files must only contain PHP code
Loading history...
Missing file doc comment
Loading history...
2
	<nav class="navbar sticky-top navbar-expand-xl navbar-light bg-light">
3
		<!-- Brand and toggle get grouped for better mobile display -->
4
		<?= $this->Html->link('FC Home', ['controller'=>'dashboard', 'action'=>'index'],['class'=>'navbar-brand']); ?>
0 ignored issues
show
Expected 1 space between double arrow and "'navbar-brand'"; 0 found
Loading history...
Expected 1 space between double arrow and "'dashboard'"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
5
		<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation">
6
			<span class="navbar-toggler-icon"></span>
7
		</button>
8
		<!-- Collect the nav links, forms, and other content for toggling -->
9
		<div class="collapse navbar-collapse" id="navbarMain">
10
			<ul class="navbar-nav mr-auto">
11
				<li class="nav-item"><?= $this->Html->link('Tickets', ['controller'=>'tickets', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'tickets'"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
12
				<li class="nav-item"><?= $this->Html->link('Warehouses', ['controller'=>'warehouses', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected one space after the comma, 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'warehouses'"; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
13
				<li class="nav-item"><?= $this->Html->link('Documents', ['controller'=>'documents', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'documents'"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
14
				<li class="nav-item"><?= $this->Html->link('Assets', ['controller'=>'assets', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'assets'"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
15
				<li class="nav-item"><?= $this->Html->link('Contacts', ['controller'=>'contacts', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'contacts'"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
16
				<li class="nav-item"><?= $this->Html->link('Products', ['controller'=>'products', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected 1 space before "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between double arrow and "'products'"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
17
				<li class="nav-item"><?= $this->Html->link('Organizations', ['controller'=>'organizations', 'action'=>'index'],['class'=>'nav-link']); ?></li>
0 ignored issues
show
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected one space after the comma, 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'organizations'"; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
18
			</ul>
19
			<!--
20
			<form class="form-inline ml-auto">
21
				<div class="form-group has-white">
22
					<input type="text" class="form-control" placeholder="Search">
23
				</div>
24
				<button type="submit" class="btn btn-white btn-raised btn-fab btn-fab-mini btn-round">
25
					<i class="material-icons"></i>
26
				</button>
27
			</form>
28
			-->
29
			<ul class="navbar-nav mr-auto">
30
				<li class="nav-item dropdown">
31
					<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
32
						<?php if($this->request->session()->check('Auth.User')) {
0 ignored issues
show
The opening PHP tag must be the first content in the file
Loading history...
This file is missing a doc comment.
Loading history...
Expected 1 space(s) after IF keyword; 0 found
Loading history...
Expected "if (...) {\n"; found "if(...) {\n"
Loading history...
Expected 1 space after IF keyword; 0 found
Loading history...
33
							echo $this->request->session()->read('Auth.User.email');
0 ignored issues
show
Line indented incorrectly; expected at least 10 spaces, found 7
Loading history...
34
						} else {
0 ignored issues
show
Expected newline after closing brace
Loading history...
35
							echo "User profile ";
0 ignored issues
show
Line indented incorrectly; expected at least 10 spaces, found 7
Loading history...
Coding Style Comprehensibility introduced by
The string literal User profile does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
36
						}
37
						?>
0 ignored issues
show
Line indented incorrectly; expected 8 spaces, found 6
Loading history...
38
						<span class="caret"></span>
39
					</a>
40
					<div class="dropdown-menu" aria-labelledby="navbarDropdown">
41
						<a href="#" class="dropdown-item">Options</a>
42
						<a href="#" class="dropdown-item">My Profile</a>
43
					</div>
44
				</li>
45
				<li class="nav-item dropdown">
46
					<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
47
						<i class="fa fa-cogs" aria-hidden="true"></i> Administration <span class="caret"></span>
48
					</a>
49
					<div class="dropdown-menu" aria-labelledby="navbarDropdown">
50
						<?= $this->Html->link('Users', ['controller'=>'users', 'action'=>'index'], [ 'class' =>'dropdown-item']); ?>
0 ignored issues
show
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'users'"; 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
There should be no white space after an opening "["
Loading history...
Expected 1 space between double arrow and "'dropdown-item'"; 0 found
Loading history...
51
						<?= $this->Html->link('Types', ['controller'=>'tickettypes', 'action'=>'index'], [ 'class' =>'dropdown-item']); ?>
0 ignored issues
show
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'tickettypes'"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'dropdown-item'"; 0 found
Loading history...
There should be no white space after an opening "["
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
52
						<?= $this->Html->link('Statuses', ['controller'=>'ticketstatuses', 'action'=>'index'], [ 'class' =>'dropdown-item']); ?>
0 ignored issues
show
There should be no white space after an opening "["
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'dropdown-item'"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
Expected 1 space between double arrow and "'index'"; 0 found
Loading history...
Expected 1 space between double arrow and "'ticketstatuses'"; 0 found
Loading history...
53
					</div>
54
				</li>
55
				<li class="nav-item"><?= $this->Html->link('<i class="fa fa-sign-out" aria-hidden="true"></i> Logout', ['controller'=>'users', 'action'=>'logout'], [ 'class'=>'nav-link', 'escape' => false ]);?></li>
0 ignored issues
show
Expected at least 1 space before "=>"; 0 found
Loading history...
Expected 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'class'" and double arrow; 0 found
Loading history...
Expected 1 space before "=>"; 0 found
Loading history...
Expected 1 space between double arrow and "'users'"; 0 found
Loading history...
Expected 1 space between "'controller'" and double arrow; 0 found
Loading history...
Expected at least 1 space after "=>"; 0 found
Loading history...
Expected 1 space between "'action'" and double arrow; 0 found
Loading history...
There should be no white space after an opening "["
Loading history...
Expected 1 space between double arrow and "'logout'"; 0 found
Loading history...
Expected 1 space between double arrow and "'nav-link'"; 0 found
Loading history...
There should be no white space before a closing "]"
Loading history...
56
			</ul>
57
		</div><!-- /.navbar-collapse -->
58
	</nav>
59
</div>
60