{"summary":{"plugin_name":"pretty-link","display_name":"PrettyLinks – Affiliate Link Management, URL Shortener, Link Cloaking, Tracking & Branded Short Links","version":"4.0.18","risk_level":"low","risk_score":15.0,"risk_factors":{"static_analysis":5,"owasp":5,"rest_routes":10,"installs_modifier":-5},"last_analyzed":"2026-11-23T11:54:28.175410","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":200000,"rating":96,"num_ratings":1322,"tested":"7.1.3","requires":"6.5","requires_php":"7.4","author":"Blair Williams","short_description":"🌠 Shorten, brand, and track any URL on your own domain. Keep your links — and your data — where they belong. 🔗","tags":["affiliate links","link cloaking","link management","link tracking","url shortener"],"added":"2009-03-29","last_updated":"2026-10-21 1:49pm GMT","metadata_fetched_at":"2026-10-25T17:34:49.370497+00:00","modules_missing":[],"modules_failed":[],"latest_release":"4.0.18"},"security_metrics":{"total_issues":65,"parameters_found":43,"unknown_parameters":1,"headers_accessed":7,"cookies_accessed":1,"wp_hooks":2,"rest_routes":39,"query_vars":0,"shortcode_atts":1,"rest_routes_with_access_patterns":12,"file_upload_parameters":0,"owasp_findings":{"A01":2,"A03":2,"A04":1,"A07":1,"A08":1},"attack_surface_level":"large","attack_surface_score":123,"tainted_sinks":26,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":3},"comparison":{"percentile":81.5,"rank":92935,"peer_count":501497,"better_than":81.5,"risk_distribution":{"low":101676,"high":178141,"medium":121491,"critical":38878,"minimal":61311}},"executive_summary":null,"vulnerabilities":[{"id":"845a84bc-4d36-4d17-b9de-f4bb976dcdb9","title":"Pretty Link Lite <= 1.5.3 - Cross-Site Scripting (XSS)","created_at":"2014-08-01T10:58:42.000Z","updated_at":"2020-09-22T05:55:19.000Z","published_date":"2012-05-15T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://packetstormsecurity.com/files/112693/","https://plugins.trac.wordpress.org/changeset?old_path=%2Fpretty-link&old=473693&new_path=%2Fpretty-link&new=473693&sfp_email=&sfph_mail=","https://wordpress.org/support/topic/plugin-pretty-link-lite-152-xss-vulnerability/"],"cve":["2011-4595"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.5.4","introduced_in":null},{"id":"4c786353-9781-415b-938b-43d17dd45bbc","title":"Pretty Link Lite <= 1.6.0 - Cross-Site Scripting (XSS)","created_at":"2014-08-01T10:58:42.000Z","updated_at":"2016-07-07T19:43:12.000Z","published_date":"2014-08-01T10:58:42.000Z","vuln_type":"XSS","references":{},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.6.1","introduced_in":null},{"id":"b835dc19-0512-4902-8d60-fa1f90ef0bcb","title":"Pretty Link Lite <= 1.6.2 - XSS in SWF","created_at":"2014-08-01T10:58:42.000Z","updated_at":"2019-10-21T09:16:58.000Z","published_date":"2014-08-01T10:58:42.000Z","vuln_type":"XSS","references":{"url":["https://seclists.org/bugtraq/2013/Feb/100","https://packetstormsecurity.com/files/120433/"],"cve":["2013-1636"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.6.3","introduced_in":null},{"id":"8575fe05-c470-4086-90d0-22b4d25d1c56","title":"Pretty Link Lite <= 1.6.7 - Authenticated SQL Injection","created_at":"2015-11-22T09:59:42.000Z","updated_at":"2020-09-22T07:13:47.000Z","published_date":"2015-07-08T00:00:00.000Z","vuln_type":"SQLI","references":{"url":["http://cinu.pl/research/wp-plugins/mail_9ca443a3759e5c7fd889ae0e02e044e6.html","http://blog.cinu.pl/2015/11/php-static-code-analysis-vs-top-1000-wordpress-plugins.html"],"cve":["2015-9457"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.6.8","introduced_in":null},{"id":"fae257da-dd57-4da7-a926-ecdbd52624c2","title":"Shortlinks by Pretty Links <= 2.1.9 - Stored XSS and CSV Injection","created_at":"2019-06-19T06:45:18.000Z","updated_at":"2023-06-08T14:11:21.000Z","published_date":"2019-06-19T00:00:00.000Z","vuln_type":"MULTI","references":{"url":["https://blog.nintechnet.com/stored-xss-and-csv-injection-vulnerabilities-in-wordpress-shortlinks-by-pretty-links-plugin/"],"cve":["2019-25147"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"2.1.10","introduced_in":null},{"id":"3b8c9728-49a6-410e-9f30-e790dd994bc9","title":"Shortlinks by Pretty Links < 3.4.1 - Link Visit Stats Clear via CSRF","created_at":"2023-05-29T12:03:40.000Z","updated_at":"2023-05-29T12:03:41.000Z","published_date":"2023-04-13T00:00:00.000Z","vuln_type":"CSRF","references":{"cve":["2022-47149"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.4.1","introduced_in":null},{"id":"64917099-3668-4857-8c2d-1762bbdbf29c","title":"Pretty Links – Affiliate Links, Link Branding, Link Tracking & Marketing < 3.6.4 - Plugin Settings Update via CSRF","created_at":"2024-03-22T20:33:43.000Z","updated_at":"2024-03-22T20:33:43.000Z","published_date":"2024-03-22T00:00:00.000Z","vuln_type":"CSRF","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/97d78b4b-568e-43e7-bebf-091179c321f6"],"cve":["2024-2326"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.6.4","introduced_in":null},{"id":"abc61dbb-e117-45ac-8050-5ee511bd41fc","title":"Shortlinks by Pretty Links < 3.6.3 - Reflected Cross-Site Scripting via post_status","created_at":"2024-03-28T07:53:18.000Z","updated_at":"2024-03-28T07:53:18.000Z","published_date":"2024-03-25T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://patchstack.com/database/vulnerability/pretty-link/wordpress-pretty-links-plugin-3-6-2-reflected-cross-site-scripting-xss-vulnerability"],"cve":["2024-29770"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.6.3","introduced_in":null},{"id":"604bd17e-7877-4f3d-bc15-b4fef0058b82","title":"Shortlinks by Pretty Links < 3.6.16 - Missing Authorization","created_at":"2025-05-28T16:32:11.000Z","updated_at":"2025-05-28T16:32:11.000Z","published_date":"2025-05-19T00:00:00.000Z","vuln_type":"NO AUTHORISATION","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/9ed0d4b6-f553-4aa5-9dfa-49df78f4269d"],"cve":["2025-48247"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.6.16","introduced_in":null},{"id":"7f99cd6d-7aec-42b0-9cdf-e69f59bc094e","title":"PrettyLinks < 3.6.21 - Authenticated (Administrator+) SQL Injection via 's' Parameter","created_at":"2026-08-04T17:37:43.000Z","updated_at":"2026-08-05T06:37:35.000Z","published_date":"2026-08-04T16:56:59.000Z","vuln_type":"SQLI","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/a2399535-c293-4b06-8ef4-1706bbe12bf7"],"cve":["2026-5062"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.6.21","introduced_in":null}],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":2,"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 'option_update' sink x4 - 4 attacker-reachable 'option_update' sink(s) found by the reachability analyzer","Reachable 'redirect' sink x1 - 1 attacker-reachable 'redirect' sink(s) found by the reachability analyzer"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":2,"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 x13 - 13 attacker-reachable 'file_include' sink(s) found by the reachability analyzer","Pattern 'sqli_interpolated' x3 - Interpolated variable in SQL query string (3 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 'prli_session_id' - Authentication-related parameter — verify login flow hardening"]},{"category":"A08","name":"Software and Data Integrity Failures","severity":"medium","findings_count":1,"description":"Code and infrastructure that does not protect against integrity violations — notably insecure deserialization of attacker-controlled data","recommendations":["Never call unserialize() on attacker-controlled data — use json_decode() instead","If deserialization is unavoidable, pass ['allowed_classes' => false]","Verify integrity (signatures/checksums) of updates and imported data"],"findings_summary":["Reachable 'unserialize' sink x2 - 2 attacker-reachable 'unserialize' 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":{"A01":[{"type":"reachability_sink","sink":"option_update","count":4,"risk":"4 attacker-reachable 'option_update' sink(s) found by the reachability analyzer"},{"type":"reachability_sink","sink":"redirect","count":1,"risk":"1 attacker-reachable 'redirect' sink(s) found by the reachability analyzer"}],"A03":[{"type":"reachability_sink","sink":"file_include","count":13,"risk":"13 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"},{"type":"pattern_match","pattern":"sqli_interpolated","count":3,"severity":"critical","examples":["app/controllers/PrliReviewNoticeController.php:66","app/models/PrliDb.php:36","app/models/PrliLinkMeta.php:35"],"risk":"Interpolated variable in SQL query string (3 occurrence(s))"}],"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":"prli_session_id","locations":{"GET":[{"file":"/plugins/pretty-link/tags/4.0.18/src/Stripe/InvoiceRenderer.php","line":128,"offset":4305,"snippet":"$_GET['prli_session_id']"},{"file":"/plugins/pretty-link/tags/4.0.18/src/Stripe/InvoiceRenderer.php","line":132,"offset":4614,"snippet":"$_GET['prli_session_id']"}]},"risk":"Authentication-related parameter — verify login flow hardening"}],"A08":[{"type":"reachability_sink","sink":"unserialize","count":2,"risk":"2 attacker-reachable 'unserialize' sink(s) found by the reachability analyzer"}]}}