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.

tribe-events/pro/related-events.php (8 issues)

1
<?php
2
/**
3
 * Related Events Template
4
 * The template for displaying related events on the single event page.
5
 *
6
 * You can recreate an ENTIRELY new related events view by doing a template override, and placing
7
 * a related-events.php file in a tribe-events/pro/ directory within your theme directory, which
8
 * will override the /views/pro/related-events.php.
9
 *
10
 * You can use any or all filters included in this file or create your own filters in
11
 * your functions.php. In order to modify or extend a single filter, please see our
12
 * readme on templates hooks and filters
13
 *
14
 * @package TribeEventsCalendarPro
15
 */
16
17
if ( ! defined( 'ABSPATH' ) ) {
18
	die( '-1' );
19
}
20
21
$posts = tribe_get_related_posts();
0 ignored issues
show
The function tribe_get_related_posts was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

21
$posts = /** @scrutinizer ignore-call */ tribe_get_related_posts();
Loading history...
Overriding WordPress globals is prohibited. Found assignment to $posts
Loading history...
22
23
if ( is_array( $posts ) && ! empty( $posts ) ) : ?>
24
<?php /* Translators: %s: related */ ?>
25
<h3 class="tribe-events-related-events-title"><?php printf( esc_html__( 'Related %s', 'lsx' ), esc_html( tribe_get_event_label_plural() ) ); ?></h3>
0 ignored issues
show
The function tribe_get_event_label_plural was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

25
<h3 class="tribe-events-related-events-title"><?php printf( esc_html__( 'Related %s', 'lsx' ), esc_html( /** @scrutinizer ignore-call */ tribe_get_event_label_plural() ) ); ?></h3>
Loading history...
26
27
<ul class="tribe-related-events tribe-clearfix">
28
	<?php foreach ( $posts as $post ) : ?>
0 ignored issues
show
Overriding WordPress globals is prohibited. Found assignment to $post
Loading history...
29
	<li>
30
		<?php $thumb = ( has_post_thumbnail( $post->ID ) ) ? get_the_post_thumbnail( $post->ID, 'large' ) : '<img src="' . esc_url( trailingslashit( Tribe__Events__Pro__Main::instance()->pluginUrl ) . 'src/resources/images/tribe-related-events-placeholder.png' ) . '" alt="' . esc_attr( get_the_title( $post->ID ) ) . '" />'; ?>
0 ignored issues
show
The type Tribe__Events__Pro__Main was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
31
		<div class="tribe-related-events-thumbnail">
32
			<a href="<?php echo esc_url( tribe_get_event_link( $post ) ); ?>" class="url" rel="bookmark"><?php echo wp_kses_post( $thumb ); ?></a>
0 ignored issues
show
The function tribe_get_event_link was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

32
			<a href="<?php echo esc_url( /** @scrutinizer ignore-call */ tribe_get_event_link( $post ) ); ?>" class="url" rel="bookmark"><?php echo wp_kses_post( $thumb ); ?></a>
Loading history...
33
		</div>
34
		<div class="tribe-related-event-info">
35
			<h3 class="tribe-related-events-title"><a href="<?php echo esc_url( tribe_get_event_link( $post ) ); ?>" class="tribe-event-url" rel="bookmark"><?php echo get_the_title( $post->ID ); ?></a></h3>
0 ignored issues
show
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_the_title'.
Loading history...
36
			<?php
37
			if ( Tribe__Events__Main::POSTTYPE === $post->post_type ) {
38
				echo wp_kses_post( tribe_events_event_schedule_details( $post ) );
0 ignored issues
show
The function tribe_events_event_schedule_details was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

38
				echo wp_kses_post( /** @scrutinizer ignore-call */ tribe_events_event_schedule_details( $post ) );
Loading history...
39
			}
40
			?>
41
			<a href="<?php echo esc_url( tribe_get_event_link( $post ) ); ?>" class="moretag"><?php esc_html_e( 'View event', 'lsx' ); ?></a>
42
		</div>
43
	</li>
44
	<?php endforeach; ?>
45
</ul>
46
<?php
47
endif;
48