{"summary":{"plugin_name":"oauth2-provider","display_name":"WP OAuth Server (OAuth Authentication)","version":"4.5.2","risk_level":"medium","risk_score":45.0,"risk_factors":{"static_analysis":10,"owasp":5,"attack_surface":5,"superglobal_density":5,"filter_hooks":15,"raw_input":5},"last_analyzed":"2026-11-23T13:29:46.067406","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":3000,"rating":76,"num_ratings":41,"tested":"6.9.0","requires":"4.7.2","requires_php":"7.4","author":"Jayson T Cote","short_description":"Adds Authentication through OAuth 2. Provides the ability for Single Sign On for websites & Mobile Applications.","tags":["oauth","OAuth provider","oauth2","OAuth2 Service","Provider"],"added":"2013-03-21","last_updated":"2026-09-24 5:48pm GMT","metadata_fetched_at":"2026-09-27T21:46:53.873313+00:00","modules_missing":null,"modules_failed":null,"latest_release":"4.5.2"},"security_metrics":{"total_issues":24,"parameters_found":20,"unknown_parameters":0,"headers_accessed":3,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A02":1,"A03":2,"A07":3},"attack_surface_level":"medium","attack_surface_score":22,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":20},"comparison":{"percentile":52.4,"rank":226763,"peer_count":476703,"better_than":52.4,"risk_distribution":{"medium":116541,"high":176345,"low":90247,"minimal":55446,"critical":38124}},"executive_summary":null,"vulnerabilities":[{"id":"6a243f3c-ed7b-4554-b828-45870a18a7c4","title":"WP OAuth Server <= 3.1.4 - Insecure Pseudor&om Number Generation","created_at":"2015-08-14T17:23:13.000Z","updated_at":"2020-09-22T07:12:08.000Z","published_date":"2015-08-12T00:00:00.000Z","vuln_type":"UNKNOWN","references":{"url":["https://advisories.dxw.com/advisories/the-oauth2-complete-plugin-for-wordpress-uses-a-pseudorandom-number-generator-which-is-non-cryptographically-secure/","https://packetstormsecurity.com/files/133062/"],"cve":["2015-9435"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.1.5","introduced_in":null},{"id":"33dddaec-a32a-4fce-89d6-164565be13e1","title":"WP OAuth Server < 4.2.2 - Admin+ Stored XSS","created_at":"2022-11-08T14:45:14.000Z","updated_at":"2022-11-08T14:45:14.000Z","published_date":"2022-11-08T00:00:00.000Z","vuln_type":"XSS","references":{"cve":["2022-3892"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"4.2.2","introduced_in":null},{"id":"e1fcde2a-91a5-40cb-876b-884f01c80336","title":"WP OAuth Server < 3.4.2 - Client Secret Regeneration via CSRF","created_at":"2022-11-10T13:15:13.000Z","updated_at":"2023-03-27T06:58:49.000Z","published_date":"2022-11-10T00:00:00.000Z","vuln_type":"CSRF","references":{"cve":["2022-3926"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"3.4.2","introduced_in":null},{"id":"298487b2-4141-4c9f-9bb2-e1450aefc1a8","title":"WP OAuth Server < 4.2.5 - Arbitrary Post Deletion via CSRF","created_at":"2023-02-21T07:33:05.000Z","updated_at":"2023-02-21T08:47:57.000Z","published_date":"2023-02-21T00:00:00.000Z","vuln_type":"CSRF","references":{"cve":["2022-3894"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"4.2.5","introduced_in":null},{"id":"be9b25c8-b0d7-4c22-81ff-e41650a4ed41","title":"WP OAuth Server < 4.3.0 - Subscriber+ Arbitrary Client Deletion","created_at":"2023-02-21T07:34:30.000Z","updated_at":"2023-03-27T07:00:54.000Z","published_date":"2023-02-21T00:00:00.000Z","vuln_type":"NO AUTHORISATION","references":{"cve":["2022-4148"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"4.3.0","introduced_in":null},{"id":"9d20b555-da9a-45a3-8f39-22135a3377a9","title":"OAuth Server < 4.4.0 - Open Redirect","created_at":"2024-04-11T16:30:35.000Z","updated_at":"2024-04-11T16:30:35.000Z","published_date":"2024-04-05T00:00:00.000Z","vuln_type":"REDIRECT","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/4d425843-a68e-40fd-93de-04c1c46af88f"],"cve":["2024-31253"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.4.0","introduced_in":null},{"id":"14fe7642-4e78-459b-9d9d-2dcc02b87326","title":"WP OAuth Server (OAuth Authentication) < 4.5.2 - Authenticated (Contributor+) Stored Cross-Site Scripting","created_at":"2026-09-30T17:31:33.000Z","updated_at":"2026-09-30T17:31:33.000Z","published_date":"2026-09-30T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/1622691e-a28d-4dd3-ab05-ed53943010e5"],"cve":["2026-97288"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.5.2","introduced_in":null}],"recommendations":[{"category":"A07","name":"Identification and Authentication Failures","severity":"high","findings_count":3,"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 'post_logout_redirect_uri' - Authentication-related parameter — verify login flow hardening","Auth hook 'determine_current_user' - Hooks the 'determine_current_user' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'password_reset' - Hooks the 'password_reset' authentication/identity flow — verify it cannot be abused to bypass authentication"]},{"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":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":["Parameter 'query' - Parameter name suggests injection sink — verify sanitization","Pattern 'sqli_interpolated' x19 - Interpolated variable in SQL query string (19 occurrence(s))"]},{"category":"A02","name":"Cryptographic Failures","severity":"low","findings_count":1,"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 'refresh_token' - Sensitive data exposure"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["includes/ajax/class-wo-ajax.php:21"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A02":[{"type":"parameter","name":"refresh_token","locations":{"GET":[{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":203,"offset":5645,"snippet":"$_REQUEST['refresh_token']"},{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":204,"offset":5769,"snippet":"$_REQUEST['refresh_token']"}],"POST":[{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":203,"offset":5645,"snippet":"$_REQUEST['refresh_token']"},{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":204,"offset":5769,"snippet":"$_REQUEST['refresh_token']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"parameter","name":"query","locations":{"GET":[{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/ajax/class-wo-ajax.php","line":53,"offset":1146,"snippet":"$_REQUEST['query']"}],"POST":[{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/ajax/class-wo-ajax.php","line":53,"offset":1146,"snippet":"$_REQUEST['query']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"pattern_match","pattern":"sqli_interpolated","count":19,"severity":"critical","examples":["wp-oauth-main.php:358","wp-oauth-main.php:359","wp-oauth-main.php:361"],"risk":"Interpolated variable in SQL query string (19 occurrence(s))"}],"A07":[{"type":"parameter","name":"post_logout_redirect_uri","locations":{"GET":[{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":189,"offset":5048,"snippet":"$_REQUEST['post_logout_redirect_uri']"},{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":190,"offset":5141,"snippet":"$_REQUEST['post_logout_redirect_uri']"}],"POST":[{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":189,"offset":5048,"snippet":"$_REQUEST['post_logout_redirect_uri']"},{"file":"/plugins/oauth2-provider/tags/4.5.2/includes/filters.php","line":190,"offset":5141,"snippet":"$_REQUEST['post_logout_redirect_uri']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"auth_hook","name":"determine_current_user","risk":"Hooks the 'determine_current_user' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"password_reset","risk":"Hooks the 'password_reset' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}