{"summary":{"plugin_name":"post-views-counter","display_name":"Post Views Counter","version":"1.8.2","risk_level":"medium","risk_score":32.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"superglobal_density":5,"filter_hooks":10,"rest_routes":2,"installs_modifier":-5},"last_analyzed":"2026-11-26T01:58:03.144924","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":100000,"rating":98,"num_ratings":1241,"tested":"7.2","requires":"6.4","requires_php":"7.4","author":"dFactory","short_description":"Count and display post views, track site-wide visits, and see what content works – inside WordPress. Fast, easy to use and privacy-first.","tags":["analytics","Counter","pageviews","postviews","statistics"],"added":"2014-07-03","last_updated":"2026-11-02 10:32am GMT","metadata_fetched_at":"2026-11-22T02:31:22.874084+00:00","modules_missing":[],"modules_failed":[],"latest_release":"1.8.2"},"security_metrics":{"total_issues":7,"parameters_found":36,"unknown_parameters":1,"headers_accessed":2,"cookies_accessed":0,"wp_hooks":2,"rest_routes":3,"query_vars":0,"shortcode_atts":1,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":4,"A04":1},"attack_surface_level":"medium","attack_surface_score":44,"tainted_sinks":81,"tainted_sql":5,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":8},"comparison":{"percentile":64.7,"rank":176039,"peer_count":498153,"better_than":64.7,"risk_distribution":{"low":100144,"high":177886,"medium":120767,"critical":38735,"minimal":60621}},"executive_summary":null,"vulnerabilities":[{"id":"0b8c5947-bc73-448e-8f10-a4f4456e4000","title":"Post Views Counter < 1.3.5 - Authenticated Stored XSS","created_at":"2021-08-23T08:40:11.000Z","updated_at":"2022-03-07T08:25:16.000Z","published_date":"2021-08-23T00:00:00.000Z","vuln_type":"XSS","references":{"cve":["2021-24613"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"1.3.5","introduced_in":null},{"id":"f999eaa3-d447-4cba-a1b4-2dc2eab4c094","title":"Post Views Counter < 1.4.5 - Cross-Site Request Forgery via save_bulk_post_views()","created_at":"2024-04-12T18:11:03.000Z","updated_at":"2024-04-12T18:11:03.000Z","published_date":"2024-04-05T00:00:00.000Z","vuln_type":"CSRF","references":{"url":["https://patchstack.com/database/vulnerability/post-views-counter/wordpress-post-views-counter-plugin-1-4-4-cross-site-request-forgery-csrf-vulnerability"],"cve":["2024-31264"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.4.5","introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"high","findings_count":4,"description":"User-supplied data is not validated, filtered, or sanitized by the application","recommendations":["Use $wpdb->prepare() for all database queries — never interpolate or concatenate input","Sanitize all user input with appropriate WordPress functions","Escape output based on context (esc_html, esc_attr, etc.)","Never pass user input to eval(), include/require, or a variable function"],"findings_summary":["Reachable 'file_include' sink x75 - 75 attacker-reachable 'file_include' sink(s) found by the reachability analyzer","Reachable 'sql' sink x5 - 5 attacker-reachable 'sql' sink(s) found by the reachability analyzer","Pattern 'sqli_concat' x2 - Direct superglobal in SQL query without prepare() (2 occurrence(s))","Pattern 'sqli_interpolated' x4 - Interpolated variable in SQL query string (4 occurrence(s))"]},{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":1,"description":"Access control enforces policy such that users cannot act outside of their intended permissions","recommendations":["Add a real permission_callback to every REST route — never '__return_true' for state-changing endpoints","Verify nonces on all wp_ajax_nopriv_ handlers and re-check capabilities server-side","Validate and canonicalize file paths to block traversal on read/write/delete operations","Never trust a user-supplied role/capability — enforce it against the acting user's own permissions"],"findings_summary":["Pattern 'nopriv_no_nonce' x2 - Nopriv AJAX handler without nonce verification (2 occurrence(s))"]},{"category":"A04","name":"Insecure Design","severity":"low","findings_count":1,"description":"Missing or ineffective control design — e.g. plugin files that perform work when requested directly, bypassing the WordPress bootstrap","recommendations":["Add a `defined('ABSPATH') || exit;` guard to every PHP file so it cannot be requested directly","Move logic out of directly-reachable files into hook callbacks loaded by WordPress","Threat-model unauthenticated entry points during design, not after release"],"findings_summary":["Direct file access: 9 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":2,"severity":"high","examples":["includes/counter.php:31","includes/class-counter.php:56"],"risk":"Nopriv AJAX handler without nonce verification (2 occurrence(s))"}],"A03":[{"type":"reachability_sink","sink":"file_include","count":75,"risk":"75 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"},{"type":"reachability_sink","sink":"sql","count":5,"risk":"5 attacker-reachable 'sql' sink(s) found by the reachability analyzer"},{"type":"pattern_match","pattern":"sqli_concat","count":2,"severity":"critical","examples":["includes/class-settings.php:391","includes/settings.php:630"],"risk":"Direct superglobal in SQL query without prepare() (2 occurrence(s))"},{"type":"pattern_match","pattern":"sqli_interpolated","count":4,"severity":"critical","examples":["includes/class-import.php:864","includes/class-import.php:1269","includes/class-import.php:1284"],"risk":"Interpolated variable in SQL query string (4 occurrence(s))"}],"A04":[{"type":"direct_file_access","count":9,"risk":"9 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}