{"summary":{"plugin_name":"wp-rest-api-authentication","display_name":"JWT Authentication for WP REST APIs","version":"5.0.1","risk_level":"medium","risk_score":47.0,"risk_factors":{"static_analysis":10,"owasp":5,"attack_surface":10,"unauth_ratio":10,"superglobal_density":10,"rest_routes":2},"last_analyzed":"2026-11-23T12:12:44.078408","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":10000,"rating":88,"num_ratings":75,"tested":"7.1.5","requires":"3.0.1","requires_php":"5.6","author":"miniOrange","short_description":"Secure and protect WordPress REST API from unauthorized access using JWT token, Basic Authentication, API Key, OAuth 2, or external token.","tags":["API key","jwt authentication","rest","rest-api","secure api"],"added":"2019-05-09","last_updated":"2026-11-12 4:48am GMT","metadata_fetched_at":"2026-11-22T17:07:10.840087+00:00","modules_missing":[],"modules_failed":[],"latest_release":"5.0.1"},"security_metrics":{"total_issues":27,"parameters_found":43,"unknown_parameters":1,"headers_accessed":7,"cookies_accessed":0,"wp_hooks":2,"rest_routes":3,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":1,"file_upload_parameters":0,"owasp_findings":{"A01":3,"A02":2,"A03":11,"A07":1},"attack_surface_level":"large","attack_surface_score":51,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":43.5,"rank":282862,"peer_count":500815,"better_than":43.5,"risk_distribution":{"low":101338,"high":178088,"medium":121372,"critical":38846,"minimal":61171}},"executive_summary":null,"vulnerabilities":[{"id":"840ad171-145e-4ef8-bc05-06fee7af8e98","title":"REST API Authentication < 2.4.1 - Settings Update via CSRF","created_at":"2022-11-19T12:04:31.000Z","updated_at":"2022-11-19T12:04:31.000Z","published_date":"2022-11-09T00:00:00.000Z","vuln_type":"CSRF","references":{"cve":["2022-45073"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"2.4.1","introduced_in":null},{"id":"f154880a-c9c7-4f73-b215-f4073308a793","title":"WordPress REST API Authentication < 3.6.4 - Missing Authorization to Authenticated (Subscriber+) Limited Options Update","created_at":"2025-04-22T20:33:05.000Z","updated_at":"2025-04-22T20:33:05.000Z","published_date":"2025-04-16T00:00:00.000Z","vuln_type":"NO AUTHORISATION","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/c02c824a-dc6e-4329-8e1b-0519b6c4e4c0"],"cve":["2025-39545"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.6.4","introduced_in":null},{"id":"9638bdd4-b347-407d-b8c4-c600c619a5d4","title":"JWT Authentication for WP REST APIs < 4.8.0 - Unauthenticated Authentication Method Downgrade via 'mo_rest_api_test_config' Parameter","created_at":"2026-09-17T06:29:23.000Z","updated_at":"2026-09-17T06:29:23.000Z","published_date":"2026-09-14T00:00:00.000Z","vuln_type":"BYPASS","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/18bb20d5-325c-4a72-890c-edd38ab03cea"],"cve":["2026-89027"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.8.0","introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":11,"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":["Parameter 'mo_api_auth_query_feedback' - Parameter name suggests injection sink — verify sanitization","Parameter 'query_mail' - Parameter name suggests injection sink — verify sanitization","Parameter 'mo_api_authentication_contact_us_query_form_fields' - Parameter name suggests injection sink — verify sanitization","Parameter 'mo_api_authentication_contact_us_query' - Parameter name suggests injection sink — verify sanitization","Parameter 'query' - Parameter name suggests injection sink — verify sanitization"]},{"category":"A01","name":"Broken Access Control","severity":"high","findings_count":3,"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 'token-validate' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'token' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'oauth-methods' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"medium","findings_count":1,"description":"Functions related to a user's identity, authentication, or session management","recommendations":["Enforce strong passwords and rate-limit login attempts","Add MFA/2FA for privileged accounts","Use wp_verify_nonce() and capability checks together — neither alone is sufficient","Audit any authenticate / determine_current_user filter for bypass paths"],"findings_summary":["Parameter 'mo_api_authentication_goto_login_fields' - Authentication-related parameter — verify login flow hardening"]},{"category":"A02","name":"Cryptographic Failures","severity":"low","findings_count":2,"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 'password' - Sensitive data exposure","Parameter 'confirm_password' - Sensitive data exposure"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"token-validate","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"token","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"oauth-methods","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"}],"A02":[{"type":"parameter","name":"password","locations":{"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":609,"offset":21195,"snippet":"$_POST['password']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":613,"offset":21676,"snippet":"$_POST['password']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":620,"offset":22438,"snippet":"$_POST['password']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":670,"offset":26288,"snippet":"$_POST['password']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":676,"offset":26836,"snippet":"$_POST['password']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"confirm_password","locations":{"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":609,"offset":21226,"snippet":"$_POST['confirm_password']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":613,"offset":21712,"snippet":"$_POST['confirm_password']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":621,"offset":22659,"snippet":"$_POST['confirm_password']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"parameter","name":"mo_api_auth_query_feedback","locations":{"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":711,"offset":29702,"snippet":"$_POST['mo_api_auth_query_feedback']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"parameter","name":"query_mail","locations":{"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":725,"offset":30138,"snippet":"$_POST['query_mail']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":725,"offset":30191,"snippet":"$_POST['query_mail']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"parameter","name":"mo_api_authentication_contact_us_query_form_fields","locations":{"GET":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":754,"offset":31650,"snippet":"$_REQUEST['mo_api_authentication_contact_us_query_form_fields']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":754,"offset":31769,"snippet":"$_REQUEST['mo_api_authentication_contact_us_query_form_fields']"}],"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":754,"offset":31650,"snippet":"$_REQUEST['mo_api_authentication_contact_us_query_form_fields']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":754,"offset":31769,"snippet":"$_REQUEST['mo_api_authentication_contact_us_query_form_fields']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"parameter","name":"mo_api_authentication_contact_us_query","locations":{"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":759,"offset":32272,"snippet":"$_POST['mo_api_authentication_contact_us_query']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":759,"offset":32358,"snippet":"$_POST['mo_api_authentication_contact_us_query']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"parameter","name":"query","locations":{"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":780,"offset":33815,"snippet":"$_POST['query']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":780,"offset":33868,"snippet":"$_POST['query']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/partials/account/login/register.php","line":35},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/partials/account/login/register.php","line":35},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/partials/class-mo-api-authentication-admin-menu.php","line":102},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/partials/class-mo-api-authentication-admin-menu.php","line":102},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/partials/support/class-mo-api-authentication-support.php","line":236},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/partials/support/class-mo-api-authentication-support.php","line":236}],"A07":[{"type":"parameter","name":"mo_api_authentication_goto_login_fields","locations":{"GET":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":663,"offset":25398,"snippet":"$_REQUEST['mo_api_authentication_goto_login_fields']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":663,"offset":25506,"snippet":"$_REQUEST['mo_api_authentication_goto_login_fields']"}],"POST":[{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":663,"offset":25398,"snippet":"$_REQUEST['mo_api_authentication_goto_login_fields']"},{"file":"/plugins/wp-rest-api-authentication/tags/5.0.1/admin/class-miniorange-api-authentication-admin.php","line":663,"offset":25506,"snippet":"$_REQUEST['mo_api_authentication_goto_login_fields']"}]},"risk":"Authentication-related parameter — verify login flow hardening"}]}}