{"summary":{"plugin_name":"easy-table-of-contents","display_name":"Easy Table of Contents","version":"2.0.90","risk_level":"minimal","risk_score":8.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":5,"installs_modifier":-7},"last_analyzed":"2026-11-23T14:43:28.145170","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":600000,"rating":88,"num_ratings":221,"tested":"7.1.5","requires":"5.0","requires_php":"5.6.20","author":"Magazine3","short_description":"Adds a user friendly and fully automatic way to create and display a table of contents generated from the page content.","tags":["table of contents","toc"],"added":"2015-09-09","last_updated":"2026-11-16 12:14pm GMT","metadata_fetched_at":"2026-11-22T03:04:53.772001+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.0.90"},"security_metrics":{"total_issues":23,"parameters_found":16,"unknown_parameters":0,"headers_accessed":3,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":2,"shortcode_atts":5,"rest_routes_with_access_patterns":0,"file_upload_parameters":1,"owasp_findings":{"A01":1,"A03":1,"A04":1},"attack_surface_level":"medium","attack_surface_score":23,"tainted_sinks":15,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":87.8,"rank":60633,"peer_count":498343,"better_than":87.8,"risk_distribution":{"low":100247,"high":177896,"medium":120809,"critical":38736,"minimal":60655}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"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' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":1,"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 x15 - 15 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"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: 2 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":1,"severity":"high","examples":["includes/helper-function.php:108"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"type":"reachability_sink","sink":"file_include","count":15,"risk":"15 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":2,"risk":"2 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}