CVE-2022-47146

7.1 HIGH

📋 TL;DR

This vulnerability allows unauthenticated attackers to inject malicious scripts into web pages viewed by other users in WordPress sites using the Contempoinc Real Estate 7 theme. Attackers can steal session cookies, redirect users to malicious sites, or perform actions on behalf of users. All WordPress installations using Real Estate 7 theme version 3.3.1 or earlier are affected.

💻 Affected Systems

Products:
  • Contempoinc Real Estate 7 WordPress Theme
Versions: <= 3.3.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the Real Estate 7 theme active. The vulnerability is in the theme itself, not WordPress core.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers steal administrator session cookies, gain full control of the WordPress site, install backdoors, deface the site, or use it for further attacks against visitors.

🟠

Likely Case

Attackers steal user session cookies, redirect users to phishing sites, or perform limited actions within the user's context.

🟢

If Mitigated

With proper Content Security Policy (CSP) headers and input validation, impact is limited to script execution in isolated contexts.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Reflected XSS vulnerabilities are commonly exploited using simple payloads. The patchstack references provide technical details about the vulnerable parameters.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.3.2 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/realestate-7/wordpress-real-estate-7-theme-3-3-1-cross-site-scripting-xss

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Appearance > Themes. 3. Check if Real Estate 7 theme update is available. 4. Click 'Update Now' if update is available. 5. If no update appears, download version 3.3.2+ from WordPress.org or vendor. 6. Upload and replace the theme files via FTP or WordPress uploader.

🔧 Temporary Workarounds

Implement Content Security Policy

all

Add CSP headers to restrict script execution sources and prevent XSS payloads from executing.

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to nginx config: add_header Content-Security-Policy "default-src 'self'; script-src 'self'";

Disable Theme

all

Temporarily switch to default WordPress theme until patch is applied.

wp theme activate twentytwentythree
Or via WordPress admin: Appearance > Themes > Activate different theme

🧯 If You Can't Patch

  • Implement Web Application Firewall (WAF) rules to block XSS payloads in request parameters.
  • Restrict access to the affected website using IP whitelisting until patch can be applied.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel: Appearance > Themes. Look for Real Estate 7 theme version number. If version is 3.3.1 or lower, you are vulnerable.

Check Version:

wp theme list --field=name,version | grep -i realestate

Verify Fix Applied:

After updating, verify theme version shows 3.3.2 or higher in WordPress admin panel. Test vulnerable parameters with safe payloads to confirm sanitization.

📡 Detection & Monitoring

Log Indicators:

  • Unusual GET/POST requests containing script tags or JavaScript code in parameters
  • Multiple requests to same endpoint with different encoded payloads
  • Requests to known vulnerable endpoints with suspicious parameters

Network Indicators:

  • HTTP requests containing <script>, javascript:, or encoded XSS payloads in URL parameters
  • Outbound connections to suspicious domains following visits to affected pages

SIEM Query:

source="web_logs" AND (uri="*<script>*" OR uri="*javascript:*" OR uri="*%3Cscript%3E*") AND uri="*/wp-content/themes/realestate-7/*"

🔗 References

📤 Share & Export