{"summary":{"plugin_name":"wp-postratings","display_name":"WP-PostRatings","version":"2.0.2","risk_level":"medium","risk_score":32.0,"risk_factors":{"owasp":5,"attack_surface":5,"unauth_ratio":5,"superglobal_density":5,"filter_hooks":10,"rest_routes":2},"last_analyzed":"2026-11-23T12:51:31.081879","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":20000,"rating":88,"num_ratings":178,"tested":"7.1.2","requires":"6.8","requires_php":"8.2","author":"Lester Chan","short_description":"Adds an AJAX rating system for your WordPress site's content.","tags":["ajax","post","rating","ratings","vote"],"added":"2006-02-08","last_updated":"2026-09-01 7:06pm GMT","metadata_fetched_at":"2026-09-06T03:59:37.181749+00:00","modules_missing":null,"modules_failed":null,"latest_release":"2.0.2"},"security_metrics":{"total_issues":0,"parameters_found":20,"unknown_parameters":0,"headers_accessed":3,"cookies_accessed":0,"wp_hooks":2,"rest_routes":2,"query_vars":1,"shortcode_atts":1,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":2,"A03":2,"A04":1},"attack_surface_level":"medium","attack_surface_score":26,"tainted_sinks":1,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":2},"comparison":{"percentile":67.6,"rank":150629,"peer_count":465141,"better_than":67.6,"risk_distribution":{"medium":114188,"minimal":52498,"high":175729,"low":84754,"critical":37972}},"executive_summary":null,"vulnerabilities":[{"id":"6cc8b2ae-0b82-4d07-9a5d-1b6183306356","title":"WP Postratings < 1.62 - Authenticated SQL Injection","created_at":"2019-08-23T11:43:02.000Z","updated_at":"2020-12-24T12:55:48.000Z","published_date":"2011-10-06T00:00:00.000Z","vuln_type":"SQLI","references":{"cve":["2011-4646"],"url":["https://www.securityfocus.com/bid/49986/"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.62","introduced_in":null},{"id":"d2d9a789-edae-4ae1-92af-e6132db7efcd","title":"WP Postratings < 1.86.1 - Admin+ Stored Cross-Site Scripting","created_at":"2020-12-24T14:02:44.000Z","updated_at":"2022-04-09T07:11:09.000Z","published_date":"2020-12-24T00:00:00.000Z","vuln_type":"XSS","references":{"exploitdb":["49333"],"cve":["2021-25117"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"1.86.1","introduced_in":null},{"id":"9f2456f1-4894-4dea-a212-23eab3e963a8","title":"WP-PostRatings < 1.90 - Ratings Tempering via Race Condition","created_at":"2022-09-15T10:32:20.000Z","updated_at":"2022-09-15T10:32:20.000Z","published_date":"2022-08-31T00:00:00.000Z","vuln_type":"RACE CONDITION","references":{"cve":["2022-36422"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.90","introduced_in":null},{"id":"082d6e9b-15e3-4487-840f-0ffa32da5771","title":"WP-PostRatings < 1.91.2 - Authenticated (Contributor+) Stored Cross-Site Scripting","created_at":"2024-08-07T16:30:14.000Z","updated_at":"2024-08-07T16:30:14.000Z","published_date":"2024-08-01T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/11dbc647-fa96-4c63-8f13-0c8ea6f33919"],"cve":["2024-39659"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.91.2","introduced_in":null}],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":2,"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":["REST route 'post/(?P<id>\\d+)' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'post/(?P<id>\\d+)/rate' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":2,"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 x1 - 1 attacker-reachable 'file_include' sink(s) found by the reachability analyzer","Pattern 'sqli_interpolated' x2 - Interpolated variable in SQL query string (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: 7 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"post/(?P<id>\\d+)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"post/(?P<id>\\d+)/rate","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"}],"A03":[{"type":"reachability_sink","sink":"file_include","count":1,"risk":"1 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"},{"type":"pattern_match","pattern":"sqli_interpolated","count":2,"severity":"critical","examples":["postratings-manager.php:86","postratings-manager.php:130"],"risk":"Interpolated variable in SQL query string (2 occurrence(s))"}],"A04":[{"type":"direct_file_access","count":7,"risk":"7 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}