Page and Post Restriction Security & Risk Analysis

wordpress.org/plugins/page-and-post-restriction

Restrict content access for WordPress (WP) | Restrict pages/posts in WP based on user roles and login status to protect content

2K active installs v1.3.9 PHP 5.6+ WP 3.7+ Updated Jun 2, 2025
content-restrictionpage-restrictionpost-restrictionrestrict-accessrestrict-content
98
A · Safe
CVEs total3
Unpatched0
Last CVEDec 19, 2024
Download
Safety Verdict

Is Page and Post Restriction Safe to Use in 2026?

Generally Safe

Score 98/100

Page and Post Restriction has a strong security track record. Known vulnerabilities have been patched promptly.

3 known CVEsLast CVE: Dec 19, 2024Updated 10mo ago
Risk Assessment

The "page-and-post-restriction" v1.3.9 plugin presents a mixed security posture. On one hand, it demonstrates good practices by using prepared statements for all SQL queries and having a high percentage of properly escaped outputs. The absence of direct file operations and the presence of numerous nonce checks are also positive indicators. However, several concerns warrant attention.

The static analysis revealed a significant number of flows with unsanitized paths (9 out of 12 analyzed), including one identified as high severity. This suggests potential weaknesses in how user-supplied input is handled, which could lead to unexpected behavior or security vulnerabilities if exploited. The presence of an external HTTP request without explicit detail on its sanitization also introduces a potential risk. While the plugin has no direct unauthenticated entry points from AJAX or REST API in this version, the high rate of unsanitized paths is a strong signal of underlying risk.

The plugin's vulnerability history is a significant concern. With a total of 3 known CVEs, all categorized as medium severity, and common types including Exposure of Sensitive Information, Protection Mechanism Failure, and Cross-site Scripting, this plugin has a past of introducing vulnerabilities. Although currently unpatched CVEs are zero, the recurring nature of these vulnerability types suggests a pattern of insecure coding practices related to input handling and output sanitization, despite some good practices observed in the current static analysis.

Key Concerns

  • High severity taint flow detected
  • High number of unsanitized paths
  • 3 medium severity CVEs in history
  • External HTTP request without clear sanitization
Vulnerabilities
3

Page and Post Restriction Security Vulnerabilities

CVEs by Year

1 CVE in 2022
2022
2 CVEs in 2024
2024
Patched Has unpatched

Severity Breakdown

Medium
3

3 total CVEs

CVE-2024-11297medium · 5.3Exposure of Sensitive Information to an Unauthorized Actor

Page Restriction WordPress (WP) – Protect WP Pages/Post <= 1.3.6 - Unauthenticated Content Restriction Bypass to Sensitive Information Exposure

Dec 19, 2024 Patched in 1.3.7 (33d)
CVE-2024-0681medium · 5.3Protection Mechanism Failure

Page Restriction WordPress (WP) – Protect WP Pages/Post <= 1.3.4 - Protection Mechanism Bypass

Feb 27, 2024 Patched in 1.3.5 (154d)
CVE-2022-1027medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Page Restriction WordPress <= 1.2.6 - Admin+ Stored Cross-Site Scripting

Apr 9, 2022 Patched in 1.2.7 (654d)
Code Analysis
Analyzed Mar 16, 2026

Page and Post Restriction Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
6
364 escaped
Nonce Checks
34
Capability Checks
0
File Operations
0
External Requests
1
Bundled Libraries
0

Output Escaping

98% escaped370 total outputs
Data Flows
9 unsanitized

Data Flow Analysis

12 flows9 with unsanitized paths
papr_custom_roles_sub_menu (page-restriction-custom-roles-sub-menu.php:10)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Page and Post Restriction Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[restrict_content] page-and-post-restriction.php:42
WordPress Hooks 16
actionadmin_menupage-and-post-restriction.php:29
actionadmin_initpage-and-post-restriction.php:30
actionadmin_enqueue_scriptspage-and-post-restriction.php:31
actionsave_postpage-and-post-restriction.php:33
actionwppage-and-post-restriction.php:34
actionadd_meta_boxespage-and-post-restriction.php:35
actionadmin_footerpage-and-post-restriction.php:36
filtermanage_page_posts_columnspage-and-post-restriction.php:37
filtermanage_post_posts_columnspage-and-post-restriction.php:38
actionmanage_page_posts_custom_columnpage-and-post-restriction.php:39
actionmanage_post_posts_custom_columnpage-and-post-restriction.php:40
actionquick_edit_custom_boxpage-and-post-restriction.php:41
actionrest_api_initpage-and-post-restriction.php:44
filterpre_get_postspage-and-post-restriction.php:45
filterparse_comment_querypage-and-post-restriction.php:46
filterpre_get_postspage-and-post-restriction.php:159
Maintenance & Trust

Page and Post Restriction Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJun 2, 2025
PHP min version5.6
Downloads35K

Community Trust

Rating84/100
Number of ratings14
Active installs2K
Developer Profile

Page and Post Restriction Developer Profile

miniOrange

38 plugins · 83K total installs

76
trust score
Avg Security Score
96/100
Avg Patch Time
324 days
View full developer profile
Detection Fingerprints

How We Detect Page and Post Restriction

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/page-and-post-restriction/includes/css/page-restriction.css/wp-content/plugins/page-and-post-restriction/includes/css/page-restriction-admin.css/wp-content/plugins/page-and-post-restriction/includes/js/page-restriction.js
Script Paths
/wp-content/plugins/page-and-post-restriction/includes/js/page-restriction.js
Version Parameters
page-and-post-restriction/includes/css/page-restriction.css?ver=page-and-post-restriction/includes/css/page-restriction-admin.css?ver=page-and-post-restriction/includes/js/page-restriction.js?ver=

HTML / DOM Fingerprints

CSS Classes
papr-admin-pagepapr-custom-role-sectionpapr-feedback-modalpapr-restriction-settingspapr-role-selector
HTML Comments
<!-- This is a restricted page/post. --><!-- Page and Post Restriction Settings --><!-- Feedback Form Start -->
Data Attributes
data-papr-restricted-pagedata-papr-restricted-post
JS Globals
papr_restrict_content
REST Endpoints
/wp/v2/pages/wp/v2/posts/wp/v2/comments
Shortcode Output
[restrict_content]
FAQ

Frequently Asked Questions about Page and Post Restriction