CVE-2025-58267

7.1 HIGH

📋 TL;DR

A Cross-Site Request Forgery (CSRF) vulnerability in the Aftabul Islam Stock Message WordPress plugin allows attackers to perform stored cross-site scripting (XSS) attacks. This affects WordPress sites using Stock Message plugin versions up to and including 1.1.0. Attackers can trick authenticated administrators into executing malicious actions that inject persistent scripts.

💻 Affected Systems

Products:
  • WordPress Stock Message plugin by Aftabul Islam
Versions: n/a through 1.1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin activated. The plugin must have at least one user with administrative or editor privileges who can be tricked into visiting a malicious page while authenticated.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could inject malicious JavaScript that steals administrator credentials, takes over the WordPress site, or redirects visitors to malicious sites, potentially compromising the entire web server if combined with other vulnerabilities.

🟠

Likely Case

Attackers create fake forms or links that trick logged-in administrators into unknowingly submitting requests that inject malicious scripts into the plugin's stored messages, leading to persistent XSS affecting all users who view those messages.

🟢

If Mitigated

With proper CSRF protections and content sanitization, the vulnerability would be prevented, and only properly authenticated users could modify plugin content.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires social engineering to trick authenticated users into clicking malicious links, but the technical execution is straightforward once the user is tricked.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.1.1 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/stock-message/vulnerability/wordpress-stock-message-plugin-1-1-0-cross-site-request-forgery-csrf-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Stock Message' plugin. 4. Click 'Update Now' if update available. 5. If no update appears, manually download version 1.1.1+ from WordPress.org and replace the plugin files via FTP/SFTP.

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the Stock Message plugin until patched to prevent exploitation.

wp plugin deactivate stock-message

CSRF Protection Implementation

all

Add custom CSRF tokens to plugin forms if you have development access.

🧯 If You Can't Patch

  • Disable the Stock Message plugin completely and remove it from your WordPress installation.
  • Implement strict Content Security Policy (CSP) headers to mitigate XSS impact even if CSRF succeeds.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > Installed Plugins for Stock Message version. If version is 1.1.0 or earlier, you are vulnerable.

Check Version:

wp plugin get stock-message --field=version

Verify Fix Applied:

After updating, verify the plugin version shows 1.1.1 or later in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to stock-message plugin endpoints without proper referrer headers
  • Administrative users submitting unexpected form data to plugin endpoints

Network Indicators:

  • HTTP requests containing malicious script tags or JavaScript in stock-message parameters
  • Cross-origin requests to plugin endpoints from unexpected domains

SIEM Query:

source="wordpress.log" AND (uri_path="/wp-admin/admin-ajax.php" OR uri_path CONTAINS "stock-message") AND (http_method="POST" AND NOT referrer CONTAINS own_domain)

🔗 References

📤 Share & Export