{"summary":{"plugin_name":"two-factor","display_name":"Two Factor","version":"0.17.0","risk_level":"medium","risk_score":37.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":5,"superglobal_density":10,"filter_hooks":15,"rest_routes":2,"installs_modifier":-5},"last_analyzed":"2026-11-23T10:21:25.023006","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":100000,"rating":96,"num_ratings":209,"tested":"7.1.5","requires":"7.0","requires_php":"7.4","author":"WordPress.org","short_description":"Enable Two-Factor Authentication (2FA) using time-based one-time passwords (TOTP), email, and backup verification codes.","tags":["2FA","authentication","MFA","security","totp"],"added":"2015-08-10","last_updated":"2026-09-28 4:57am GMT","metadata_fetched_at":"2026-11-22T04:51:24.862920+00:00","modules_missing":[],"modules_failed":[],"latest_release":"0.17.0"},"security_metrics":{"total_issues":2,"parameters_found":20,"unknown_parameters":2,"headers_accessed":2,"cookies_accessed":0,"wp_hooks":2,"rest_routes":2,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A03":3,"A04":1,"A07":5},"attack_surface_level":"medium","attack_surface_score":26,"tainted_sinks":15,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":2,"dangerous_patterns":0},"comparison":{"percentile":64.1,"rank":171930,"peer_count":478879,"better_than":64.1,"risk_distribution":{"medium":116964,"high":176456,"low":91296,"minimal":55988,"critical":38175}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"high","findings_count":3,"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":["phpcs_security: Easy XSS detected because of direct user input with $_GET on echo","phpcs_security: Easy XSS detected because of direct user input with $_GET on echo","Reachable 'file_include' sink x11 - 11 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"high","findings_count":5,"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 'interim-login' - Authentication-related parameter — verify login flow hardening","Parameter 'customize-login' - Authentication-related parameter — verify login flow hardening","Auth hook 'authenticate' - Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'wp_login' - Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication","Reachable 'auth_bypass' sink x2 - 2 attacker-reachable 'auth_bypass' 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: 28 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/two-factor/tags/0.17.0/includes/function.login-footer.php","line":101},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/two-factor/tags/0.17.0/includes/function.login-footer.php","line":105},{"type":"reachability_sink","sink":"file_include","count":11,"risk":"11 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":28,"risk":"28 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}],"A07":[{"type":"parameter","name":"interim-login","locations":{"GET":[{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":1268,"offset":41910,"snippet":"$_REQUEST['interim-login']"},{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":1917,"offset":65486,"snippet":"$_REQUEST['interim-login']"},{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":2058,"offset":72249,"snippet":"$_REQUEST['interim-login']"}],"POST":[{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":1268,"offset":41910,"snippet":"$_REQUEST['interim-login']"},{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":1917,"offset":65486,"snippet":"$_REQUEST['interim-login']"},{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":2058,"offset":72249,"snippet":"$_REQUEST['interim-login']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"parameter","name":"customize-login","locations":{"GET":[{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":1920,"offset":65685,"snippet":"$_REQUEST['customize-login']"}],"POST":[{"file":"/plugins/two-factor/tags/0.17.0/class-two-factor-core.php","line":1920,"offset":65685,"snippet":"$_REQUEST['customize-login']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"auth_hook","name":"authenticate","risk":"Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"wp_login","risk":"Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"reachability_sink","sink":"auth_bypass","count":2,"risk":"2 attacker-reachable 'auth_bypass' sink(s) found by the reachability analyzer"}]}}