{"summary":{"plugin_name":"ninjafirewall","display_name":"NinjaFirewall (WP Edition) – Advanced Security Plugin and Firewall","version":"4.10.1","risk_level":"high","risk_score":55.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":15,"superglobal_density":15,"filter_hooks":15,"raw_input":5,"installs_modifier":-5},"last_analyzed":"2026-11-23T12:39:21.839907","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":100000,"rating":98,"num_ratings":220,"tested":"7.1.5","requires":"4.9","requires_php":"7.1","author":"nintechnet","short_description":"A true Web Application Firewall to protect and secure WordPress.","tags":["firewall","malware","protection","security","virus"],"added":"2013-03-30","last_updated":"2026-11-07 1:30pm GMT","metadata_fetched_at":"2026-11-22T11:17:37.938862+00:00","modules_missing":[],"modules_failed":[],"latest_release":"4.10.1"},"security_metrics":{"total_issues":10,"parameters_found":72,"unknown_parameters":3,"headers_accessed":17,"cookies_accessed":3,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":3,"owasp_findings":{"A03":6,"A04":1,"A05":1,"A07":2},"attack_surface_level":"large","attack_surface_score":89,"tainted_sinks":58,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":23.7,"rank":381302,"peer_count":499892,"better_than":23.7,"risk_distribution":{"low":100914,"high":178019,"medium":121171,"critical":38808,"minimal":60980}},"executive_summary":null,"vulnerabilities":[{"id":"63180c28-6d05-4f97-9565-b48b6d9a8cc2","title":"NinjaFirewall < 4.3.4 - Authenticated (admin+) PHAR Deserialization","created_at":"2021-05-30T08:28:47.000Z","updated_at":"2021-05-31T07:01:18.000Z","published_date":"2021-05-30T00:00:00.000Z","description":null,"poc":null,"vuln_type":"OBJECT INJECTION","references":{"url":["https://blog.nintechnet.com/security-issue-fixed-in-ninjafirewall-wp-edition/"]},"cvss":null,"fixed_in":"4.3.4","introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":6,"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: HTML construction with direct user input $_SERVER detected.","phpcs_security: HTML construction with direct user input $_SERVER detected.","phpcs_security: HTML construction with direct user input $_SERVER detected.","Reachable 'file_include' sink x54 - 54 attacker-reachable 'file_include' sink(s) found by the reachability analyzer","Reachable 'header_injection' sink x4 - 4 attacker-reachable 'header_injection' sink(s) found by the reachability analyzer"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"medium","findings_count":2,"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":["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"]},{"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: 39 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]},{"category":"A05","name":"Security Misconfiguration","severity":"low","findings_count":1,"description":"Missing appropriate security hardening or improperly configured permissions","recommendations":["Remove phpinfo() and error_reporting()/display_errors overrides from shipped code","Never define WP_DEBUG inside a plugin — leave debug configuration to the site owner","Fail closed: do not expose stack traces or environment details to visitors"],"findings_summary":["Misconfiguration in ninjafirewall.php:918 - phpinfo(33);"]}],"owasp_findings":{"A03":[{"type":"phpcs_security","message":"HTML construction with direct user input $_SERVER detected.","file":"/plugins/ninjafirewall/tags/4.10.1/lib/help.php","line":320},{"type":"phpcs_security","message":"HTML construction with direct user input $_SERVER detected.","file":"/plugins/ninjafirewall/tags/4.10.1/lib/help.php","line":320},{"type":"phpcs_security","message":"HTML construction with direct user input $_SERVER detected.","file":"/plugins/ninjafirewall/tags/4.10.1/lib/help.php","line":320},{"type":"reachability_sink","sink":"file_include","count":54,"risk":"54 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"},{"type":"reachability_sink","sink":"header_injection","count":4,"risk":"4 attacker-reachable 'header_injection' sink(s) found by the reachability analyzer"},{"type":"pattern_match","pattern":"sqli_interpolated","count":1,"severity":"critical","examples":["lib/utils.php:1106"],"risk":"Interpolated variable in SQL query string (1 occurrence(s))"}],"A04":[{"type":"direct_file_access","count":39,"risk":"39 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}],"A05":[{"type":"misconfiguration","file":"ninjafirewall.php","line":"918","match":"phpinfo(33);","risk":"Security-misconfiguration token in shipped plugin code (error display / debug / info disclosure)"}],"A07":[{"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"}]}}