Buddypress Friend of a Friend (FOAF) Security & Risk Analysis

wordpress.org/plugins/buddypress-foaf

This plugin includes a new block inside each user profile page and includes a "Friend of a Friend (FOAF)" display.

20 active installs v2.7 PHP + WP 3.0+ Updated Nov 7, 2016
buddybuddypressfoaffriendssocial
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Buddypress Friend of a Friend (FOAF) Safe to Use in 2026?

Generally Safe

Score 85/100

Buddypress Friend of a Friend (FOAF) has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 9yr ago
Risk Assessment

The "buddypress-foaf" plugin v2.7 exhibits a mixed security posture. On the positive side, there are no known CVEs, no dangerous functions identified, and the plugin does not make external HTTP requests or perform file operations, which generally reduces its attack surface. The presence of 0 unprotected AJAX handlers and 0 REST API routes without permission callbacks is also a strong indicator of good security practices in those areas.

However, several critical concerns emerge from the static analysis. The most significant is the complete lack of output escaping, meaning that user-supplied data displayed on the frontend could be vulnerable to Cross-Site Scripting (XSS) attacks. Additionally, a substantial portion (60%) of SQL queries are not using prepared statements, which presents a risk of SQL injection vulnerabilities. The absence of nonce checks and capability checks, particularly in conjunction with the shortcode entry point, further elevates these risks by potentially allowing unauthorized actions or data manipulation if the shortcode's output is not properly handled.

Given the absence of recorded vulnerabilities, it's possible that the risks identified in the static analysis have not yet been exploited, or that the specific implementation details of the shortcode mitigate some of these risks in practice. However, the lack of output escaping and the presence of non-prepared SQL queries represent fundamental security weaknesses that should be addressed to prevent future exploits.

Key Concerns

  • 0% output escaping
  • 40% SQL queries not prepared
  • 0 Nonce checks
  • 0 Capability checks
Vulnerabilities
None known

Buddypress Friend of a Friend (FOAF) Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 17, 2026

Buddypress Friend of a Friend (FOAF) Code Analysis

Dangerous Functions
0
Raw SQL Queries
3
2 prepared
Unescaped Output
19
0 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

40% prepared5 total queries

Output Escaping

0% escaped19 total outputs
Attack Surface

Buddypress Friend of a Friend (FOAF) Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[buddypressfoaf_show_potential_friends] buddypress-foaf.php:26
WordPress Hooks 3
actioninitbuddypress-foaf.php:16
actionbp_before_member_headerbuddypress-foaf.php:25
actionwidgets_initbuddypress-foaf.php:222
Maintenance & Trust

Buddypress Friend of a Friend (FOAF) Maintenance & Trust

Maintenance Signals

WordPress version tested4.7.32
Last updatedNov 7, 2016
PHP min version
Downloads17K

Community Trust

Rating94/100
Number of ratings9
Active installs20
Developer Profile

Buddypress Friend of a Friend (FOAF) Developer Profile

quan_flo

5 plugins · 290 total installs

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

How We Detect Buddypress Friend of a Friend (FOAF)

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/buddypress-foaf/css/bpfoaf.css/wp-content/plugins/buddypress-foaf/js/bpfoaf.js
Script Paths
/wp-content/plugins/buddypress-foaf/js/bpfoaf.js
Version Parameters
buddypress-foaf/css/bpfoaf.css?ver=buddypress-foaf/js/bpfoaf.js?ver=

HTML / DOM Fingerprints

CSS Classes
bpfoaf
Shortcode Output
[buddypressfoaf_show_potential_friends]
FAQ

Frequently Asked Questions about Buddypress Friend of a Friend (FOAF)