GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (4)

Security Analysis    no request data  

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.

debug-bar-cron.php (4 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
 * Debug Bar Cron, a WordPress plugin.
4
 *
5
 * @package     WordPress\Plugins\Debug Bar Cron
6
 * @author      Zack Tollman, Helen Hou-Sandi, Juliette Reinders Folmer
7
 * @link        https://github.com/tollmanz/debug-bar-cron
8
 * @version     0.1.2
9
 * @license     http://creativecommons.org/licenses/GPL/2.0/ GNU General Public License, version 2 or higher
10
 *
11
 * @wordpress-plugin
12
 * Plugin Name: Debug Bar Cron
13
 * Plugin URI:  http://wordpress.org/extend/plugins/debug-bar-cron/
14
 * Description: Debug Bar Cron adds information about WP scheduled events to the Debug Bar.
15
 * Version:     0.1.2
16
 * Author:      Zack Tollman, Helen Hou-Sandi
17
 * Author URI:  http://github.com/tollmanz/
18
 * Depends:     Debug Bar
19
 * Text Domain: debug-bar-cron
20
 * Domain Path: /languages/
21
 */
22
23
// Avoid direct calls to this file.
24
if ( ! function_exists( 'add_action' ) ) {
25
	header( 'Status: 403 Forbidden' );
26
	header( 'HTTP/1.1 403 Forbidden' );
27
	exit();
28
}
29
30
if ( ! function_exists( 'debug_bar_cron_has_parent_plugin' ) ) {
31
	/**
32
	 * Show admin notice & de-activate if debug-bar plugin not active.
33
	 */
34
	function debug_bar_cron_has_parent_plugin() {
35
		$file = plugin_basename( __FILE__ );
36
37
		if ( is_admin() && ( ! class_exists( 'Debug_Bar' ) && current_user_can( 'activate_plugins' ) ) && is_plugin_active( $file ) ) {
38
			add_action( 'admin_notices', create_function( null, 'echo \'<div class="error"><p>\', sprintf( __( \'Activation failed: Debug Bar must be activated to use the <strong>Debug Bar Cron</strong> Plugin. %sVisit your plugins page to install & activate.\', \'debug-bar-cron\' ), \'<a href="\' . esc_url( admin_url( \'plugin-install.php?tab=search&s=debug+bar\' ) ) . \'">\' ), \'</a></p></div>\';' ) );
0 ignored issues
show
create_function is discouraged, please use Anonymous functions instead.
Loading history...
Security Best Practice introduced by
The use of create_function is highly discouraged, better use a closure.

create_function can pose a great security vulnerability as it is similar to eval, and could be used for arbitrary code execution. We highly recommend to use a closure instead.

// Instead of
$function = create_function('$a, $b', 'return $a + $b');

// Better use
$function = function($a, $b) { return $a + $b; }
Loading history...
39
40
			deactivate_plugins( $file, false, is_network_admin() );
41
42
			// Add to recently active plugins list.
43
			$insert = array(
44
				$file => time(),
45
			);
46
47
			if ( ! is_network_admin() ) {
48
				update_option( 'recently_activated', ( $insert + (array) get_option( 'recently_activated' ) ) );
49
			} else {
50
				update_site_option( 'recently_activated', ( $insert + (array) get_site_option( 'recently_activated' ) ) );
51
			}
52
53
			// Prevent trying again on page reload.
54
			if ( isset( $_GET['activate'] ) ) {
0 ignored issues
show
Detected access of super global var $_GET, probably need manual inspection.
Loading history...
55
				unset( $_GET['activate'] );
0 ignored issues
show
Detected access of super global var $_GET, probably need manual inspection.
Loading history...
56
			}
57
		}
58
	}
59
	add_action( 'admin_init', 'debug_bar_cron_has_parent_plugin' );
60
}
61
62
63
if ( ! function_exists( 'zt_add_debug_bar_cron_panel' ) ) {
64
	/**
65
	 * Adds panel, as defined in the included class, to Debug Bar.
66
	 *
67
	 * @param array $panels Existing debug bar panels.
68
	 *
69
	 * @return array
70
	 */
71
	function zt_add_debug_bar_cron_panel( $panels ) {
72
		if ( ! class_exists( 'ZT_Debug_Bar_Cron' ) ) {
73
			require_once 'class-zt-debug-bar-cron.php';
74
			$panels[] = new ZT_Debug_Bar_Cron();
75
		}
76
		return $panels;
77
	}
78
	add_filter( 'debug_bar_panels', 'zt_add_debug_bar_cron_panel' );
79
}
80