{"summary":{"plugin_name":"tiny-compress-images","display_name":"TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF","version":"3.8.1","risk_level":"medium","risk_score":35.0,"risk_factors":{"static_analysis":20,"owasp":5,"attack_surface":10,"superglobal_density":5,"installs_modifier":-5},"last_analyzed":"2026-11-23T12:53:10.634586","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":100000,"rating":92,"num_ratings":183,"tested":"7.1.5","requires":"4.0","requires_php":"False","author":"TinyPNG","short_description":"Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.","tags":["compress images","compression","image size","Page Speed","performance"],"added":"2015-02-12","last_updated":"2026-10-13 10:42am GMT","metadata_fetched_at":"2026-11-22T04:45:48.756792+00:00","modules_missing":[],"modules_failed":[],"latest_release":"3.8.1"},"security_metrics":{"total_issues":74,"parameters_found":23,"unknown_parameters":0,"headers_accessed":0,"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":3,"A03":1,"A04":1,"A10":1},"attack_surface_level":"medium","attack_surface_score":25,"tainted_sinks":16,"tainted_sql":0,"tainted_ssrf":2,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":65.2,"rank":169629,"peer_count":486926,"better_than":65.2,"risk_distribution":{"high":176983,"critical":38282,"medium":118644,"low":95137,"minimal":57880}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"high","findings_count":3,"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":["Reachable 'redirect' sink x2 - 2 attacker-reachable 'redirect' sink(s) found by the reachability analyzer","Reachable 'option_update' sink x1 - 1 attacker-reachable 'option_update' sink(s) found by the reachability analyzer","Pattern 'nopriv_no_nonce' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]},{"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 x11 - 11 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"category":"A10","name":"Server-Side Request Forgery (SSRF)","severity":"medium","findings_count":1,"description":"Fetching a remote resource without validating the user-supplied URL","recommendations":["Validate user-supplied URLs against an allowlist of hosts before fetching","Use wp_safe_remote_get() rather than wp_remote_get()/cURL for user-influenced URLs","Block requests to internal/loopback/link-local address ranges"],"findings_summary":["Reachable 'ssrf' sink x2 - 2 attacker-reachable 'ssrf' 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: 13 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"reachability_sink","sink":"redirect","count":2,"risk":"2 attacker-reachable 'redirect' sink(s) found by the reachability analyzer"},{"type":"reachability_sink","sink":"option_update","count":1,"risk":"1 attacker-reachable 'option_update' sink(s) found by the reachability analyzer"},{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["src/class-tiny-plugin.php:91"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"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":13,"risk":"13 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}],"A10":[{"type":"reachability_sink","sink":"ssrf","count":2,"risk":"2 attacker-reachable 'ssrf' sink(s) found by the reachability analyzer"}]}}