Issues (1378)

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.

header.php (4 issues)

Labels
Severity

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
 * The header for our theme.
4
 *
5
 * This is the template that displays all of the <head> section and everything up until <div id="content">
6
 *
7
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
 *
9
 * @package Lighthouse
10
 */
11
12
?><!DOCTYPE html>
13
<html <?php language_attributes(); ?>>
14
<head>
15
	<meta charset="<?php bloginfo( 'charset' ); ?>">
16
	<meta name="viewport" content="width=device-width, initial-scale=1">
17
	<link rel="profile" href="http://gmpg.org/xfn/11">
18
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
19
20
	<?php wp_head(); ?>
21
</head>
22
23
<body <?php body_class(); ?>>
24
	<div id="page" class="site">
25
		<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'lighthouse' ); ?></a>
26
27
		<header id="masthead" class="site-header panel-top panel-fixed" role="banner">
28
			<div class="container">
29
				<div class="row social-links">
30
					<div class="col-sm-12 col-xs-12 col-md-6 social-items">
31
						<!-- <a href="" class="link link-youtube" target="_blank"><i class="fa fw fa-youtube"></i></a> -->
32
						<a href="https://www.linkedin.com/company/lighthouse-group-plc" class="link link-linkedin" target="_blank"></a>
33
34
						<!-- <a href="https://plus.google.com/u/0/112602769566696286010" class="link link-google-plus" target="_blank"></a> -->
35
36
						<a href="https://www.facebook.com/LighthouseGroupPLC" class="link link-facebook" target="_blank"></a>
37
38
						<a href="https://twitter.com/talk2lighthouse" class="link link-twitter" target="_blank"></a>
39
40
41
						<a href="#" class="live-feed hidden-xs hidden-sm">
42
							<span class="share-price-at-top" style="display: none!important;">
43
								<?php
44
									$xmldat = file_get_contents('http://qfx.quartalflife.com/clients/uk/lighthouse_group/xml/xml.aspx');
45
46
									file_put_contents('./wp-content/themes/lighthouse/xml-feeds/share-price.xml', $xmldat);
47
48
									$url 	= './wp-content/themes/lighthouse/xml-feeds/share-price.xml';
49
									$xml 	= simplexml_load_file($url);
50
									$price 	= $xml->CurrentPrice;
0 ignored issues
show
The property CurrentPrice does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
51
									$change = $xml->Change;
0 ignored issues
show
The property Change does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
52
									$change_pcent 	= $xml->PercentageChange;
0 ignored issues
show
The property PercentageChange does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
53
									$volume = $xml->Volume;
0 ignored issues
show
The property Volume does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
54
55
									echo "Share Price: ";
56
									echo $price;
57
									echo "p | Change: ";
58
									echo $change;
59
									echo "p - ";
60
									echo $change_pcent;
61
									echo "% | Volume: ";
62
									echo $volume;
63
								?>
64
							</span>
65
						</a>
66
					</div>
67
					<div class="col-md-6 top-search hidden-xs hidden-sm">
68
						<div class="font-adjustment">
69
							<button id="textplus">A+</button>
70
							<button id="textminus">A-</button>
71
						</div>
72
						<form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
73
						    <div class="search-wrap">
74
						    	<label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label>
75
						    	 <button type="submit">
76
					                <i class="fa fa-search"></i>
77
					            </button>
78
						        <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" />
79
						    </div>
80
						</form>
81
					</div>
82
				</div>
83
				<div class="row header-menus">
84
					<nav id="site-navigation" class="main-navigation" role="navigation">
85
						<div class="col-md-4 col-lg-4 hidden-xs hidden-sm menu-area">
86
							<div id="menu-left">
87
								<?php lighthouse_header_menu_left(); ?>
88
							</div>
89
						</div>
90
						<div class="col-sm-12 col-md-4 col-lg-4 header-center-area">
91
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
92
								<img src="<?php echo( get_header_image() ); ?>" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" />
93
							</a>
94
95
							<div class="iv-module live-search">
96
								<div class="centered">
97
									<a href="#" class="trigger"><i class="fa fa-search"></i></a>
98
									<div class="inner-wrapper">
99
										<span class="form-close-btn thin"> ✕ </span>
100
										<span class="form-close-btn bold"><i class="fa fa-remove"></i></span>
101
										<div class="inner-form">
102
											<div class="container">
103
												<div class="row">
104
													<div class="col-md-12">
105
														<form method="get" action="<?php echo esc_url( home_url( '/' ) );?>">
106
															<label for="s"><?php _e('Type &amp; hit enter to search', 'ivan_domain');?></label>
107
															<input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type &amp; hit enter to search', 'lighthouse');?>" />
108
															<a class="submit-form" href="#"><i class="fa fa-search"></i></a>
109
															<div class="clearfix"></div>
110
														</form>
111
													</div>
112
												</div>
113
											</div>
114
										</div>
115
									</div>
116
								</div>
117
							</div>
118
119
						</div>
120
						<div class="col-md-4 col-lg-4 hidden-xs hidden-sm menu-area">
121
							<div id="menu-right">
122
								<?php lighthouse_header_menu_right(); ?>
123
							</div>
124
							<div class="iv-module live-search ">
125
								<div class="centered">
126
									<a href="#" class="trigger"><i class="fa fa-search"></i></a>
127
									<div class="inner-wrapper">
128
										<span class="form-close-btn thin"> ✕ </span>
129
										<span class="form-close-btn bold"><i class="fa fa-remove"></i></span>
130
										<div class="inner-form">
131
											<div class="container">
132
												<div class="row">
133
													<div class="col-md-12">
134
														<form method="get" action="<?php echo esc_url( home_url( '/' ) );?>">
135
															<label for="s"><?php _e('Type &amp; hit enter', 'ivan_domain');?></label>
136
															<input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type &amp; hit enter', 'lighthouse');?>" />
137
															<a class="submit-form" href="#"><i class="fa fa-search"></i></a>
138
															<div class="clearfix"></div>
139
														</form>
140
													</div>
141
												</div>
142
											</div>
143
										</div>
144
									</div>
145
								</div>
146
							</div>
147
						</div>
148
					</nav><!-- #site-navigation -->
149
				</div>
150
			</div>
151
		</header><!-- #masthead -->
152
153
		<div id="content" class="site-content">