PBP Restricted Menu-Widget by role Security & Risk Analysis

wordpress.org/plugins/pbp-restricted-menu-widget-by-role

Display menu or widget items based on if a user is logged in, logged out or both.

20 active installs v1.1.1 PHP + WP 3.7+ Updated Apr 24, 2015
by-rolemenurestrictedrestrictionwidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is PBP Restricted Menu-Widget by role Safe to Use in 2026?

Generally Safe

Score 85/100

PBP Restricted Menu-Widget by role has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 10yr ago
Risk Assessment

The "pbp-restricted-menu-widget-by-role" plugin v1.1.1 demonstrates a generally strong security posture, particularly in its avoidance of common attack vectors like AJAX handlers, REST API routes, shortcodes, and cron events. The complete absence of direct SQL queries and file operations is a significant strength. The presence of nonce and capability checks, albeit limited in number, also indicates an awareness of basic security principles. However, a critical concern arises from the taint analysis, which reveals two flows with unsanitized paths. While these did not escalate to critical or high severity vulnerabilities in the static analysis, they represent potential entry points for malicious input that could be processed insecurely if not properly handled downstream. Furthermore, the low percentage of properly escaped output (32%) is a notable weakness, increasing the risk of Cross-Site Scripting (XSS) vulnerabilities, especially if dynamic content is rendered without adequate sanitization. The plugin's clean vulnerability history is a positive indicator, but it does not negate the risks identified in the current code analysis. Overall, while the plugin has a small attack surface and good handling of core WordPress security features, the identified unsanitized paths and poor output escaping warrant careful review and remediation.

Key Concerns

  • Unsanitized paths in taint flows
  • Low percentage of properly escaped output
Vulnerabilities
None known

PBP Restricted Menu-Widget by role Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

PBP Restricted Menu-Widget by role Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
67
32 escaped
Nonce Checks
1
Capability Checks
2
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

32% escaped99 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
start_el (customWalker.php:64)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

PBP Restricted Menu-Widget by role Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actionwp_update_nav_menu_itemres-menu-wid.php:151
filterwp_edit_nav_menu_walkerres-menu-wid.php:158
filterwp_get_nav_menu_itemsres-menu-wid.php:167
filtersidebars_widgetsres-menu-wid.php:310
filterwidget_form_callbackres-menu-wid.php:316
filterwidget_update_callbackres-menu-wid.php:323
Maintenance & Trust

PBP Restricted Menu-Widget by role Maintenance & Trust

Maintenance Signals

WordPress version tested4.2.39
Last updatedApr 24, 2015
PHP min version
Downloads3K

Community Trust

Rating0/100
Number of ratings0
Active installs20
Developer Profile

PBP Restricted Menu-Widget by role Developer Profile

projoktibangla

5 plugins · 60 total installs

86
trust score
Avg Security Score
88/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect PBP Restricted Menu-Widget by role

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/pbp-restricted-menu-widget-by-role/customWalker.php

HTML / DOM Fingerprints

CSS Classes
priv_widget_logged_in_out_field
HTML Comments
<!-- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --><!-- * Don't display if wordpress admin class is not found * Protects code if wordpress breaks --><!-- * Create class privMenu() to prevent any function name conflicts with other WordPress plugins or the WordPress core. * @since 0.1 --><!-- * Removes items from the menu displayed to the user if that menu item has been denied access to them in the admin panel * @since 0.2 -->+7 more
Data Attributes
id="widget-priv_widget_role-id="priv_widget_logged_out-for-name="priv-widget-logged-in-out[id="priv_widget_logged_in-for-class="widget-id"value="+5 more
FAQ

Frequently Asked Questions about PBP Restricted Menu-Widget by role