{"summary":{"plugin_name":"when-last-login","display_name":"When Last Login","version":"1.2.4","risk_level":"low","risk_score":25.0,"risk_factors":{"owasp":5,"attack_surface":5,"superglobal_density":15},"last_analyzed":"2026-11-23T12:30:14.802228","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":40000,"rating":94,"num_ratings":37,"tested":"7.1.5","requires":"5.0","requires_php":"7.4","author":"Andrew Lima","short_description":"Show a users last login date by creating a sortable column in your WordPress users list.","tags":["last logged in","last login","last seen","user login","user login time"],"added":"2016-07-15","last_updated":"2026-09-29 7:27pm GMT","metadata_fetched_at":"2026-10-04T19:45:53.166183+00:00","modules_missing":null,"modules_failed":null,"latest_release":"1.2.4"},"security_metrics":{"total_issues":0,"parameters_found":15,"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":{"A03":1,"A04":1,"A07":4},"attack_surface_level":"medium","attack_surface_score":17,"tainted_sinks":3,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":72.7,"rank":131083,"peer_count":479322,"better_than":72.7,"risk_distribution":{"medium":117083,"high":176491,"low":91488,"minimal":56083,"critical":38177}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A07","name":"Identification and Authentication Failures","severity":"high","findings_count":4,"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 'wll_login_record_user_access' - Authentication-related parameter — verify login flow hardening","Parameter 'wll_all_login_records' - Authentication-related parameter — verify login flow hardening","Auth hook 'wp_login' - Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'user_register' - Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"]},{"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 x3 - 3 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: 8 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A03":[{"type":"reachability_sink","sink":"file_include","count":3,"risk":"3 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":8,"risk":"8 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}],"A07":[{"type":"parameter","name":"wll_login_record_user_access","locations":{"POST":[{"file":"/plugins/when-last-login/tags/1.2.4/when-last-login.php","line":571,"offset":22615,"snippet":"$_POST['wll_login_record_user_access']"},{"file":"/plugins/when-last-login/tags/1.2.4/when-last-login.php","line":571,"offset":22691,"snippet":"$_POST['wll_login_record_user_access']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"parameter","name":"wll_all_login_records","locations":{"POST":[{"file":"/plugins/when-last-login/tags/1.2.4/when-last-login.php","line":573,"offset":22985,"snippet":"$_POST['wll_all_login_records']"},{"file":"/plugins/when-last-login/tags/1.2.4/when-last-login.php","line":573,"offset":23055,"snippet":"$_POST['wll_all_login_records']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"auth_hook","name":"wp_login","risk":"Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"user_register","risk":"Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}