CVE-2023-28666

5.4 MEDIUM

📋 TL;DR

The InPost Gallery WordPress plugin before version 2.2.2 contains a reflected cross-site scripting vulnerability in the 'imgurl' parameter. This allows authenticated attackers to inject malicious scripts that execute in victims' browsers when they visit a crafted URL. Only WordPress sites using vulnerable plugin versions are affected.

💻 Affected Systems

Products:
  • InPost Gallery WordPress Plugin
Versions: All versions before 2.2.2
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the plugin enabled and at least one authenticated user account.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

An authenticated attacker could steal administrator session cookies, perform actions as the victim, or redirect users to malicious sites.

🟠

Likely Case

Privilege escalation within WordPress, session hijacking of other authenticated users, or defacement of admin pages.

🟢

If Mitigated

Limited impact due to requiring authenticated access; proper user privilege management reduces attack surface.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires authenticated access; reflected XSS is well-understood and easy to weaponize.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.2.2

Vendor Advisory: https://wordpress.org/plugins/inpost-gallery/#developers

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'InPost Gallery' and click 'Update Now'. 4. Verify version shows 2.2.2 or higher.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily deactivate the InPost Gallery plugin until patched

wp plugin deactivate inpost-gallery

Restrict user registration

all

Limit new user accounts to reduce authenticated attack surface

🧯 If You Can't Patch

  • Implement web application firewall rules to block XSS payloads in 'imgurl' parameter
  • Apply principle of least privilege to all WordPress user accounts

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for InPost Gallery version

Check Version:

wp plugin get inpost-gallery --field=version

Verify Fix Applied:

Confirm plugin version is 2.2.2 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests containing suspicious script tags in 'imgurl' parameter
  • Multiple failed authentication attempts followed by successful login

Network Indicators:

  • Unusual outbound connections from WordPress server after authenticated sessions

SIEM Query:

source="wordpress" AND (uri="*imgurl=*script*" OR uri="*imgurl=*javascript:*")

🔗 References

📤 Share & Export