{"summary":{"plugin_name":"wplr-sync","display_name":"Photo Engine (Media Organizer & Lightroom)","version":"8.2.8","risk_level":"high","risk_score":50.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"unauth_ratio":5,"superglobal_density":10,"rest_routes":10,"raw_input":5},"last_analyzed":"2026-11-23T12:35:41.264482","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":2000,"rating":98,"num_ratings":210,"tested":"7.1.4","requires":"6.0","requires_php":"8.1","author":"Jordy Meow","short_description":"Organize your photos in folders and collections. Synchronize with Lightroom. Make your life easier! :)","tags":["export","image","lightroom","manager","sync"],"added":"2014-10-28","last_updated":"2026-11-03 7:40am GMT","metadata_fetched_at":"2026-11-11T04:52:33.174069+00:00","modules_missing":null,"modules_failed":null,"latest_release":"6.6.3"},"security_metrics":{"total_issues":8,"parameters_found":29,"unknown_parameters":1,"headers_accessed":0,"cookies_accessed":1,"wp_hooks":7,"rest_routes":40,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":4,"A03":5,"A07":1},"attack_surface_level":"large","attack_surface_score":116,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":5},"comparison":{"percentile":14.1,"rank":45014,"peer_count":52394,"better_than":14.1,"risk_distribution":{"high":25314,"medium":15604,"critical":2716,"low":6166,"minimal":2593,"Unknown":1}},"executive_summary":"The wplr-sync plugin presents a high overall risk, with a risk score of 60.0 and a significant number of OWASP A01 vulnerabilities (42 issues). Despite being updated recently, its extensive attack surface—40 REST routes, 29 parameters, and numerous input validation flaws—keeps the site exposed to potential data breaches or compromise. This level of risk could jeopardize sensitive data, lead to compliance violations, and result in costly downtime.","vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"high","findings_count":4,"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 '/auth' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/hierarchy' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/gallery/(?P<id>[0-9]+)' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","Pattern 'rest_no_permission' x3 - REST endpoint with no permission check (3 occurrence(s))"]},{"category":"A03","name":"Injection","severity":"high","findings_count":5,"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","phpcs_security: Easy XSS detected because of direct user input with $_POST on echo","phpcs_security: Easy XSS detected because of direct user input with $_POST on echo","phpcs_security: Easy XSS detected because of direct user input with $_POST on echo","Pattern 'sqli_interpolated' x2 - Interpolated variable in SQL query string (2 occurrence(s))"]},{"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 'wplr_auth_token' - Authentication-related parameter — verify login flow hardening"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/auth","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/hierarchy","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/gallery/(?P<id>[0-9]+)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"rest_no_permission","count":3,"severity":"high","examples":["classes/public_api.php:13","classes/public_api.php:21","classes/public_api.php:29"],"risk":"REST endpoint with no permission check (3 occurrence(s))"}],"A03":[{"type":"parameter","name":"query","locations":{"POST":[{"file":"/plugins/wplr-sync/tags/8.2.8/classes/explorer.php","line":31,"offset":850,"snippet":"$_POST['query']"},{"file":"/plugins/wplr-sync/tags/8.2.8/classes/explorer.php","line":31,"offset":878,"snippet":"$_POST['query']"},{"file":"/plugins/wplr-sync/tags/8.2.8/classes/explorer.php","line":32,"offset":928,"snippet":"$_POST['query']"}]},"risk":"Parameter name suggests injection sink — verify sanitization"},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_POST on echo","file":"/plugins/wplr-sync/tags/8.2.8/classes/admin.php","line":779},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_POST on echo","file":"/plugins/wplr-sync/tags/8.2.8/classes/admin.php","line":789},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_POST on echo","file":"/plugins/wplr-sync/tags/8.2.8/classes/admin.php","line":798},{"type":"pattern_match","pattern":"sqli_interpolated","count":2,"severity":"critical","examples":["classes/core.php:610","common/rest.php:84"],"risk":"Interpolated variable in SQL query string (2 occurrence(s))"}],"A07":[{"type":"parameter","name":"wplr_auth_token","locations":{"GET":[{"file":"/plugins/wplr-sync/tags/8.2.8/classes/public_api.php","line":121,"offset":3620,"snippet":"$_GET[\"wplr_auth_token\"]"},{"file":"/plugins/wplr-sync/tags/8.2.8/classes/public_api.php","line":121,"offset":3649,"snippet":"$_GET[\"wplr_auth_token\"]"}]},"risk":"Authentication-related parameter — verify login flow hardening"}]}}