Issues (15)

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.

inc/admin.php (1 issue)

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
// This file handles the admin area and functions - You can use this file to make changes to the dashboard.
3
4
/************* DASHBOARD WIDGETS *****************/
5
// Disable default dashboard widgets
6
function disable_default_dashboard_widgets()
7
{
8
9
    remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget
10
    remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');  // Incoming Links Widget
11
    remove_meta_box('dashboard_plugins', 'dashboard', 'core');         // Plugins Widget
12
    remove_meta_box('dashboard_quick_press', 'dashboard', 'core');     // Quick Press Widget
13
    remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');   // Recent Drafts Widget
14
    remove_meta_box('dashboard_primary', 'dashboard', 'core');
15
    remove_meta_box('dashboard_secondary', 'dashboard', 'core');
16
    remove_meta_box('yoast_db_widget', 'dashboard', 'normal'); // Yoast's SEO Plugin Widget
17
}
18
19
// removing the dashboard widgets
20
add_action('admin_menu', 'disable_default_dashboard_widgets');
21
22
/************* CUSTOMIZE ADMIN *******************/
23
24
// Custom Backend Footer
25
function podium_custom_admin_footer()
26
{
27
    $wp_v         = get_bloginfo('version');
28
    $w_copyrights = _x('<span id="footer-thankyou">Developed by <a href="http://amitt.co.il" target="_blank">Amit Tal</a></span>', 'podium');
29
    return '<span style="direction:lrt;">v' . $wp_v . ' | ' . $w_copyrights . '</span>';
30
}
31
32
// adding it to the admin area
33
add_filter('admin_footer_text', 'podium_custom_admin_footer');
34
35
//ADD featured image thumbnail to WordPress admin columns
36
37
add_filter('manage_posts_columns', 'tcb_add_post_thumbnail_column', 5);
38
add_filter('manage_pages_columns', 'tcb_add_post_thumbnail_column', 5);
39
40
/**
41
 * @param  $cols
42
 * @return mixed
43
 */
44
function tcb_add_post_thumbnail_column($cols)
45
{
46
    $cols['tcb_post_thumb'] = __('Main image');
47
    return $cols;
48
}
49
50
add_action('manage_posts_custom_column', 'tcb_display_post_thumbnail_column', 5, 2);
51
add_action('manage_pages_custom_column', 'tcb_display_post_thumbnail_column', 5, 2);
52
53
/**
54
 * @param $col
55
 * @param $id
56
 */
57
function tcb_display_post_thumbnail_column($col, $id)
0 ignored issues
show
The parameter $id is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
58
{
59
60
    switch ($col) {
61
        case 'tcb_post_thumb':
62
63
            if (function_exists('the_post_thumbnail')) {
64
                echo the_post_thumbnail('thumbnail');
65
            } else {
66
                echo 'Not supported in theme';
67
            }
68
69
            break;
70
    }
71
72
}
73
74
// Allow svg upload in media
75
/**
76
 * @param  $mimes
77
 * @return mixed
78
 */
79
function cc_mime_types($mimes)
80
{
81
    $mimes['svg']  = 'image/svg+xml';
82
    $mimes['svgz'] = 'image/svg+xml';
83
    return $mimes;
84
}
85
86
add_filter('upload_mimes', 'cc_mime_types');
87
88
89
// Set interval beween heartbewats
90
/**
91
 * @param  $settings
92
 * @return mixed
93
 */
94
function podium_heartbeat_settings($settings)
95
{
96
    $settings['interval'] = 60; //Anything between 15-60
97
    return $settings;
98
}
99
100
add_filter('heartbeat_settings', 'podium_heartbeat_settings');
101