IF AS Shortcode Security & Risk Analysis

wordpress.org/plugins/if-as-shortcode

You can use if statement as shortcode everywhere you want!

10 active installs v1.2 PHP 5.6+ WP 4.0+ Updated Aug 9, 2024
conditionsifif_statementpage_templete_conditionspost_templete_conditions
67
C · Use Caution
CVEs total1
Unpatched1
Last CVEDec 25, 2025
Safety Verdict

Is IF AS Shortcode Safe to Use in 2026?

Use With Caution

Score 67/100

IF AS Shortcode has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

1 known CVE 1 unpatched Last CVE: Dec 25, 2025Updated 1yr ago
Risk Assessment

The "if-as-shortcode" v1.2 plugin exhibits a mixed security posture. While it demonstrates good practices by exclusively using prepared statements for SQL queries and implementing nonce and capability checks on its entry points, significant concerns arise from its output escaping. The static analysis reveals that 100% of outputs are not properly escaped, which presents a substantial risk of Cross-Site Scripting (XSS) vulnerabilities. This is a critical oversight that could allow malicious scripts to be injected and executed within the WordPress environment. The vulnerability history, including a recent high-severity CVE related to code injection, further exacerbates these concerns. The fact that this vulnerability is currently unpatched suggests a lack of timely security patching by the developers, or a critical flaw that remains exposed. Therefore, despite some positive security implementations, the combination of unescaped output and an unpatched critical vulnerability makes this plugin a significant security risk.

Key Concerns

  • Unescaped output in 100% of outputs
  • Currently unpatched high severity CVE
  • Previous CVE type: Code Injection
Vulnerabilities
1 published

IF AS Shortcode Security Vulnerabilities

CVEs by Year

1 CVE in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

High
1

1 total CVE

CVE-2025-68897high · 8.8Improper Control of Generation of Code ('Code Injection')

IF AS Shortcode <= 1.2 - Authenticated (Contributor+) Remote Code Execution

Dec 25, 2025Unpatched
Version History

IF AS Shortcode Release Timeline

v1.2Current1 CVE
v1.11 CVE
v1.01 CVE
Code Analysis
Analyzed Mar 17, 2026

IF AS Shortcode Code Analysis

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

Output Escaping

0% escaped47 total outputs
Data Flows · Security
All sanitized

Data Flow Analysis

2 flows
description_hack (include\shortcode_menu.php:220)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

IF AS Shortcode Attack Surface

Entry Points5
Unprotected0

AJAX Handlers 2

authwp_ajax_gs_sim_description_hackinclude\shortcode_menu.php:30
authwp_ajax_add-menu-iteminclude\shortcode_menu.php:38

Shortcodes 3

[if] if_as_shortcode.php:80
[PHP_CODE] if_as_shortcode.php:89
[gs_test_shortcode] include\shortcode_menu.php:15
WordPress Hooks 16
actionplugins_loadedif_as_shortcode.php:19
actioninitif_as_shortcode.php:56
filtermce_external_pluginsif_as_shortcode.php:103
filtermce_buttonsif_as_shortcode.php:104
actioninitif_as_shortcode.php:120
actionadmin_noticesif_as_shortcode.php:131
actionadmin_noticesif_as_shortcode.php:141
actionadmin_initif_as_shortcode.php:151
actionwidgets_initinclude\restricted-content.php:5
actionadmin_initinclude\shortcode_menu.php:18
filterwalker_nav_menu_start_elinclude\shortcode_menu.php:21
filterwp_setup_nav_menu_iteminclude\shortcode_menu.php:24
actionadmin_enqueue_scriptsinclude\shortcode_menu.php:27
actionwp_loadedinclude\shortcode_menu.php:33
filterclean_urlinclude\shortcode_menu.php:36
filterclean_urlinclude\shortcode_menu.php:267
Maintenance & Trust

IF AS Shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedAug 9, 2024
PHP min version5.6
Downloads4K

Community Trust

Rating100/100
Number of ratings2
Active installs10
Developer Profile

IF AS Shortcode Developer Profile

Mohammad I. Okfie

3 plugins · 2K total installs

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

How We Detect IF AS Shortcode

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/if-as-shortcode/include/editor_plugin.js
Script Paths
/wp-content/plugins/if-as-shortcode/include/editor_plugin.js

HTML / DOM Fingerprints

HTML Comments
<!-- If As Shortcode -->
Data Attributes
data-mce-placeholder
JS Globals
if_statement_text_domain
Shortcode Output
[else]
FAQ

Frequently Asked Questions about IF AS Shortcode