CVE-2025-46476
📋 TL;DR
This stored cross-site scripting (XSS) vulnerability in the Awesome Wp Image Gallery WordPress plugin allows attackers to inject malicious scripts into web pages. When users view pages containing the injected scripts, the attacker can steal session cookies, redirect users, or perform actions on their behalf. All WordPress sites using vulnerable versions of this plugin are affected.
💻 Affected Systems
- Awesome Wp Image Gallery WordPress Plugin
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator session cookies, take over WordPress sites, install backdoors, deface websites, or redirect visitors to malicious sites.
Likely Case
Attackers inject malicious JavaScript to steal user session cookies, potentially compromising user accounts and performing unauthorized actions.
If Mitigated
With proper input validation and output encoding, malicious scripts would be neutralized before reaching users.
🎯 Exploit Status
Stored XSS vulnerabilities are commonly exploited. While no public PoC is mentioned, the vulnerability type is well-understood and easily weaponized.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Unknown - plugin appears abandoned
Restart Required: No
Instructions:
1. Remove the Awesome Wp Image Gallery plugin from your WordPress installation. 2. Delete the plugin files from /wp-content/plugins/awesome-wp-image-gallery/. 3. Consider alternative image gallery plugins that are actively maintained.
🔧 Temporary Workarounds
Input Sanitization Filter
allAdd custom PHP filter to sanitize all input to the plugin
Add to theme's functions.php or custom plugin: add_filter('awesome_wp_image_gallery_input', 'wp_kses_post');
Content Security Policy
allImplement CSP headers to restrict script execution
Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Or add to wp-config.php: header("Content-Security-Policy: default-src 'self'; script-src 'self'");
🧯 If You Can't Patch
- Disable or remove the Awesome Wp Image Gallery plugin immediately
- Implement web application firewall (WAF) rules to block XSS payloads targeting this plugin
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel > Plugins > Installed Plugins for 'Awesome Wp Image Gallery' version 1.0 or earlier
Check Version:
wp plugin list --name=awesome-wp-image-gallery --field=version (if WP-CLI installed)
Verify Fix Applied:
Verify the plugin is no longer listed in WordPress admin or check /wp-content/plugins/ directory for absence of awesome-wp-image-gallery folder
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to plugin endpoints
- JavaScript payloads in form submissions
- Multiple failed XSS attempts
Network Indicators:
- HTTP requests containing script tags or JavaScript in parameters
- Unusual traffic to /wp-content/plugins/awesome-wp-image-gallery/
SIEM Query:
source="web_logs" AND (uri_path="/wp-content/plugins/awesome-wp-image-gallery/" OR user_agent CONTAINS "script")