Recommend to a friend Security & Risk Analysis

wordpress.org/plugins/recommend-a-friend

Plugin that add a share to friends jQuery Lightbox to your pages or posts. Users will be able to share your content using 2 ways :

40 active installs v2.2.2 PHP + WP 3.1+ Updated Apr 9, 2018
emailfacebookrecommendsharewidget
64
C · Use Caution
CVEs total1
Unpatched1
Last CVEDec 24, 2013
Download
Safety Verdict

Is Recommend to a friend Safe to Use in 2026?

Use With Caution

Score 64/100

Recommend to a friend has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

1 known CVE 1 unpatched Last CVE: Dec 24, 2013Updated 7yr ago
Risk Assessment

The "recommend-a-friend" plugin version 2.2.2 exhibits a mixed security posture. While it demonstrates good practices such as 100% SQL query sanitization using prepared statements and a single nonce check, significant concerns arise from other areas. The presence of the dangerous `create_function` function is a notable red flag, as it can be exploited for remote code execution if improperly handled. Furthermore, a substantial portion (64%) of output escaping is not properly implemented, posing a risk of Cross-Site Scripting (XSS) vulnerabilities, which is consistent with its vulnerability history. The plugin's attack surface is small with only one entry point (a shortcode), and this entry point appears to be unprotected from an authorization perspective, though the static analysis doesn't reveal direct issues in this specific version's code beyond the `create_function` usage. The vulnerability history highlights a past medium-severity XSS vulnerability from 2013, and the fact that it remains unpatched for that specific CVE is a critical concern.

Key Concerns

  • Unpatched CVE (medium severity)
  • High percentage of unescaped output
  • Dangerous function used (create_function)
  • Shortcode entry point without capability check
Vulnerabilities
1

Recommend to a friend Security Vulnerabilities

CVEs by Year

1 CVE in 2013 · unpatched
2013
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2013-7276medium · 6.1Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Recommend to a friend <= 2.2.2 - Cross-Site Scripting

Dec 24, 2013Unpatched
Code Analysis
Analyzed Mar 16, 2026

Recommend to a friend Code Analysis

Dangerous Functions
1
Raw SQL Queries
0
0 prepared
Unescaped Output
30
17 escaped
Nonce Checks
1
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

create_functionadd_action( 'widgets_init', create_function( '', 'return register_widget( "RAF_Widget");' ) );inc\class-raf-widget.php:63

Output Escaping

36% escaped47 total outputs
Attack Surface

Recommend to a friend Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[raf_link] inc\class-client.php:12
WordPress Hooks 7
actionadmin_menuinc\class-admin.php:11
actionadmin_initinc\class-admin.php:12
actioninitinc\class-client.php:10
filterthe_contentinc\class-client.php:11
actiontemplate_redirectinc\class-client.php:13
actionwidgets_initinc\class-raf-widget.php:63
actionplugins_loadedrecommend-to-a-friend.php:60
Maintenance & Trust

Recommend to a friend Maintenance & Trust

Maintenance Signals

WordPress version tested4.9.29
Last updatedApr 9, 2018
PHP min version
Downloads21K

Community Trust

Rating70/100
Number of ratings6
Active installs40
Developer Profile

Recommend to a friend Developer Profile

benjaminniess

4 plugins · 1K total installs

80
trust score
Avg Security Score
80/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Recommend to a friend

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/recommend-a-friend/css/raf-admin-styles.css/wp-content/plugins/recommend-a-friend/js/raf_admin.js/wp-content/plugins/recommend-a-friend/js/fancybox/jquery.fancybox-1.3.4.pack.js/wp-content/plugins/recommend-a-friend/js/fancybox/jquery.fancybox-1.3.4.css/wp-content/plugins/recommend-a-friend/css/raf-styles.css/wp-content/plugins/recommend-a-friend/js/raf_script.js
Script Paths
/wp-content/plugins/recommend-a-friend/js/raf_admin.js/wp-content/plugins/recommend-a-friend/js/fancybox/jquery.fancybox-1.3.4.pack.js/wp-content/plugins/recommend-a-friend/js/raf_script.js
Version Parameters
recommend-a-friend/js/fancybox/jquery.fancybox-1.3.4.pack.js?ver=1.3recommend-a-friend/js/raf_script.js?ver=1.0recommend-a-friend/js/fancybox/jquery.fancybox-1.3.4.css?ver=1.3.4recommend-a-friend/css/raf-styles.css?ver=1.0

HTML / DOM Fingerprints

JS Globals
RAF_URL
FAQ

Frequently Asked Questions about Recommend to a friend