CVE-2024-12403

6.1 MEDIUM

📋 TL;DR

This vulnerability allows unauthenticated attackers to perform reflected cross-site scripting attacks via the 'awsmgallery' parameter in the Image Gallery – Responsive Photo Gallery WordPress plugin. Attackers can inject malicious scripts that execute when users click specially crafted links, potentially stealing session cookies or redirecting users to malicious sites. All WordPress sites using this plugin up to version 1.0.5 are affected.

💻 Affected Systems

Products:
  • Image Gallery – Responsive Photo Gallery WordPress plugin
Versions: All versions up to and including 1.0.5
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in default plugin configuration. WordPress sites with the plugin enabled are vulnerable regardless of theme or other plugins.

⚠️ 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 steal administrator session cookies, gain administrative access to WordPress, install backdoors, deface websites, or distribute malware to visitors.

🟠

Likely Case

Attackers steal user session cookies, perform account takeovers, redirect users to phishing sites, or display malicious content.

🟢

If Mitigated

With proper web application firewalls and security headers, the attack is blocked or limited to non-sensitive user actions.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires tricking users into clicking malicious links. No authentication required. Proof of concept is publicly available in vulnerability references.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.6 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3221064%40awesome-responsive-photo-gallery&new=3221064%40awesome-responsive-photo-gallery&sfp_email=&sfph_mail=

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Image Gallery – Responsive Photo Gallery'. 4. Click 'Update Now' if update available. 5. If no update appears, manually download version 1.0.6+ from WordPress.org and replace plugin files.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate awesome-responsive-photo-gallery

Web Application Firewall Rule

all

Block requests containing malicious XSS payloads in the awsmgallery parameter

ModSecurity rule: SecRule ARGS:awsmgallery "@rx <script" "id:1001,phase:2,deny,status:403,msg:'XSS attempt in Image Gallery plugin'"

🧯 If You Can't Patch

  • Implement Content Security Policy headers to restrict script execution
  • Deploy a web application firewall with XSS protection rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Image Gallery – Responsive Photo Gallery' version 1.0.5 or earlier

Check Version:

wp plugin get awesome-responsive-photo-gallery --field=version

Verify Fix Applied:

Verify plugin version is 1.0.6 or later in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests with awsmgallery parameter containing script tags or JavaScript code
  • Unusual referrer URLs containing XSS payloads

Network Indicators:

  • GET requests with awsmgallery parameter containing encoded script tags
  • Traffic patterns showing users clicking suspicious gallery links

SIEM Query:

source="web_logs" awsmgallery AND ("<script" OR "javascript:" OR "onerror=" OR "onload=")

🔗 References

📤 Share & Export