{"summary":{"plugin_name":"royal-mcp","display_name":"Royal MCP – Secure AI Connector for Claude, ChatGPT & any LLM via MCP","version":"2.0.0","risk_level":"high","risk_score":57.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":15,"unauth_ratio":15,"filter_hooks":5,"rest_routes":7,"raw_input":5},"last_analyzed":"2026-11-23T14:00:47.374058","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":10000,"rating":100,"num_ratings":7,"tested":"7.1.5","requires":"5.8","requires_php":"7.4","author":"Royal Plugins","short_description":"Connect Claude, ChatGPT or any AI app to WordPress. Drafts only mode, access levels per app and a 72-hour undo. 400+ tools, self-hosted.","tags":["AI","ChatGPT","Claude","elementor","mcp"],"added":"2026-01-14","last_updated":"2026-11-17 12:53pm GMT","metadata_fetched_at":"2026-11-22T02:07:25.096687+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.0.1"},"security_metrics":{"total_issues":8,"parameters_found":58,"unknown_parameters":2,"headers_accessed":13,"cookies_accessed":0,"wp_hooks":2,"rest_routes":15,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":4,"file_upload_parameters":0,"owasp_findings":{"A01":16,"A02":3,"A03":1},"attack_surface_level":"large","attack_surface_score":90,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":6},"comparison":{"percentile":16.1,"rank":420779,"peer_count":501497,"better_than":16.1,"risk_distribution":{"low":101676,"high":178141,"medium":121491,"critical":38878,"minimal":61311}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"critical","findings_count":16,"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 '/indexnow-key' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/mcp' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/v1' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/sse' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/messages' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"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":["Pattern 'sqli_interpolated' x2 - Interpolated variable in SQL query string (2 occurrence(s))"]},{"category":"A02","name":"Cryptographic Failures","severity":"low","findings_count":3,"description":"Failures related to cryptography which often lead to exposure of sensitive data","recommendations":["Never store passwords or API keys in plain text","Use WordPress options API with encryption for sensitive data","Implement proper key management practices","Use HTTPS for all sensitive data transmission"],"findings_summary":["Parameter 'app_password' - Sensitive data exposure","Parameter 'client_secret' - Sensitive data exposure","Parameter 'refresh_token' - Sensitive data exposure"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/indexnow-key","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/mcp","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/v1","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/sse","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/messages","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/discovery/server-card","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/discovery/agent-skills","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/.well-known/oauth-authorization-server","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/.well-known/openid-configuration","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/.well-known/jwks.json","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/oauth/(?P<oauth_action>token|register|revoke)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/oauth/authorize","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/.well-known/oauth-protected-resource","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/.well-known/oauth-protected-resource/(?P<resource_path>.+)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/diagnostics/header-echo","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"rest_no_permission","count":4,"severity":"high","examples":["royal-mcp.php:150","royal-mcp.php:156","royal-mcp.php:164"],"risk":"REST endpoint with no permission check (4 occurrence(s))"}],"A02":[{"type":"parameter","name":"app_password","locations":{"GET":[{"file":"/plugins/royal-mcp/tags/2.0.0/includes/Admin/Connected_Clients_Page.php","line":81,"offset":4338,"snippet":"$_GET['app_password']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/Admin/Connected_Clients_Page.php","line":81,"offset":4390,"snippet":"$_GET['app_password']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"client_secret","locations":{"POST":[{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1174,"offset":62888,"snippet":"$_POST['client_secret']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1174,"offset":62949,"snippet":"$_POST['client_secret']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1218,"offset":65566,"snippet":"$_POST['client_secret']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1218,"offset":65627,"snippet":"$_POST['client_secret']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1324,"offset":72079,"snippet":"$_POST['client_secret']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1324,"offset":72140,"snippet":"$_POST['client_secret']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"refresh_token","locations":{"POST":[{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1208,"offset":64860,"snippet":"$_POST['refresh_token']"},{"file":"/plugins/royal-mcp/tags/2.0.0/includes/OAuth/Server.php","line":1208,"offset":64921,"snippet":"$_POST['refresh_token']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"pattern_match","pattern":"sqli_interpolated","count":2,"severity":"critical","examples":["uninstall.php:24","includes/Admin/Settings_Page.php:227"],"risk":"Interpolated variable in SQL query string (2 occurrence(s))"}]}}