Issues (461)

Branch: master

Security Analysis    not enabled

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.

page-templates/template-archives.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Archives Template.
4
 *
5
 * Template Name: Archives
6
 *
7
 * @package    lsx
8
 * @subpackage template
9
 */
10
11
get_header(); ?>
12
13
<?php lsx_content_wrap_before(); ?>
14
15
<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
16
17
	<?php lsx_content_before(); ?>
18
19
	<main id="main" class="site-main" role="main">
20
21
		<?php lsx_content_top(); ?>
22
23
		<?php if ( have_posts() ) : ?>
24
25
			<?php
26
			while ( have_posts() ) :
27
				the_post();
28
				?>
29
30
				<?php lsx_entry_before(); ?>
31
32
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
33
34
					<?php lsx_entry_top(); ?>
35
36
					<div class="entry-content">
37
						<h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2>
38
39
						<ul>
40
							<?php
41
								$loop = new WP_Query(
42
									array(
43
										'posts_per_page' => 30,
44
									)
45
								);
46
							?>
47
48
							<?php if ( $loop->have_posts() ) : ?>
49
50
								<?php while ( $loop->have_posts() ) : ?>
51
52
									<?php
53
										$loop->the_post();
54
										$loop->is_home = false;
55
									?>
56
57
									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
0 ignored issues
show
It seems like get_option('date_format') can also be of type false; however, parameter $format of the_time() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

57
									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( /** @scrutinizer ignore-type */ get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
Loading history...
58
59
								<?php endwhile; ?>
60
61
							<?php endif; ?>
62
63
							<?php wp_reset_postdata(); ?>
64
						</ul>
65
66
						<h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2>
67
68
						<ul>
69
							<?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
70
						</ul>
71
72
						<h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2>
73
74
						<ul>
75
							<?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
76
						</ul>
77
					</div><!-- .entry-content -->
78
79
					<?php lsx_entry_bottom(); ?>
80
81
				</article><!-- #post-## -->
82
83
				<?php lsx_entry_after(); ?>
84
85
			<?php endwhile; ?>
86
87
		<?php endif; ?>
88
89
		<?php lsx_content_bottom(); ?>
90
91
	</main><!-- #main -->
92
93
	<?php lsx_content_after(); ?>
94
95
</div><!-- #primary -->
96
97
<?php lsx_content_wrap_after(); ?>
98
99
<?php get_sidebar(); ?>
100
101
<?php
102
get_footer();
103