Crafty Social Buttons Security & Risk Analysis

wordpress.org/plugins/crafty-social-buttons

Adds social sharing and link buttons, including Ravelry, Etsy, Craftsy and Pinterest.

1K active installs v1.5.8 PHP + WP 3.5+ Updated Nov 28, 2017
sharingsocialsocial-buttonssocial-iconssocial-sharing
85
A · Safe
CVEs total1
Unpatched0
Last CVEMay 12, 2017
Safety Verdict

Is Crafty Social Buttons Safe to Use in 2026?

Generally Safe

Score 85/100

Crafty Social Buttons has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: May 12, 2017Updated 8yr ago
Risk Assessment

The "crafty-social-buttons" v1.5.8 plugin exhibits a mixed security posture. While the static analysis indicates a relatively small attack surface with no directly exposed unprotected entry points, several code signals raise concerns. The presence of the `create_function` is a significant red flag, often leading to security vulnerabilities. Furthermore, the complete lack of prepared statements for SQL queries is highly problematic, exposing the application to SQL injection risks. A substantial portion of output is not properly escaped, increasing the likelihood of Cross-Site Scripting (XSS) vulnerabilities. The plugin's vulnerability history, though currently unpatched and dating back to 2017, shows a past medium-severity XSS vulnerability, reinforcing the concerns about output handling.

Despite the lack of critical or high-severity taint flows and the presence of some nonce and capability checks, the identified code signals (especially `create_function` and raw SQL) and the historical XSS vulnerability point to significant potential risks if not addressed. The plugin's outdated nature and past security issues suggest a need for thorough review and potential refactoring to align with modern secure coding practices. The absence of recent vulnerabilities might be due to infrequent use or lack of recent security auditing, rather than inherent security robustness. Therefore, while the plugin doesn't appear to have immediate critical exploitable flaws based solely on this analysis, its underlying code quality suggests a heightened risk profile.

Key Concerns

  • Dangerous function 'create_function' found
  • SQL queries not using prepared statements
  • Low percentage of properly escaped output
  • Flow with unsanitized paths found
  • Past medium severity XSS vulnerability
Vulnerabilities
1

Crafty Social Buttons Security Vulnerabilities

CVEs by Year

1 CVE in 2017
2017
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

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

Crafty Social Buttons < 1.5.8 - Cross-Site Scripting

May 12, 2017 Patched in 1.5.8 (2447d)
Code Analysis
Analyzed Mar 16, 2026

Crafty Social Buttons Code Analysis

Dangerous Functions
1
Raw SQL Queries
2
0 prepared
Unescaped Output
85
22 escaped
Nonce Checks
1
Capability Checks
1
File Operations
11
External Requests
7
Bundled Libraries
0

Dangerous Functions Found

create_functionadd_action( 'widgets_init', create_function( '', 'register_widget("SH_Crafty_Social_Buttons_Widget")crafty-social-buttons.php:47

SQL Query Safety

0% prepared2 total queries

Output Escaping

21% escaped107 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

1 flows1 with unsanitized paths
<admin> (views\admin.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Crafty Social Buttons Attack Surface

Entry Points5
Unprotected0

AJAX Handlers 2

authwp_ajax_share_countclass-SH-Crafty-Social-Buttons-Plugin.php:66
noprivwp_ajax_share_countclass-SH-Crafty-Social-Buttons-Plugin.php:67

Shortcodes 3

[csblink] class-SH-Crafty-Social-Buttons-Shortcode.php:38
[csbshare] class-SH-Crafty-Social-Buttons-Shortcode.php:39
[csbnone] class-SH-Crafty-Social-Buttons-Shortcode.php:40
WordPress Hooks 13
actionadmin_initclass-SH-Crafty-Social-Buttons-Admin.php:37
actioninitclass-SH-Crafty-Social-Buttons-Plugin.php:49
actionadmin_menuclass-SH-Crafty-Social-Buttons-Plugin.php:52
actionadmin_noticesclass-SH-Crafty-Social-Buttons-Plugin.php:55
actionadmin_enqueue_scriptsclass-SH-Crafty-Social-Buttons-Plugin.php:58
actionadmin_enqueue_scriptsclass-SH-Crafty-Social-Buttons-Plugin.php:59
actionwp_enqueue_scriptsclass-SH-Crafty-Social-Buttons-Plugin.php:62
actionwp_enqueue_scriptsclass-SH-Crafty-Social-Buttons-Plugin.php:63
filterthe_contentclass-SH-Crafty-Social-Buttons-Shortcode.php:35
actioncrafty-social-share-buttonsclass-SH-Crafty-Social-Buttons-Shortcode.php:43
actioncrafty-social-link-buttonsclass-SH-Crafty-Social-Buttons-Shortcode.php:44
actioncrafty-social-share-page-buttonsclass-SH-Crafty-Social-Buttons-Shortcode.php:45
actionwidgets_initcrafty-social-buttons.php:47
Maintenance & Trust

Crafty Social Buttons Maintenance & Trust

Maintenance Signals

WordPress version tested4.7.32
Last updatedNov 28, 2017
PHP min version
Downloads115K

Community Trust

Rating94/100
Number of ratings40
Active installs1K
Developer Profile

Crafty Social Buttons Developer Profile

Sarah

1 plugin · 1K total installs

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

How We Detect Crafty Social Buttons

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/crafty-social-buttons/css/public.min.css/wp-content/plugins/crafty-social-buttons/js/public.min.js
Script Paths
js/public.min.js
Version Parameters
crafty-social-buttons/css/public.min.css?ver=crafty-social-buttons/js/public.min.js?ver=

HTML / DOM Fingerprints

CSS Classes
crafty-social-buttonscrafty-social-button
Data Attributes
data-crafty-social-url
JS Globals
crafty_social_buttons_vars
Shortcode Output
[crafty_social_buttons]
FAQ

Frequently Asked Questions about Crafty Social Buttons